---
title: "PATCH /v1/{+parent}:updateConsumerConfig"
method: PATCH
path: "/v1/{+parent}:updateConsumerConfig"
tags: ["services"]
---

# PATCH /v1/{+parent}:updateConsumerConfig

`PATCH /v1/{+parent}:updateConsumerConfig`

Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.

## Path parameters

- `parent` string, required

## Request body

- UpdateConsumerConfigRequest — Request to update the configuration of a service networking connection including the import/export of custom routes and subnetwork routes with public IP.
  - `consumerConfig` ConsumerConfig — Configuration information for a private service access connection.
    - `usedIpRanges` string[] — Output only. The IP ranges already in use by consumer or producer
    - `consumerExportSubnetRoutesWithPublicIp` boolean — Export subnet routes with public ip flag value for peering from consumer to producer.
    - `producerImportCustomRoutes` boolean — Import custom routes flag value for peering from producer to consumer.
    - `producerExportSubnetRoutesWithPublicIp` boolean — Export subnet routes with public ip flag value for peering from producer to consumer.
    - `producerNetwork` string — Output only. The VPC host network that is used to host managed service instances. In the format, projects/{project}/global/networks/{network} where {project} is the project number e.g. '12345' and {network} is the network name.
    - `reservedRanges` GoogleCloudServicenetworkingV1ConsumerConfigReservedRange[] — Output only. The reserved ranges associated with this private service access connection.
      - `address` string — The starting address of the reserved range. The address must be a valid IPv4 address in the x.x.x.x format. This value combined with the IP prefix length is the CIDR range for the reserved range.
      - `name` string — The name of the reserved range.
      - `ipPrefixLength` integer — The prefix length of the reserved range.
    - `cloudsqlConfigs` CloudSQLConfig[] — Represents one or multiple Cloud SQL configurations.
      - `service` string — Required. Peering service used for peering with the Cloud SQL project.
      - `umbrellaNetwork` string — Required. The name of the umbrella network in the Cloud SQL umbrella project.
      - `umbrellaProject` string, int64 — Required. The project number of the Cloud SQL umbrella project.
    - `consumerImportSubnetRoutesWithPublicIp` boolean — Import subnet routes with public ip flag value for peering from consumer to producer.
    - `consumerExportCustomRoutes` boolean — Export custom routes flag value for peering from consumer to producer.
    - `producerExportCustomRoutes` boolean — Export custom routes flag value for peering from producer to consumer.
    - `consumerImportCustomRoutes` boolean — Import custom routes flag value for peering from consumer to producer.
    - `vpcScReferenceArchitectureEnabled` boolean — Output only. Indicates whether the VPC Service Controls reference architecture is configured for the producer VPC host network.
    - `producerImportSubnetRoutesWithPublicIp` boolean — Import subnet routes with public ip flag value for peering from producer to consumer.
    - `consumerPeeringActive` boolean — Output only. If this is true, consumer peering is active.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/servicenetworking.md) · [All operations](https://skmtc.net/google/apis/servicenetworking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/servicenetworking/versions/a9b814c6426b/schema)
