Get guardrail policy by id
Get guardrail policy by id
Path parameters
id
Response
Guardrail policy
name
The SDK names policies by name, so it is unique in the workspace, ignoring case
rules
At most one rule per type
id
Optional on create, generated when missing, as for prompts and datasets. Ignored on update, where the path names the policy
description
execution_scope
on_request applies the policy when the SDK names it, global applies it to every guardrail built from stored policies in the workspace. Missing or null means on_request
Allowed values:
created_at
created_by
last_updated_at
last_updated_by
Errors
403
Forbidden Error
404
Not Found Error
503
Service Unavailable Error