latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Guardrails
List Guardrail Rules
Returns a list of guardrails rules based on filter criteria
post/guardrails/search
Query parameters
pageinteger
pageSizeinteger
Request body
Example request
{
"filters": {
"createdBy": [
"John Doe"
],
"type": [
"policy",
"cost"
],
"labels": [
"production"
],
"repositories": [
"my-repo"
],
"workspaces": [
"my-workspace"
],
"branches": [
"main"
],
"$or": {
"createdBy": [
"John Doe"
],
"type": [
"policy",
"cost"
],
"labels": [
"production"
],
"repositories": [
"my-repo"
],
"workspaces": [
"my-workspace"
],
"branches": [
"main"
]
}
}
}Response
List of guardrail rules retrieved successfully
Example response
[
{
"id": "507f1f77bcf86cd799439012",
"accountId": "507f1f77bcf86cd799439012",
"createdBy": "John Doe",
"criteria": {
"resource": {
"actions": [
"create"
]
}
},
"notificationId": "507f1f77bcf86cd799439012"
}
]