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-676588f45b-9jmtz
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-676588f45b-9jmtz
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-676588f45b-9jmtz
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-676588f45b-9jmtz
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-676588f45b-9jmtz
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Get EC2 recommendation preference for a specific instance. Checks AWS Compute Optimizer for resource-level preferences first, then falls back to Harness preset.
Account Identifier for the Entity.
EC2 instance resource ID
AWS Account ID
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns EC2 recommendation v2 preset
GET /gateway/ccm/api/recommendation/preference/ec2?accountIdentifier=text&resourceId=text&awsAccountId=text HTTP/1.1
Host: nextgen-ce-676588f45b-9jmtz
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-676588f45b-9jmtz
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-676588f45b-9jmtz
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?