本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
ListComponents
此 API 列出了实体的组件。
请求语法
POST /workspaces/workspaceId
/entities/entityId
/components-list HTTP/1.1
Content-type: application/json
{
"componentPath": "string
",
"maxResults": number
,
"nextToken": "string
"
}
URI 请求参数
请求使用以下 URI 参数。
- entityId
-
操作返回其元数据(组件/属性)的实体的 ID。
长度限制:长度下限为 1。最大长度为 128。
模式:
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\-0-9.:]*[a-zA-Z0-9]+
必需:是
- workspaceId
-
工作区 ID。
长度限制:长度下限为 1。最大长度为 128。
模式:
[a-zA-Z_0-9][a-zA-Z_\-0-9]*[a-zA-Z0-9]+
必需:是
请求体
请求接受采用 JSON 格式的以下数据。
- componentPath
-
此字符串指定从顶层组件开始的复合组件路径。
类型:字符串
长度限制:最小长度为 0。最大长度为 2048。
模式:
[a-zA-Z_\-0-9/]+
必需:否
- maxResults
-
一次性返回的最大结果数。默认值为 25。
类型:整数
有效范围:最小值为 0。最大值为 200。
必需:否
- nextToken
-
指定下一页结果的字符串。
类型:字符串
长度约束:最小长度为 0。最大长度为 17880。
模式:
.*
必需:否
响应语法
HTTP/1.1 200
Content-type: application/json
{
"componentSummaries": [
{
"componentName": "string",
"componentPath": "string",
"componentTypeId": "string",
"definedIn": "string",
"description": "string",
"propertyGroups": {
"string" : {
"groupType": "string",
"isInherited": boolean,
"propertyNames": [ "string" ]
}
},
"status": {
"error": {
"code": "string",
"message": "string"
},
"state": "string"
},
"syncSource": "string"
}
],
"nextToken": "string"
}
响应元素
如果此操作成功,则该服务将会发送回 HTTP 200 响应。
服务以 JSON 格式返回以下数据。
- componentSummaries
-
包含有关组件信息的对象列表。
类型:ComponentSummary 对象数组
- nextToken
-
指定下一页组件结果的字符串。
类型:字符串
长度约束:最小长度为 0。最大长度为 17880。
模式:
.*
错误
有关所有操作的常见错误的信息,请参阅常见错误。
- AccessDeniedException
-
访问被拒绝。
HTTP 状态代码:403
- InternalServerException
-
出现意外错误。
HTTP 状态代码:500
- ResourceNotFoundException
-
未找到资源。
HTTP 状态代码:404
- ThrottlingException
-
速率超过限制。
HTTP 状态代码:429
- ValidationException
-
失败
HTTP 状态代码:400
另请参阅
有关以特定语言之一使用此 API 的更多信息 AWS SDKs,请参阅以下内容: