Get Scheme for Specific Account
GET/code/api/v1/enforcement-rules/account/:accountId
Gets scheme for a specific account.
Request
Path Parameters
Responses
- 200
- 422
Get enforcement rules for account
- application/json
- Schema
- Example (from schema)
Schema
codeCategories objectrequired
IAC objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
IMAGES objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
OPEN_SOURCE objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
SECRETS objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
SUPPLY_CHAIN objectrequired
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
Possible values: [OFF
, INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
]
{
"accountId": "string",
"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"
}
}
}
Request arguments validation error