Method: projects.locations.authorizations.create

Creates an Authorization.

HTTP request

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*}/authorizations

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name. Format: projects/{project}/locations/{location}/authorizations/{authorization}

Query parameters

Parameters
authorizationId

string

Required. The id to use for the authorization, which will become the final component of the resource name.

This field must conform to RFC-1034 with a length limit of 63 characters.

Request body

The request body contains an instance of Authorization.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.