View a markdown version of this page

ListInferenceRouters - Amazon SageMaker

ListInferenceRouters

Lists the inference routers in your account in the current AWS Region. A router that you just created might not appear in the list right away.

Request Syntax

{ "MaxResults": number, "NextToken": "string" }

Request Parameters

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

The request accepts the following data in JSON format.

MaxResults

The maximum number of inference routers to return in the response.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

NextToken

If the previous response was truncated, you receive this token. To get the next set of inference routers, use it in your next request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 8192.

Pattern: .*

Required: No

Response Syntax

{ "InferenceRouters": [ { "CreationTime": number, "InferenceRouterArn": "string", "InferenceRouterName": "string", "LastModifiedTime": number } ], "NextToken": "string" }

Response Elements

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

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

InferenceRouters

A list of summaries of the inference routers.

Type: Array of InferenceRouterSummary objects

NextToken

If the response is truncated, SageMaker AI returns this token. To get the next set of inference routers, use it in your next request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 8192.

Pattern: .*

Errors

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

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: