Clone a Rule with the given ID.
Bad Request
Internal server error
Newly Created Cloned Rule
{- "ruleClone": {
- "uuid": "string"
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update a Rule
Bad Request
Internal server error
Updated Rule.
{- "rule": {
- "uuid": "string",
- "accountId": "string",
- "name": "string",
- "description": "string",
- "rulesYaml": "string",
- "tags": [
- "string"
], - "orgIdentifier": "string",
- "projectIdentifier": "string",
- "cloudProvider": "AWS",
- "versionLabel": "string",
- "isStablePolicy": true,
- "storeType": "INLINE",
- "isOOTB": true,
- "deleted": true,
- "forRecommendation": true,
- "resourceType": "string",
- "isMultiPolicyRule": false,
- "subRulePolicyDetails": [
- {
- "name": "string",
- "yaml": "string",
- "resourceType": "string"
}
], - "savings": 0,
- "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"
}
]
}
Create a new governance rule.
Bad Request
Internal server error
Returns newly created rule
{- "rule": {
- "uuid": "string",
- "accountId": "string",
- "name": "string",
- "description": "string",
- "rulesYaml": "string",
- "tags": [
- "string"
], - "orgIdentifier": "string",
- "projectIdentifier": "string",
- "cloudProvider": "AWS",
- "versionLabel": "string",
- "isStablePolicy": true,
- "storeType": "INLINE",
- "isOOTB": true,
- "deleted": true,
- "forRecommendation": true,
- "resourceType": "string",
- "isMultiPolicyRule": false,
- "subRulePolicyDetails": [
- {
- "name": "string",
- "yaml": "string",
- "resourceType": "string"
}
], - "savings": 0,
- "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 with the given 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"
}
]
}
Enqueues job for execution.
Request body for queuing the governance job
Bad Request
Internal server error
Returns success when job is enqueued
{- "ruleEnforcementId": "string",
- "targetAccountDetails": {
- "targetInfo": "string",
- "roleInfo": "string",
- "roleId": "string",
- "tenantInfo": "string",
- "cloudConnectorId": "string",
- "isGovCloudConnector": true,
- "type": "string"
}, - "ruleCloudProviderType": "AWS",
- "ruleId": "string",
- "policy": "string",
- "targetRegion": "string",
- "isDryRun": true,
- "isOOTB": true,
- "executionType": "INTERNAL",
- "isMultiPolicyRule": true,
- "subRulePolicyDetails": [
- {
- "name": "string",
- "yaml": "string",
- "resourceType": "string"
}
], - "isGovCloudConnector": true,
- "multiPolicyRule": true,
- "govCloudConnector": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Simple Request to enqueue rule for execution
Request body for queuing the governance rule for execution
Enqueued governance rule for evaluation and return list evaluation ids
Bad Request
Internal server error
{- "targetAccounts": [
- "string"
], - "targetRegions": [
- "string"
], - "ruleId": "string",
- "isDryRun": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List resources for which cost co-relation is supported.
Bad Request
Internal server error
Return List of resources for which cost co-relation is supported.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Get custodian schema for governance rule validation
Bad Request
Internal server error
Custodian Governance Rule Schema
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch rules
Bad Request
Internal server error
Returns List of rules
{- "query": {
- "accountId": "string",
- "isOOTB": true,
- "orgIdentifier": "string",
- "projectIdentifier": "string",
- "tags": "string",
- "cloudProvider": "string",
- "policyIds": [
- "string"
], - "isStablePolicy": true,
- "search": "string",
- "limit": 0,
- "offset": 0,
- "orderBy": [
- {
- "field": "PERSPECTIVE_ID",
- "order": "ASCENDING"
}
], - "resourceType": "string",
- "forRecommendation": true
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Get targets with governance enabled and valid permission
Bad Request
Internal server error
List of Governance Targets
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
List Aws/Azure Regions for filtering resources.
Bad Request
Internal server error
Return List of Aws/Azure Regions
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Toggle a Rule for Recommendation
Bad Request
Internal server error
True/false if toggle is successful
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Validate governance rule for syntactical errors.
Bad Request
Internal server error
{- "rule": {
- "uuid": "string",
- "accountId": "string",
- "name": "string",
- "description": "string",
- "rulesYaml": "string",
- "tags": [
- "string"
], - "orgIdentifier": "string",
- "projectIdentifier": "string",
- "cloudProvider": "AWS",
- "versionLabel": "string",
- "isStablePolicy": true,
- "storeType": "INLINE",
- "isOOTB": true,
- "deleted": true,
- "forRecommendation": true,
- "resourceType": "string",
- "isMultiPolicyRule": false,
- "subRulePolicyDetails": [
- {
- "name": "string",
- "yaml": "string",
- "resourceType": "string"
}
], - "savings": 0,
- "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"
}
]
}