쿠키 기본 설정 선택

당사는 사이트와 서비스를 제공하는 데 필요한 필수 쿠키 및 유사한 도구를 사용합니다. 고객이 사이트를 어떻게 사용하는지 파악하고 개선할 수 있도록 성능 쿠키를 사용해 익명의 통계를 수집합니다. 필수 쿠키는 비활성화할 수 없지만 '사용자 지정' 또는 ‘거부’를 클릭하여 성능 쿠키를 거부할 수 있습니다.

사용자가 동의하는 경우 AWS와 승인된 제3자도 쿠키를 사용하여 유용한 사이트 기능을 제공하고, 사용자의 기본 설정을 기억하고, 관련 광고를 비롯한 관련 콘텐츠를 표시합니다. 필수가 아닌 모든 쿠키를 수락하거나 거부하려면 ‘수락’ 또는 ‘거부’를 클릭하세요. 더 자세한 내용을 선택하려면 ‘사용자 정의’를 클릭하세요.

Models - Amazon API Gateway
이 페이지는 귀하의 언어로 번역되지 않았습니다. 번역 요청

Models

Represents the collection of data models for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

URI

/v2/apis/apiId/models

HTTP methods

GET

Operation ID: GetModels

Gets the Models for an API.

Path parameters
NameTypeRequiredDescription
apiIdStringTrue

The API identifier.

Query parameters
NameTypeRequiredDescription
nextTokenStringFalse

The next page of elements from this collection. Not valid for the last element of the collection.

maxResultsStringFalse

The maximum number of elements to be returned for this resource.

Responses
Status codeResponse modelDescription
200Models

Success

400BadRequestException

One of the parameters in the request is invalid.

404NotFoundException

The resource specified in the request was not found.

429LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

POST

Operation ID: CreateModel

Creates a Model for an API.

Path parameters
NameTypeRequiredDescription
apiIdStringTrue

The API identifier.

Responses
Status codeResponse modelDescription
201Model

The request has succeeded and has resulted in the creation of a resource.

400BadRequestException

One of the parameters in the request is invalid.

404NotFoundException

The resource specified in the request was not found.

409ConflictException

The resource already exists.

429LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

Schemas

Request bodies

{ "name": "string", "description": "string", "schema": "string", "contentType": "string" }

POST schema

{ "name": "string", "description": "string", "schema": "string", "contentType": "string" }

Response bodies

{ "items": [ { "modelId": "string", "name": "string", "description": "string", "schema": "string", "contentType": "string" } ], "nextToken": "string" }

Models schema

{ "items": [ { "modelId": "string", "name": "string", "description": "string", "schema": "string", "contentType": "string" } ], "nextToken": "string" }
{ "modelId": "string", "name": "string", "description": "string", "schema": "string", "contentType": "string" }

Model schema

{ "modelId": "string", "name": "string", "description": "string", "schema": "string", "contentType": "string" }
{ "message": "string" }

BadRequestException schema

{ "message": "string" }
{ "message": "string", "resourceType": "string" }

NotFoundException schema

{ "message": "string", "resourceType": "string" }
{ "message": "string" }

ConflictException schema

{ "message": "string" }
{ "message": "string", "limitType": "string" }

LimitExceededException schema

{ "message": "string", "limitType": "string" }

Properties

BadRequestException

The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

ConflictException

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

CreateModelInput

Represents the input parameters for a CreateModel request.

PropertyTypeRequiredDescription
contentType

string

False

The content-type for the model, for example, "application/json".

description

string

False

The description of the model.

name

string

True

The name of the model. Must be alphanumeric.

schema

string

True

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

LimitExceededException

A limit has been exceeded. See the accompanying error message for details.

PropertyTypeRequiredDescription
limitType

string

False

The limit type.

message

string

False

Describes the error encountered.

Model

Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

PropertyTypeRequiredDescription
contentType

string

False

The content-type for the model, for example, "application/json".

description

string

False

The description of the model.

modelId

string

False

The model identifier.

name

string

True

The name of the model. Must be alphanumeric.

schema

string

False

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

Models

Represents a collection of data models. See Create Models and Mapping Templates for Request and Response Mappings.

PropertyTypeRequiredDescription
items

Array of type Model

False

The elements from this collection.

nextToken

string

False

The next page of elements from this collection. Not valid for the last element of the collection.

NotFoundException

The resource specified in the request was not found. See the message field for more information.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

resourceType

string

False

The resource type.

See also

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

GetModels

CreateModel

프라이버시사이트 이용 약관쿠키 기본 설정
© 2025, Amazon Web Services, Inc. 또는 계열사. All rights reserved.