v1

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

Creates a new Gateway in a given project and location.

post/v1/{+parent}/gateways

Path parameters

parentstring required

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

Query parameters

gatewayIdstring

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

Request body

state'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'FAILED' | 'DELETING' | 'UPDATING'

Output only. The current state of the Gateway.

labelsobject

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

createTimestring google-datetime

Output only. Created time.

displayNamestring

Optional. Display name.

updateTimestring google-datetime

Output only. Updated time.

defaultHostnamestring

Output only. The default API Gateway host name of the form {gateway_id}-{hash}.{region_code}.gateway.dev.

namestring

Output only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway}

apiConfigstring

Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}

Response

Successful response