Anomalies Ignorelist Rule
This contains APIs related to Anomalies Ignorelist Rule Management.
Create a new anomalies ignorelist rule
Account Identifier for the Entity.
This object contains the complete definition of Anomalies Whitelist Rule
Unique id
Harness account id
Name
Cloud provider type
Number of whitelisted anomalies
Enabled
Time at which the entity was created
Time at which the entity was last updated
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns newly created anomalies ignorelist rule
POST /gateway/ccm/api/anomalies/ignoreListRule?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 328
{
"uuid": "text",
"accountId": "text",
"name": "text",
"type": "AWS",
"ruleSpec": {
"type": "AWS"
},
"whitelistedAnomalyCount": 1,
"enabled": true,
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get anomalies ignorelist rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns anomalies ignorelist rule
GET /gateway/ccm/api/anomalies/ignoreListRule/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Update anomalies ignorelist rule
Account Identifier for the Entity.
This object contains the complete definition of Anomalies Whitelist Rule
Unique id
Harness account id
Name
Cloud provider type
Number of whitelisted anomalies
Enabled
Time at which the entity was created
Time at which the entity was last updated
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns updated anomalies ignorelist rule
PUT /gateway/ccm/api/anomalies/ignoreListRule/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 328
{
"uuid": "text",
"accountId": "text",
"name": "text",
"type": "AWS",
"ruleSpec": {
"type": "AWS"
},
"whitelistedAnomalyCount": 1,
"enabled": true,
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete anomalies ignorelist rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns true if anomalies ignorelist rule is deleted
DELETE /gateway/ccm/api/anomalies/ignoreListRule/{id}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get Azure subscription IDs and names
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns Azure subscriptions with their IDs and names
GET /gateway/ccm/api/anomalies/ignoreListRule/filter-values/azure-subscriptions?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}List anomalies ignorelist rule
Account Identifier for the Entity.
This has the query to list the RuleExecution
accountId
Account Name
Execution Status
region
cloudProvider
ruleId
rulePackId
executionIds
ruleEnforcementId
ruleEnforcementRecommendationId
limit
offset
savings
ruleExecutionSortType
sortOrder
resourceCountGreaterThanZero
costType
isDryRun
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of anomalies ignorelist rule
POST /gateway/ccm/api/anomalies/ignoreListRule/list?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 608
{
"accountId": "text",
"targetAccount": [
"text"
],
"executionStatus": "FAILED",
"region": [
"text"
],
"cloudProvider": "AWS",
"cloudProviders": [
"AWS"
],
"ruleIds": [
"text"
],
"ruleSetIds": [
"text"
],
"executionIds": [
"text"
],
"ruleEnforcementId": [
"text"
],
"ruleEnforcementRecommendationId": [
"text"
],
"time": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"limit": 1,
"offset": 1,
"savings": 1,
"ruleExecutionSortType": "COST",
"sortOrder": "ASCENDING",
"resourceCountGreaterThanZero": true,
"costType": "POTENTIAL",
"isDryRun": true,
"ccmTagDTOS": [
{
"key": "text",
"value": "text"
}
],
"ccmCostCategoryCostBucketsDTOS": [
{
"costCategory": "text",
"costBucket": [
"text"
]
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Toggle anomalies ignorelist rule
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns toggled anomalies ignorelist rule
PUT /gateway/ccm/api/anomalies/ignoreListRule/{id}/toggle?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?