参考本示例查询预付费计费方式的闪电立方的价格。
询价说明
获取预付费闪电立方的价格,您需要完成以下操作:
- 调用QueryProductList获取产品code,闪电立方的产品code为
hcs_mgw
。 - 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCode和SubscriptionType参数。预付费产品的SubscriptionType取值为Subscription。
下表列举了获取预付费闪电立方价格需提供的参数。
名称 说明 取值范围 OrderType NewOrder 订单类型,取值: - NewOrder:新增。
- Renewal:续费。
- Upgrade:升级。
Region cn-hangzhou 地域信息。 ModuleList.1.ModuleCode SaleMode 售卖模式。 ModuleList.1.Config rent 取值: - rent:按设备租用天数。
- service:按迁移数据量。
ModuleList.2.ModuleCode DeviceSpec 闪电立方型号。 ModuleList.2.Config cubeI 取值: - cubeI:闪电立方mini。
- cubeII:闪电立方II(3U机架式)。
- cubeIII:闪电立方III(6U机架式)。
ModuleList.3.ModuleCode CloudStorageType 云端存储类型。 ModuleList.3.Config oss 取值 - oss:对象存储OSS。
- nas:文件存储NAS。
ModuleList.4.ModuleCode CloudStorageRegion 云上存储的区域。 ModuleList.4.Config cn-hangzhou 云上存储的区域取值具体参考官网售卖页。 ModuleList.5.ModuleCode SourceType 您的数据类型。 ModuleList.5.Config localFs 取值: - localFs:本地存储(localFS)。
- nas:本地共享存储NAS。
- Hadoop:Hadoop(HDFS-NAS)。
- fastDFS:fastDFS。
- vpcOss:专有云OSS。
- Luster:Luster(NAS协议)。
ModuleList.6.ModuleCode SwitchCapacity 您的交换机类型。 ModuleList.6.Config km 取值: - km:千兆交换机。
- wm:万兆交换机。
ModuleList.7.ModuleCode SwitchPort 交换机可用网口数。 ModuleList.7.Config 1 取值,1~48,默认值:1。 ModuleList.8.ModuleCode SwitchPortType 交换机接口类型。 ModuleList.8.Config guangkou 取值: - guangkou:光口。
- diankou:电口。
ModuleList.9.ModuleCode StartDate 期望开始时间。 ModuleList.9.Config 2016-05-23T12:00:00Z 期望开始时间格式:YYYY-MM-ddTHH:mm:ssZ。 ModuleList.10.ModuleCode RentDay 租用天数。 ModuleList.10.Config 10 租用天数取值,1~365,默认值:10。 ModuleList.11.ModuleCode HasHost 有可部署闪电立方Agent的服务器。 ModuleList.11.Config false 取值: - true:是。
- false:否。
ModuleList.12.ModuleCode Bracket 机架空位。 ModuleList.12.Config U2 取值: - U2:2U(40TB)。
- U3:3U(100TB)。
- U6:6U(480TB)。
ModuleList.13.ModuleCode Size 迁移的数据量。 ModuleList.13.Config 40 取值,1~102400,默认值:40。 ModuleList.14.ModuleCode Contactor 联系人。 ModuleList.14.Config 张三 自定义,新购必输项。 ModuleList.15.ModuleCode Telephone 联系电话 ModuleList.15.Config 1390000**** 自定义,新购必输项。 ModuleList.16.ModuleCode LocalAddress 您的数据所在地址。 ModuleList.16.Config %E5%AE%89%E5%AE%89 自定义,新购必输项。 ModuleList.17.ModuleCode RentOrderId 押金订单号。 ModuleList.17.Config 1213215465 自定义,新购必输项。 - 调用GetSubscriptionPrice接口获取预付费闪电立方的价格。
请求示例
按设备租用天数(询价)
https://business.aliyuncs.com/?Action=GetSubscriptionPrice
&Format=JSON
&ModuleList.1.Config=SaleMode:rent
&ModuleList.1.ModuleCode=SaleMode
&ModuleList.2.Config=DeviceSpec:cubeI
&ModuleList.2.ModuleCode=DeviceSpec
&ModuleList.3.Config=CloudStorageType:oss
&ModuleList.3.ModuleCode=CloudStorageType
&ModuleList.4.Config=SourceType:localFs
&ModuleList.4.ModuleCode=SourceType
&ModuleList.5.Config=CloudStorageRegion:cn-beijing
&ModuleList.5.ModuleCode=CloudStorageRegion
&ModuleList.6.Config=SwitchCapacity:km
&ModuleList.6.ModuleCode=SwitchCapacity
&ModuleList.7.Config=SwitchPort:1
&ModuleList.7.ModuleCode=SwitchPort
&ModuleList.8.Config=SwitchPortType:guangkou
&ModuleList.8.ModuleCode=SwitchPortType
&ModuleList.9.Config=RentDay:1
&ModuleList.9.ModuleCode=RentDay
&OrderType=NewOrder
&ProductCode=hcs_mgw
&ProductType=mgwpreServicePeriodQuantity=1
&ServicePeriodUnit=Month
&SubscriptionType=Subscription
&公共参数
按设备租用天数(新购)
https://business.aliyuncs.com/?Action=CreateInstance
&Parameter.1.Code=SaleMode
&Parameter.1.Value=rent
&Parameter.10.Code=Contactor
&Parameter.10.Value=liuwen
&Parameter.11.Code=Telephone
&Parameter.11.Value=176642****
&Parameter.12.Code=LocalAddress
&Parameter.12.Value=%E5%AE%89%E5%A****
&Parameter.13.Code=StartDate
&Parameter.13.Value=2019-04-23T12:00:00Z
&Parameter.2.Code=DeviceSpec
&Parameter.2.Value=cubeI
&Parameter.3.Code=CloudStorageType
&Parameter.3.Value=oss
&Parameter.4.Code=SourceType
&Parameter.4.Value=localFs
&Parameter.5.Code=CloudStorageRegion
&Parameter.5.Value=cn-beijing
&Parameter.6.Code=SwitchCapacity
&Parameter.6.Value=km
&Parameter.7.Code=SwitchPort
&Parameter.7.Value=1
&Parameter.8.Code=SwitchPortType
&Parameter.8.Value=guangkou
&Parameter.9.Code=RentDay
&Parameter.9.Value=1
&Period=1
&ProductCode=hcs_mgw
&ProductType=mgwpre
&SubscriptionType=Subscription
&公共参数
按迁移数据量(询价):
https://business.aliyuncs.com/?&Action=GetSubscriptionPrice
&ModuleList.1.Config=SaleMode:service
&ModuleList.1.ModuleCode=SaleMode
&ModuleList.10.Config=HasHost:TRUE
&ModuleList.10.ModuleCode=HasHost
&ModuleList.11.Config=Bracket:U2
&ModuleList.11.ModuleCode=Bracket
&ModuleList.2.Config=DeviceSpec:cubeI
&ModuleList.2.ModuleCode=DeviceSpec
&ModuleList.3.Config=CloudStorageType:oss
&ModuleList.3.ModuleCode=CloudStorageType
&ModuleList.4.Config=SourceType:localFs
&ModuleList.4.ModuleCode=SourceType
&ModuleList.5.Config=CloudStorageRegion:cn-beijing
&ModuleList.5.ModuleCode=CloudStorageRegion
&ModuleList.6.Config=SwitchCapacity:km
&ModuleList.6.ModuleCode=SwitchCapacity
&ModuleList.7.Config=SwitchPort:1
&ModuleList.7.ModuleCode=SwitchPort
&ModuleList.8.Config=SwitchPortType:guangkou
&ModuleList.8.ModuleCode=SwitchPortType
&ModuleList.9.Config=Size:41
&ModuleList.9.ModuleCode=Size
&OrderType=NewOrder
&ProductCode=hcs_mgw
&ProductType=mgwpre
&ServicePeriodQuantity=1
&ServicePeriodUnit=Month
&SubscriptionType=Subscription
&公共参数