最近更新时间:2024-03-06
GetProductComponent
查询紫光云产品下组件的可售卖规格信息
| 名称 | 数据类型 | 说明 | 参数类型 | 是否必填 |
|---|---|---|---|---|
| RegionId | String | 地域ID | query | 是 |
| ProductCode | String | 产品编码 | query | 是 |
| PaymentMethodCode | String | 计费方式编码 | query | 是 |
ProductComponent:
| 名称 | 数据类型 | 说明 |
|---|---|---|
| ComponentList |
List |
组件集合 |
| ComponentSalableList |
List |
组件下可售卖集合 |
Component 组件集合:
| 名称 | 数据类型 | 说明 |
|---|---|---|
| ProductComponentCode | String | 组件编码 |
| ProductComponentName | String | 组件名称 |
ComponentSalableSpecification 组件下可售卖集合:
| 名称 | 数据类型 | 说明 |
|---|---|---|
| ComponentCode | String | 组件编码 |
| SpecificationList |
List |
组件下可售卖规格集合 |
SalableSpecification 组件下可售卖规格集合:
| 名称 | 数据类型 | 说明 |
|---|---|---|
| SpecificationName | String | 规格名称 |
| SpecificationCode | String | 规格编码 |
| RangeAttribute | String | 范围字段,表示范围属性的含义,该字段存在则rangeValue存在 |
| RangeValue | String | 范围值,下限-上限:步长 |
| ChargeUnit | String | 计费单位 |
| Describe | String | 规格描述 |
http(s)://api.unicloud.com/product?Action=GetProductComponent&PaymentMethodCode=YEAR_MONTH&ProductCode=VM&AccessKeyId=0E9vFY4xL4PvaDil&Signature=dKvipmrF27bAkLldtHjx1bQFl1c%3D
注意:Signature的值请参看签名生成规则说明。
?Action=GetProductComponent&PaymentMethodCode=YEAR_MONTH&ProductCode=VM&其他公共参数
| 错误码 | 错误信息 | 状态码 | 错误描述 |
|---|---|---|---|
| ProductRegionNotExist | This product is not configured for this region. | 400 | 该产品未配置该地域 |
| CanNotGetUserVisibleRegion | Unable to get user visible area. | 500 | 无法获取用户可见区域 |
| UserNoRegionRight | The area is not visible to the user. | 400 | 用户不可见该区域 |
| ProdcutPaymentMethodError | This charging method is not available in the product area. | 400 | 产品地域下无该计费方式 |
| ProductComponentNone | Incoming product without components. | 400 | 传入产品无组件 |
| PaymentMethodError | Payment method code is fault. | 400 | 计费方式编码错误 |
| NoPaymentMethodRight | User does not have permission for this billing method. | 400 | 用户无该计费方式权限 |
| InternalError | The request processing has failed due to some unknown error, exception or failure. | 400 | 内部错误 |