BatchGetRecord - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

BatchGetRecord

Retrieves a batch of Records from a FeatureGroup.

Request Syntax

POST /BatchGetRecord HTTP/1.1 Content-type: application/json { "Identifiers": [ { "FeatureGroupName": "string", "FeatureNames": [ "string" ], "RecordIdentifiersValueAsString": [ "string" ] } ] }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

Identifiers

A list of FeatureGroup names, with their corresponding RecordIdentifier value, and Feature name that have been requested to be retrieved in batch.

Type: Array of BatchGetRecordIdentifier objects

Array Members: Minimum number of 1 item. Maximum number of 10 items.

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Errors": [ { "ErrorCode": "string", "ErrorMessage": "string", "FeatureGroupName": "string", "RecordIdentifierValueAsString": "string" } ], "Records": [ { "FeatureGroupName": "string", "Record": [ { "FeatureName": "string", "ValueAsString": "string" } ], "RecordIdentifierValueAsString": "string" } ], "UnprocessedIdentifiers": [ { "FeatureGroupName": "string", "FeatureNames": [ "string" ], "RecordIdentifiersValueAsString": [ "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.

Errors

A list of errors that have occurred when retrieving a batch of Records.

Type: Array of BatchGetRecordError objects

Array Members: Minimum number of 0 items.

Records

A list of Records you requested to be retrieved in batch.

Type: Array of BatchGetRecordResultDetail objects

Array Members: Minimum number of 0 items.

UnprocessedIdentifiers

A unprocessed list of FeatureGroup names, with their corresponding RecordIdentifier value, and Feature name.

Type: Array of BatchGetRecordIdentifier objects

Array Members: Minimum number of 0 items.

Errors

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

AccessForbidden

You do not have permission to perform an action.

HTTP Status Code: 403

InternalFailure

An internal failure occurred. Try your request again. If the problem persists, contact Amazon customer support.

HTTP Status Code: 500

ServiceUnavailable

The service is currently unavailable.

HTTP Status Code: 503

ValidationError

There was an error validating your request.

HTTP Status Code: 400

See Also

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