v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1348107211.1 KB
projects

Creates a new ServiceConnectionPolicy in a given project and location.

post/v1/{+parent}/serviceConnectionPolicies

Path parameters

parentstring required

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

Query parameters

autoSubnetworkConfig.allocRangeSpacestring[]

Optional. The space where we search for a free range to create a subnetwork. It can be narrow down or pick a different space. This is in standard CIDR format. If not specified, “10.0.0.0/8” is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork.

autoSubnetworkConfig.ipStack'SUBNET_IP_STACK_UNSPECIFIED' | 'IPV4_ONLY' | 'IPV6_ONLY' | 'IPV4_IPV6'

Optional. The requested IP stack for the subnetwork. If not specified, IPv4 is used.

autoSubnetworkConfig.prefixLengthinteger

Optional. The desired prefix length for the subnet's IP address range. E.g., 24 for a /24. The actual range is allocated from available space. If not specified, 24 is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork.

requestIdstring

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

serviceConnectionPolicyIdstring

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

subnetworkMode'SUBNETWORK_MODE_UNSPECIFIED' | 'USER_PROVIDED' | 'AUTO_CREATED'

Optional. If this field is not set, USER_PROVIDED is the inferred value to use.

Request body

namestring

Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names

networkstring

The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}.

labelsobject

User-defined labels.

etagstring

Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

infrastructure'INFRASTRUCTURE_UNSPECIFIED' | 'PSC'

Output only. The type of underlying resources used to create the connection.

serviceClassstring

The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

createTimestring google-datetime

Output only. Time when the ServiceConnectionPolicy was created.

descriptionstring

A description of this resource.

updateTimestring google-datetime

Output only. Time when the ServiceConnectionPolicy was updated.

Response

Successful response