调用DescribePricingModule查询阿里云某个产品对应模块信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribePricingModule |
系统规定参数。取值:DescribePricingModule。 |
ProductCode | String | 是 | rds |
产品代码,可通过接口QueryProductList查询产品代码,或查看阿里云产品Code速查手册。 |
SubscriptionType | String | 是 | Subscription |
订阅类型。取值:
|
ProductType | String | 否 | rds |
产品类型,可通过接口QueryProductList查询产品类型。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | Success |
状态码。 |
Data | Struct |
返回数据。 |
|
AttributeList | Array of Attribute |
模块定价属性值。 |
|
Attribute | |||
Code | String | DBInstanceStorage |
属性Code。 |
Name | String | 存储空间 |
属性名称。 |
Unit | String | GB |
属性单位。 |
Values | Array of AttributeValue |
属性。 |
|
AttributeValue | |||
Name | String | 2 核 4GB(单机基础版) |
模块Code对应属性值。 |
Remark | String | 连接数:4000 IOPS与存储空间大小有关 |
模块取值描述信息。 |
Type | String | single_string |
模块Code对应属性值类型。取值:
|
Value | String | mysql.n2.medium.1 |
模块Code对应属性值。 说明 在Type = range_float时格式1024-1024000:1024表示从1024至1024000,步长1024。
|
ModuleList | Array of Module |
模块及定价属性信息。 |
|
Module | |||
ConfigList | List | [ "Region","InstanceType" ] |
模块依赖的定价属性Code集合。 |
Currency | String | CNY |
币种:CNY:人民币。 |
ModuleCode | String | InstanceType |
计价模块标识。 |
ModuleName | String | 实例 |
计价模块名称。 |
PriceType | String | Month |
价格类型:
|
Message | String | This API is not applicable for caller. |
错误信息。 |
RequestId | String | C40A8EE0-8084-49FE-B66E-5E1C3B6AE025 |
请求ID。 |
Success | Boolean | true |
是否成功。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribePricingModule
&ProductCode=ecs
&SubscriptionType=Subscription
&<公共请求参数>
正常返回示例
XML
格式
<DescribePricingModuleResponse>
<Message>Successful!</Message>
<RequestId>C40A8EE0-8084-49FE-B66E-5E1C3B6AE025</RequestId>
<Data>
<AttributeList>
<Attribute>
<Values>
<AttributeValue>
<Type>single_string</Type>
<Value>cn-qingdao-cm5-a01</Value>
<Name>华北 1</Name>
</AttributeValue>
</Values>
<Code>Region</Code>
<Name>地域</Name>
</Attribute>
</AttributeList>
<ModuleList>
<Module>
<ModuleCode>DataDisk</ModuleCode>
<ModuleName>数据盘</ModuleName>
<Currency>CNY</Currency>
<PriceType>Month</PriceType>
<ConfigList>
<ConfigList>Region</ConfigList>
<ConfigList>DataDisk.Category</ConfigList>
</ConfigList>
</Module>
</ModuleList>
</Data>
<Code>Success</Code>
<Success>true</Success>
</DescribePricingModuleResponse>
JSON
格式
{
"Message": "Successful!",
"RequestId": "C40A8EE0-8084-49FE-B66E-5E1C3B6AE025",
"Data": {
"AttributeList": {
"Attribute": [
{
"Values": {
"AttributeValue": [
{
"Type": "single_string",
"Value": "cn-qingdao-cm5-a01",
"Name": "华北 1"
}
]
},
"Code": "Region",
"Name": "地域"
}
]
},
"ModuleList": {
"Module": [
{
"ModuleCode": "DataDisk",
"ModuleName": "数据盘",
"Currency": "CNY",
"PriceType": "Month",
"ConfigList": {
"ConfigList": [
"Region",
"DataDisk.Category"
]
}
}
]
}
},
"Code": "Success",
"Success": true
}
错误码
访问错误中心查看更多错误码。