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}

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 one of the following OAuth scopes:

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

For more information, see the Authentication Overview.