CACM Global Cost Settings
Get/set cost preferences for CACM features
Get cost settings for a CACM feature
Query parameters
accountIdentifierstringOptional
featurestring · enumRequiredPossible values:
The CACM feature to get settings for
Responses
400
Bad Request
application/json
This is Failure entity as defied in Harness
statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
500
Internal server error
application/json
default
Get cost settings for a CACM feature
application/json
get/cost-settings
GET /gateway/ccm/api/cost-settings?feature=ANOMALIES 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 cost settings for a CACM feature
Query parameters
accountIdentifierstringOptional
Body
uuidstringOptional
accountIdstringOptional
createdAtinteger · int64Optional
lastUpdatedAtinteger · int64Optional
featurestring · enumRequiredPossible values:
awsCostTypestring · enumRequiredPossible values:
Show AWS Cost As
azureCostTypestring · enumOptionalPossible values:
gcpCostTypestring · enumOptionalPossible values:
Show GCP Cost As
includeAwsBenefitsbooleanOptional
Responses
400
Bad Request
application/json
This is Failure entity as defied in Harness
statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
500
Internal server error
application/json
default
Update cost settings for a CACM feature
application/json
put/cost-settings
PUT /gateway/ccm/api/cost-settings HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 508
{
"uuid": "text",
"accountId": "text",
"createdAt": 1,
"lastUpdatedAt": 1,
"createdBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
},
"feature": "ANOMALIES",
"awsCostType": "AMORTISED",
"azureCostType": "ACTUAL",
"gcpCostType": "COST",
"includeAwsBenefits": true,
"accountScopedPreferences": [
{
"awsAccountId": "text",
"awsCloudAccountNameWithId": "text",
"awsCostType": "AMORTISED",
"savingsEstimationMode": "AFTER_DISCOUNTS"
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?