Method: projects.locations.connections.create

Create a Connection to an external data source.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/{projectId}/locations/{locationId}
  • Organizations scope: organizations/{org_id}/locations/{locationId}

Authorization requires the following IAM permission on the specified resource parent:

  • dlp.connections.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "connection": {
    object (Connection)
  }
}
Fields
connection

object (Connection)

Required. The connection resource.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.