Get all enforcement rules
This API is used to fetch an array of all your existing Enforcement rules. The response includes details of the rule and the behavior threshold configured to each Code category Prisma Cloud Code Security scans (IaC, Secrets, Images, Open source)
- 200
Get list of enforcement rules for a specific customer
- application/json
- Schema
- Example (from schema)
Schema
accountsNotInMainRule object[] required
Array [accountId string requiredaccountName string required]rules object[] required
Array [codeCategories object required
IAC object required
commentsBotThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]hardFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]softFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]IMAGES object required
commentsBotThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]hardFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]softFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]OPEN_SOURCE object required
commentsBotThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]hardFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]softFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]SECRETS object required
commentsBotThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]hardFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]softFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]SUPPLY_CHAIN object required
commentsBotThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]hardFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]softFailThreshold RuleThreshold requiredPossible values: [
OFF
,INFO
,LOW
,MEDIUM
,HIGH
,CRITICAL
]createdBy string requiredcreationDate string requirededitable boolean requiredid string requiredmainRule boolean requiredname string requiredrepositories object[] required
Array [accountId string requiredaccountName string required]]
{
"accountsNotInMainRule": [
{
"accountId": "string",
"accountName": "string"
}
],
"rules": [
{
"codeCategories": {
"IAC": {
"commentsBotThreshold": "OFF",
"hardFailThreshold": "OFF",
"softFailThreshold": "OFF"
},
"IMAGES": {
"commentsBotThreshold": "OFF",
"hardFailThreshold": "OFF",
"softFailThreshold": "OFF"
},
"OPEN_SOURCE": {
"commentsBotThreshold": "OFF",
"hardFailThreshold": "OFF",
"softFailThreshold": "OFF"
},
"SECRETS": {
"commentsBotThreshold": "OFF",
"hardFailThreshold": "OFF",
"softFailThreshold": "OFF"
},
"SUPPLY_CHAIN": {
"commentsBotThreshold": "OFF",
"hardFailThreshold": "OFF",
"softFailThreshold": "OFF"
}
},
"createdBy": "string",
"creationDate": "string",
"editable": true,
"id": "string",
"mainRule": true,
"name": "string",
"repositories": [
{
"accountId": "string",
"accountName": "string"
}
]
}
]
}