Recommendations
Recommendations for workloads and node pools.
Returns the Applied Recommendations statistics grouped by resource type with total savings.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the statistics of applied Recommendations.
POST /gateway/ccm/api/recommendation/overview/stats/applied?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Mark recommendation as inferred verified/rejected
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns void.
POST /gateway/ccm/api/recommendation/overview/change-inference-status?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"recommendationId": "text",
"verificationStatus": "INFERRED_PENDING_REVIEW",
"comment": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Mark recommendation as applied/open
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns void.
POST /gateway/ccm/api/recommendation/overview/change-state?accountIdentifier=text&recommendationId=text&state=OPEN HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"appliedSavings": 1
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the total number of Recommendations based on the specified filters.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the count of all Recommendations available.
POST /gateway/ccm/api/recommendation/overview/count?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the list of filter values for all the specified filters.
Account Identifier for the Entity.
The applicable 'columns' values are 'name', 'resourceType', 'namespace', 'clusterName'
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the values available for a filter.
POST /gateway/ccm/api/recommendation/overview/filter-values?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1977
{
"columns": [
"text"
],
"filter": {
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the list of supported filter field IDs for recommendations.
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of supported filter field IDs.
GET /gateway/ccm/api/recommendation/overview/supported-filters?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns complete Recommendations for IaCM-managed resources based on cloud-native identifiers (ARNs, FQNs, GRNs) and Terraform provider/type metadata.
Account Identifier for the Entity.
Request to get recommendations for IaCM-managed cloud resources
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Recommendations for specified IaCM resources.
POST /gateway/ccm/api/recommendation/overview/iacm?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"resources": [
{
"provider": "registry.terraform.io/hashicorp/aws",
"type": "aws_instance",
"resourceId": "arn:aws:ec2:us-east-1:123456789012:instance/i-0123456789abcdef0"
}
],
"states": [
"OPEN"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the list of Recommendations for the specified filters.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of Recommendations available.
POST /gateway/ccm/api/recommendation/overview/list?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Override savings for recommendation
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns boolean
PUT /gateway/ccm/api/recommendation/overview/override-savings?accountIdentifier=text&recommendationId=text&overriddenSavings=1 HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the time series statistics for realized savings from applied recommendations.
Account Identifier for the Entity.
Time aggregation (daily, weekly, monthly, yearly).
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the time series statistics for realized savings from applied recommendations.
POST /gateway/ccm/api/recommendation/overview/realized-savings?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Recommendations statistics for the specified filters Grouped on Resource Type.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the statistics of all Recommendations available Grouped on Resource Type.
POST /gateway/ccm/api/recommendation/overview/resource-type/stats?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Recommendations statistics for the specified filters.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the statistics of all Recommendations available.
POST /gateway/ccm/api/recommendation/overview/stats?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns lifecycle & adoption statistics (generated, applied, inferred and ignored buckets plus conversion rate) for the recommendations matching the specified filters.
Account Identifier for the Entity.
Properties of the CCMRecommendation Filter defined in Harness
Fetch recommendations with Saving more than minSaving
Fetch recommendations with Cost more than minCost
Fetch recommendations generated in last daysBack days
Query Offset
Query Limit
Field to sort recommendations by. Allowed values: MONTHLY_SAVING, MONTHLY_COST, APPLIED_AT, RESOURCE_TYPE
Sort order for recommendations. Allowed values: ASCENDING, DESCENDING. Defaults to DESCENDING
toggle childRecommendation value
toggle includeIgnoredRecommendation value
toggle parentRecommendation value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns lifecycle & adoption statistics for the matching Recommendations.
POST /gateway/ccm/api/recommendations/v2/lifecycle-stats?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1947
{
"k8sRecommendationFilterPropertiesDTO": {
"ids": [
"text"
],
"names": [
"text"
],
"namespaces": [
"text"
],
"clusterNames": [
"text"
],
"resourceTypes": [
"WORKLOAD"
],
"recommendationStates": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"regions": [
"text"
]
},
"awsRecommendationFilterPropertiesDTO": {
"instanceType": [
"text"
]
},
"azureRecommendationFilterProperties": {
"instanceType": [
"text"
],
"resourceGroup": [
"text"
]
},
"containerRecommendationFilterPropertiesDTO": {
"k8sClusterName": [
"text"
],
"k8sNamespace": [
"text"
],
"ecsClusterName": [
"text"
],
"ecsLaunchType": [
"text"
]
},
"governanceRecommendationFilterPropertiesDTO": {
"governanceRuleName": [
"text"
]
},
"baseRecommendationFilterPropertiesDTO": {
"id": [
"text"
],
"cloudAccountId": [
"text"
],
"cloudAccountName": [
"text"
],
"resourceId": [
"text"
],
"resourceName": [
"text"
],
"region": [
"text"
],
"resourceType": [
"WORKLOAD"
],
"recommendationState": [
"OPEN"
],
"cloudProvider": [
"AWS"
],
"appliedAtStartTime": 1,
"appliedAtEndTime": 1,
"appliedByUserName": [
"text"
],
"verificationStatus": [
"text"
],
"perspectiveId": [
"text"
]
},
"perspectiveFilters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"minSaving": 1,
"minCost": 1,
"daysBack": 1,
"offset": 1,
"limit": 1,
"sortBy": "MONTHLY_SAVING",
"sortOrder": "ASCENDING",
"childRecommendation": true,
"includeIgnoredRecommendation": true,
"parentRecommendation": true,
"tagDTOs": [
{
"key": "text",
"value": "text"
}
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "CCMRecommendation"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?