diff --git a/hugo/content/en/api/v2/cloud-cost-management/examples.json b/hugo/content/en/api/v2/cloud-cost-management/examples.json index 17709d3be38..0b0867cdda1 100644 --- a/hugo/content/en/api/v2/cloud-cost-management/examples.json +++ b/hugo/content/en/api/v2/cloud-cost-management/examples.json @@ -3598,6 +3598,13 @@ "request": { "json_curl": { "data": { + "attributes": { + "sort": [ + { + "order": "DESC" + } + ] + }, "type": "recommendations_filter" } }, @@ -3605,20 +3612,20 @@ "data": { "attributes": { "filter": "@resource_table:aws_ec2_instance", - "scope": "string", + "scope": "ccm", "sort": [ { - "expression": "string", - "order": "string" + "expression": "@potential_daily_savings", + "order": "DESC" } ], - "view": "string" + "view": "active" }, - "id": "string", + "id": "@resource_table:aws_ec2_instance", "type": "recommendations_filter" } }, - "html": "
data [required]
\nobject
JSON:API resource containing the cost recommendations filter. This legacy search contract\nuses the resource ID for the filter expression rather than as a persistent resource identifier.
attributes
\nobject
Attributes used to filter and sort cost recommendations.
filter
\nstring
Filter expression applied to the recommendations. When supplied, this attribute overrides\ndata.id, including when empty. When omitted, data.id is used. If the resulting filter\nis empty, it defaults to *. Scope, view, and pagination still apply.
scope
\nenum
Recommendations scope. Defaults to ccm; use experiment for experimental recommendations\nor * for both. \nAllowed enum values: ccm,experiment,*
sort
\n[object]
Ordered list of sort clauses applied to the result set.
expression
\nstring
Field to sort by (for example, @potential_daily_savings).
order
\nstring
Sort direction, either ASC or DESC.
view
\nstring
Status view to return: all, active (not dismissed), dismissed, open, in-progress,\nor completed. Defaults to all, which returns recommendations in every status.
id
\nstring
Filter expression applied to the recommendations when attributes.filter is omitted.\nWhen supplied, attributes.filter overrides this value, including when empty. If the\nresulting filter is empty, it defaults to *. Scope, view, and pagination still apply.
type [required]
\nenum
Legacy JSON:API resource type required by the cost recommendations search decoder. \nAllowed enum values: recommendations_filter
default: recommendations_filter
data [required]
\nobject
JSON:API resource containing the cost recommendations filter. This legacy search contract\nuses the resource ID for the filter expression rather than as a persistent resource identifier.
attributes
\nobject
Attributes used to filter and sort cost recommendations.
filter
\nstring
Filter expression applied to the recommendations. When supplied, this attribute overrides\ndata.id, including when empty. When omitted, data.id is used. If the resulting filter\nis empty, it defaults to *. Scope, view, and pagination still apply.
scope
\nenum
Recommendations scope. Defaults to ccm; use experiment for experimental recommendations\nor * for both. An empty value is treated as ccm. \nAllowed enum values: ccm,experiment,*,
sort
\n[object]
Ordered list of sort clauses applied to the result set.
expression
\nstring
Field to sort by (for example, @potential_daily_savings).
order [required]
\nstring
Sort direction, either ASC or DESC (case-insensitive).
view
\nstring
Status view to return: all, active (not dismissed), dismissed, open, in-progress,\nor completed. Defaults to all, which returns recommendations in every status.
id
\nstring
Filter expression applied to the recommendations when attributes.filter is omitted.\nWhen supplied, attributes.filter overrides this value, including when empty. If the\nresulting filter is empty, it defaults to *. Scope, view, and pagination still apply.
type [required]
\nenum
Legacy JSON:API resource type required by the cost recommendations search decoder. \nAllowed enum values: recommendations_filter
default: recommendations_filter