v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1336218221.3 KB
projects

Creates a new guardrail in the given app.

post/v1/{+parent}/guardrails

Path parameters

parentstring required

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

Query parameters

guardrailIdstring

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

etagstring

Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

enabledboolean

Optional. Whether the guardrail is enabled.

displayNamestring

Required. Display name of the guardrail.

descriptionstring

Optional. Description of the guardrail.

updateTimestring google-datetime

Output only. Timestamp when the guardrail was last updated.

createTimestring google-datetime

Output only. Timestamp when the guardrail was created.

namestring

Identifier. The unique identifier of the guardrail. Format: projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}

Response

Successful response