Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0

DescribeEndpoint

Returns the description of an endpoint.

{
   "[EndpointName](#SageMaker-DescribeEndpoint-request-EndpointName)": "string"
}

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

** EndpointName ** The name of the endpoint.
Type: String
Length Constraints: Maximum length of 63.
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*
Required: Yes

{
   "[CreationTime](#SageMaker-DescribeEndpoint-response-CreationTime)": number,
   "[EndpointArn](#SageMaker-DescribeEndpoint-response-EndpointArn)": "string",
   "[EndpointConfigName](#SageMaker-DescribeEndpoint-response-EndpointConfigName)": "string",
   "[EndpointName](#SageMaker-DescribeEndpoint-response-EndpointName)": "string",
   "[EndpointStatus](#SageMaker-DescribeEndpoint-response-EndpointStatus)": "string",
   "[FailureReason](#SageMaker-DescribeEndpoint-response-FailureReason)": "string",
   "[LastModifiedTime](#SageMaker-DescribeEndpoint-response-LastModifiedTime)": number,
   "[ProductionVariants](#SageMaker-DescribeEndpoint-response-ProductionVariants)": [ 
      { 
         "[CurrentInstanceCount](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-CurrentInstanceCount)": number,
         "[CurrentWeight](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-CurrentWeight)": number,
         "[DeployedImages](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-DeployedImages)": [ 
            { 
               "[ResolutionTime](API_DeployedImage.md#SageMaker-Type-DeployedImage-ResolutionTime)": number,
               "[ResolvedImage](API_DeployedImage.md#SageMaker-Type-DeployedImage-ResolvedImage)": "string",
               "[SpecifiedImage](API_DeployedImage.md#SageMaker-Type-DeployedImage-SpecifiedImage)": "string"
            }
         ],
         "[DesiredInstanceCount](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-DesiredInstanceCount)": number,
         "[DesiredWeight](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-DesiredWeight)": number,
         "[VariantName](API_ProductionVariantSummary.md#SageMaker-Type-ProductionVariantSummary-VariantName)": "string"
      }
   ]
}

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

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

** CreationTime ** A timestamp that shows when the endpoint was created.
Type: Timestamp

** EndpointArn ** The Amazon Resource Name (ARN) of the endpoint.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:endpoint/.*

** EndpointConfigName ** The name of the endpoint configuration associated with this endpoint.
Type: String
Length Constraints: Maximum length of 63.
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*

** EndpointName ** Name of the endpoint.
Type: String
Length Constraints: Maximum length of 63.
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*

** EndpointStatus ** The status of the endpoint.
+ OutOfService: Endpoint is not available to take incoming requests. + Creating: CreateEndpoint is executing. + Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing. + SystemUpdating: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled until it has completed. This maintenance operation does not change any customer-specified values such as VPC config, KMS encryption, model, instance type, or instance count. + RollingBack: Endpoint fails to scale up or down or change its variant weight and is in the process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an InService status. This transitional status only applies to an endpoint that has autoscaling enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly. + InService: Endpoint is available to process incoming requests. + Deleting: DeleteEndpoint is executing. + Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpoint:FailureReason for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint. Type: String
Valid Values:OutOfService | Creating | Updating | SystemUpdating | RollingBack | InService | Deleting | Failed

** FailureReason ** If the status of the endpoint is Failed, the reason why it failed.
Type: String
Length Constraints: Maximum length of 1024.

** LastModifiedTime ** A timestamp that shows when the endpoint was last modified.
Type: Timestamp

** ProductionVariants ** An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.
Type: Array of ProductionVariantSummary objects
Array Members: Minimum number of 1 item.

For information about the errors that are common to all actions, see Common Errors.

For more information about using this API in one of the language-specific AWS SDKs, see the following: + AWS Command Line Interface + AWS SDK for .NET + AWS SDK for C++ + AWS SDK for Go + AWS SDK for Go - Pilot + AWS SDK for Java + AWS SDK for JavaScript + AWS SDK for PHP V3 + AWS SDK for Python + AWS SDK for Ruby V2