使用GetInventorySchema获取配置清单的模式信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetInventorySchema |
系统规定参数。取值:GetInventorySchema。 |
Aggregator | Boolean | 是 | false |
是否仅展示支持聚合的模式。 取值范围:
|
TypeName | String | 是 | ACS:Application |
组件名称。取值范围:
|
RegionId | String | 否 | cn-hangzhou |
地域ID。 |
MaxResults | Integer | 否 | 50 |
分页大小。取值范围:1-100。默认为50。 |
NextToken | String | 否 | gAAAAABfh8MVLQI9AuKGACLgjbsXbWs-Mna47IDM6tr6wK7TZ1 |
翻页标记的Token。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
NextToken | String | gAAAAABfh8MVLQI9AuKGACLgjbsXbWs-Mna47IDM6tr6wK7TZ1 |
翻页标记的Token |
RequestId | String | 89117642-7167-4F4D-B7F1-876582279E3E |
请求ID |
Schemas | Array of Schema |
组件配置清单详细信息 |
|
Attributes | Array of Attribute |
组件配置的详细属性 |
|
DataType | String | STRING |
组件配置的数据类型 |
Name | String | ApplicationType |
组件配置的属性名称 |
TypeName | String | ACS:Application |
组件名称 |
Version | String | 1.0 |
组件版本 |
示例
请求示例
http(s)://[Endpoint]/?Aggregator=false
&TypeName=ACS:Application
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>4C7475E8-6B0C-4550-B39F-A2A237863E1E</RequestId>
<Schemas>
<TypeName>ACS:Application</TypeName>
<Version>1.0</Version>
<Attributes>
<DataType>STRING</DataType>
<Name>Name</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>ApplicationType</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Publisher</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Version</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>InstalledTime</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Architecture</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>URL</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Summary</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>PackageId</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Release</Name>
</Attributes>
<Attributes>
<DataType>STRING</DataType>
<Name>Epoch</Name>
</Attributes>
</Schemas>
JSON
格式
{
"RequestId": "4C7475E8-6B0C-4550-B39F-A2A237863E1E",
"Schemas": [
{
"TypeName": "ACS:Application",
"Version": "1.0",
"Attributes": [
{
"DataType": "STRING",
"Name": "Name"
},
{
"DataType": "STRING",
"Name": "ApplicationType"
},
{
"DataType": "STRING",
"Name": "Publisher"
},
{
"DataType": "STRING",
"Name": "Version"
},
{
"DataType": "STRING",
"Name": "InstalledTime"
},
{
"DataType": "STRING",
"Name": "Architecture"
},
{
"DataType": "STRING",
"Name": "URL"
},
{
"DataType": "STRING",
"Name": "Summary"
},
{
"DataType": "STRING",
"Name": "PackageId"
},
{
"DataType": "STRING",
"Name": "Release"
},
{
"DataType": "STRING",
"Name": "Epoch"
}
]
}
]
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | The parameter is invalid. | 无效的参数 |
访问错误中心查看更多错误码。