v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBPoliciesService
List Policies
List all policies for a given deployment.
get/api/policies/v1/deployments/{deploymentId}
Path parameters
deploymentIdstring int64 required
The unique numerical identifier for the deployment.
Response
OK
Example response
{
"policies": [
{
"id": "1",
"name": "Global Policy",
"slug": "global_policy",
"productType": "PRODUCT_TYPE_SAST",
"isDefault": true
},
{
"id": "2",
"name": "Semgrep test",
"slug": "semgrep_test",
"productType": "PRODUCT_TYPE_SAST",
"isDefault": false
},
{
"id": "3",
"name": "Global Secrets Policy",
"slug": "global_secrets_policy",
"productType": "PRODUCT_TYPE_SECRETS",
"isDefault": true
}
]
}