Recommendation Preferences
Recommendation apis for recommendations preferences.
Update the cloud accounts for an existing override identified by its ID
Unique identifier for the override
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns true if the override was updated successfully
PUT /gateway/ccm/api/recommendation/preference/cloud-account-override/{uuid}?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 29
[
{
"id": "text",
"name": "text"
}
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete a cloud account level preset override by its ID
Unique identifier for the override
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns true if the override was deleted successfully
DELETE /gateway/ccm/api/recommendation/preference/cloud-account-override/{uuid}?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 applied preferences for given account
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns applied preferences
GET /gateway/ccm/api/recommendation/preference?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 preferences for your recommendations
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns true or false
PUT /gateway/ccm/api/recommendation/preference?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 802
{
"uuid": "text",
"accountId": "text",
"recommendationPresets": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"lookBackPeriod": {
"ec2InstancePeriod": 1,
"ec2InstanceV2Period": 1,
"ecsServicePeriod": 1,
"workloadPeriod": 1,
"nodepoolPeriod": 1
},
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"enableRecommendationInferences": true,
"appliedJiraStatuses": [
"text"
],
"ignoredJiraStatuses": [
"text"
],
"appliedJiraResolutionCodes": [
"text"
],
"ignoredJiraResolutionCodes": [
"text"
],
"jiraFieldMappings": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": {
"savingsFieldName": "text",
"varianceFieldName": "text"
}
}
},
"serviceNowActualSavingsFieldName": "text",
"serviceNowVarianceNotesFieldName": "text",
"lastUpdatedAt": 1,
"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 an overview of cloud provider recommendation preferences with default presets and override counts per resource type
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns overview of preferences per resource type
GET /gateway/ccm/api/recommendation/preference/cloud-account-override/overview?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 all cloud account level preset overrides for a given resource type
Account Identifier for the Entity.
Resource type to list overrides for
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of cloud account overrides
GET /gateway/ccm/api/recommendation/preference/cloud-account-override?accountIdentifier=text&resourceType=WORKLOAD HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Create a cloud account level preset override for recommendations. If an override already exists for the same resource type and preset, the cloud accounts will be merged into the existing record.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns true if the override was created or updated successfully
POST /gateway/ccm/api/recommendation/preference/cloud-account-override?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-jz7g5
Content-Type: application/json
Accept: */*
Content-Length: 227
{
"uuid": "text",
"accountId": "text",
"resourceType": "WORKLOAD",
"presetId": "text",
"cloudAccounts": [
{
"id": "text",
"name": "text"
}
],
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"uuid": "text",
"name": "text",
"email": "text",
"externalUserId": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?