Resource list per recommendation
Request
Property | Type | Required | Description |
---|---|---|---|
category | String | Yes | Source of recommendation Possible values: COST, SECURITY, PERFORMANCE, and so on. |
resource_filter | String | No | A query to filter on the resource properties, that is, account_name, service_name, region, and type. Examples:
|
recommendation_filter | String | No | A query to filter on the cost/security recommendation properties (ie rule_id, optimal etc). Examples:
Note: Only type field is supported. |
resource_pool_id | String | No | Filter the recommendations by resourcepool id. |
sort | String | No | Sort on different attributes. Accepted: asc, desc Default: cost_saving:desc Example: sort=cost_saving:desc |
aggregate_by | String | Yes | Group the recommendations by the field specified. Default: type Example: aggregate_by=provider_id |
Request body properties
Example request JSON
"category": "COST",
"resource_filter" : "resource_id IN ['vpc-2002', 'AWS-EC2'] && provider_id='aws'",
"recommendation_filter": "type IN ['IDLE_VM', 'OVERALLOCATED_VM']",
"sort": "cost_saving:desc",
"aggregate_by":"type"
}
Response
Example response JSON
{
"cost_saving": 350000,
"number_of_resources": 532,
"type":"OVERALLOCATED_VM"
},
{
"cost_saving": 90000,
"number_of_resources": 54,
"type":"IDLE_VM"
}
]
Status codes and messages
HTTP code | Message | Description |
---|---|---|
200 | OK | Request succeeded |
401 | Unauthorized | |
400 | Bad request |
Supported filter criteria
Criteria | Keyword |
---|---|
equals | = |
does not equal | != |
empty | IS EMPTY |
not empty | IS NOT EMPTY |
contains | CONTAINS |
does not contain | NOT CONTAINS |
begins with | STARTS_WITH |
ends with | ENDS_WITH |
greater than | > |
greater than or equal to | >= |
less than | < |
less than or equal to | <= |
like a substring | LIKE |
in | IN |
Supported datatypes and corresponding filter criteria
Datatype | Keyword | Supported Criteria |
---|---|---|
Numeric | NUM | equals, does not equal, empty, not empty, greater than, greater than or equal to, less than, less than or equal to |
String | STR | equals, does not equal, empty, not empty, contains, does not contain, begins with, ends with |