Update a Rule enforcement
Bad Request
Internal server error
Updated Rule enforcement.
{- "ruleEnforcement": {
- "uuid": "string",
- "accountId": "string",
- "name": "string",
- "description": "string",
- "tags": [
- "string"
], - "orgIdentifier": "string",
- "projectIdentifier": "string",
- "cloudProvider": "AWS",
- "ruleIds": [
- "string"
], - "ruleSetIDs": [
- "string"
], - "executionSchedule": "string",
- "executionTimezone": "string",
- "targetAccounts": [
- "string"
], - "targetRegions": [
- "string"
], - "isDryRun": true,
- "deleted": true,
- "runCount": 0,
- "isEnabled": true,
- "createdAt": 0,
- "lastUpdatedAt": 0,
- "createdBy": {
- "uuid": "string",
- "name": "string",
- "email": "string",
- "externalUserId": "string"
}, - "lastUpdatedBy": {
- "uuid": "string",
- "name": "string",
- "email": "string",
- "externalUserId": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
Returns newly created rule enforcement.
{- "ruleEnforcement": {
- "uuid": "string",
- "accountId": "string",
- "name": "string",
- "description": "string",
- "tags": [
- "string"
], - "orgIdentifier": "string",
- "projectIdentifier": "string",
- "cloudProvider": "AWS",
- "ruleIds": [
- "string"
], - "ruleSetIDs": [
- "string"
], - "executionSchedule": "string",
- "executionTimezone": "string",
- "targetAccounts": [
- "string"
], - "targetRegions": [
- "string"
], - "isDryRun": true,
- "deleted": true,
- "runCount": 0,
- "isEnabled": true,
- "createdAt": 0,
- "lastUpdatedAt": 0,
- "createdBy": {
- "uuid": "string",
- "name": "string",
- "email": "string",
- "externalUserId": "string"
}, - "lastUpdatedBy": {
- "uuid": "string",
- "name": "string",
- "email": "string",
- "externalUserId": "string"
}
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Delete a Rule enforcement for the given a ID.
Bad Request
Internal server error
A boolean whether the delete was successful or not
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch Rule Enforcements for given RuleIds/RuleSetIds
Bad Request
Internal server error
Returns List of Rule Enforcements wrt given RuleIds/RuleSetIds
{- "enforcementCount": {
- "accountId": "string",
- "ruleIds": [
- "string"
], - "ruleSetIds": [
- "string"
]
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Get Rule Enforcement details
Bad Request
Internal server error
Returns Enforcement details
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch Rule Enforcement
Bad Request
Internal server error
Returns List of rules Enforcement
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Toggle a Rule Enforcement
Bad Request
Internal server error
True/false if Rule Enforcement successfully toggled
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}