

# GetServiceLevelObjective
<a name="API_GetServiceLevelObjective"></a>

Returns information about one SLO created in the account. 

## Request Syntax
<a name="API_GetServiceLevelObjective_RequestSyntax"></a>

```
GET /slo/Id HTTP/1.1
```

## URI Request Parameters
<a name="API_GetServiceLevelObjective_RequestParameters"></a>

The request uses the following URI parameters.

 ** [Id](#API_GetServiceLevelObjective_RequestSyntax) **   <a name="applicationsignals-GetServiceLevelObjective-request-uri-Id"></a>
The ARN or name of the SLO that you want to retrieve information about. You can find the ARNs of SLOs by using the [ListServiceLevelObjectives](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListServiceLevelObjectives.html) operation.  
Pattern: `[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]$|^arn:(aws|aws-us-gov):application-signals:[^:]*:[^:]*:slo/[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]`   
Required: Yes

## Request Body
<a name="API_GetServiceLevelObjective_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_GetServiceLevelObjective_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "Slo": { 
      "Arn": "string",
      "BurnRateConfigurations": [ 
         { 
            "LookBackWindowMinutes": number
         }
      ],
      "CreatedTime": number,
      "Description": "string",
      "EvaluationType": "string",
      "Goal": { 
         "AttainmentGoal": number,
         "Interval": { ... },
         "WarningThreshold": number
      },
      "LastUpdatedTime": number,
      "MetricSourceType": "string",
      "Name": "string",
      "RequestBasedSli": { 
         "ComparisonOperator": "string",
         "MetricThreshold": number,
         "RequestBasedSliMetric": { 
            "DependencyConfig": { 
               "DependencyKeyAttributes": { 
                  "string" : "string" 
               },
               "DependencyOperationName": "string"
            },
            "KeyAttributes": { 
               "string" : "string" 
            },
            "MetricSource": { 
               "MetricSourceAttributes": { 
                  "string" : "string" 
               },
               "MetricSourceKeyAttributes": { 
                  "string" : "string" 
               }
            },
            "MetricType": "string",
            "MonitoredRequestCountMetric": { ... },
            "OperationName": "string",
            "TotalRequestCountMetric": [ 
               { 
                  "AccountId": "string",
                  "Expression": "string",
                  "Id": "string",
                  "Label": "string",
                  "MetricStat": { 
                     "Metric": { 
                        "Dimensions": [ 
                           { 
                              "Name": "string",
                              "Value": "string"
                           }
                        ],
                        "MetricName": "string",
                        "Namespace": "string"
                     },
                     "Period": number,
                     "Stat": "string",
                     "Unit": "string"
                  },
                  "Period": number,
                  "ReturnData": boolean
               }
            ]
         }
      },
      "Sli": { 
         "ComparisonOperator": "string",
         "MetricThreshold": number,
         "SliMetric": { 
            "DependencyConfig": { 
               "DependencyKeyAttributes": { 
                  "string" : "string" 
               },
               "DependencyOperationName": "string"
            },
            "KeyAttributes": { 
               "string" : "string" 
            },
            "MetricDataQueries": [ 
               { 
                  "AccountId": "string",
                  "Expression": "string",
                  "Id": "string",
                  "Label": "string",
                  "MetricStat": { 
                     "Metric": { 
                        "Dimensions": [ 
                           { 
                              "Name": "string",
                              "Value": "string"
                           }
                        ],
                        "MetricName": "string",
                        "Namespace": "string"
                     },
                     "Period": number,
                     "Stat": "string",
                     "Unit": "string"
                  },
                  "Period": number,
                  "ReturnData": boolean
               }
            ],
            "MetricSource": { 
               "MetricSourceAttributes": { 
                  "string" : "string" 
               },
               "MetricSourceKeyAttributes": { 
                  "string" : "string" 
               }
            },
            "MetricType": "string",
            "OperationName": "string"
         }
      }
   }
}
```

## Response Elements
<a name="API_GetServiceLevelObjective_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [Slo](#API_GetServiceLevelObjective_ResponseSyntax) **   <a name="applicationsignals-GetServiceLevelObjective-response-Slo"></a>
A structure containing the information about the SLO.  
Type: [ServiceLevelObjective](API_ServiceLevelObjective.md) object

## Errors
<a name="API_GetServiceLevelObjective_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** ResourceNotFoundException **   
Resource not found.    
 ** ResourceId **   
Can't find the resource id.  
 ** ResourceType **   
The resource type is not valid.
HTTP Status Code: 404

 ** ThrottlingException **   
The request was throttled because of quota limits.  
HTTP Status Code: 429

 ** ValidationException **   
The resource is not valid.  
HTTP Status Code: 400

## See Also
<a name="API_GetServiceLevelObjective_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/application-signals-2024-04-15/GetServiceLevelObjective) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/application-signals-2024-04-15/GetServiceLevelObjective) 