v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1430332272.3 KB

Returns a list of SLOs created in this account.

post/slos

Query parameters

OperationNamestring

The name of the operation that this SLO is associated with.

MaxResultsinteger

The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used.

NextTokenstring

Include this value, if it was returned by the previous operation, to get the next set of service level objectives.

IncludeLinkedAccountsboolean
<p>If you are using this operation in a monitoring account, specify <code>true</code> to include SLO from source accounts in the returned data. </p> <p>When you are monitoring an account, you can use Amazon Web Services account ID in <code>KeyAttribute</code> filter for service source account and <code>SloOwnerawsaccountID</code> for SLO source account with <code>IncludeLinkedAccounts</code> to filter the returned data to only a single source account. </p>
SloOwnerAwsAccountIdstring

SLO's Amazon Web Services account ID.

Request body

KeyAttributesobject
<p>You can use this optional field to specify which services you want to retrieve SLO information for.</p> <p>This is a string-to-string map. It can include the following fields.</p> <ul> <li> <p> <code>Type</code> designates the type of object this is.</p> </li> <li> <p> <code>ResourceType</code> specifies the type of the resource. This field is used only when the value of the <code>Type</code> field is <code>Resource</code> or <code>AWS::Resource</code>.</p> </li> <li> <p> <code>Name</code> specifies the name of the object. This is used only if the value of the <code>Type</code> field is <code>Service</code>, <code>RemoteService</code>, or <code>AWS::Service</code>.</p> </li> <li> <p> <code>Identifier</code> identifies the resource objects of this resource. This is used only if the value of the <code>Type</code> field is <code>Resource</code> or <code>AWS::Resource</code>.</p> </li> <li> <p> <code>Environment</code> specifies the location where this object is hosted, or what it belongs to.</p> </li> </ul>
MetricSourceTypesMetricSourceType[]
<p>Use this optional field to only include SLOs with the specified metric source types in the output. Supported types are:</p> <ul> <li> <p>Service operation</p> </li> <li> <p>Service dependency</p> </li> <li> <p>Service</p> </li> <li> <p>CloudWatch metric</p> </li> <li> <p>AppMonitor</p> </li> <li> <p>Canary</p> </li> </ul>

Response

Success

NextTokenstring

Include this value in your next use of this API to get next set of service level objectives.