GetRecord - Amazon SageMaker Service

GetRecord

Use for OnlineStore serving from a FeatureStore. Only the latest records stored in the OnlineStore can be retrieved. If no Record with RecordIdentifierValue is found, then an empty result is returned.

Request Syntax

GET /FeatureGroup/FeatureGroupName HTTP/1.1 Content-type: application/json { "FeatureNames": [ "string" ], "RecordIdentifierValueAsString": "string" }

URI Request Parameters

The request uses the following URI parameters.

FeatureGroupName

The name of the feature group in which you want to put the records.

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*

Required: Yes

Request Body

The request accepts the following data in JSON format.

FeatureNames

List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.

Type: Array of strings

Array Members: Minimum number of 1 item.

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[a-zA-Z0-9]([-_]*[a-zA-Z0-9])*

Required: No

RecordIdentifierValueAsString

The value that corresponds to RecordIdentifier type and uniquely identifies the record in the FeatureGroup.

Type: String

Length Constraints: Maximum length of 358400.

Pattern: .*

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Record": [ { "FeatureName": "string", "ValueAsString": "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.

Record

The record you requested. A list of FeatureValues.

Type: Array of FeatureValue objects

Array Members: Minimum number of 1 item.

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 AWS customer support.

HTTP Status Code: 500

ResourceNotFound

A resource that is required to perform an action was not found.

HTTP Status Code: 404

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 AWS SDKs, see the following: