Method: projects.locations.connections.create

Creates a Connection.

HTTP request

POST https://cloudbuild.googleapis.com/v2/{parent=projects/*/locations/*}/connections

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

Query parameters

Parameters
connectionId

string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

Request body

The request body contains an instance of Connection.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • cloudbuild.connections.create

For more information, see the IAM documentation.