Method: projects.locations.apps.guardrails.create

Creates a new guardrail in the given app.

HTTP request

POST https://ces.googleapis.com/v1/{parent=projects/*/locations/*/apps/*}/guardrails

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the app to create a guardrail in.

Query parameters

Parameters
guardrailId

string

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

Request body

The request body contains an instance of Guardrail.

Response body

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

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:

  • ces.guardrails.create

For more information, see the IAM documentation.