Skip to Content
GPU API 接口

查询云存储Pro购买价格

接口说明

按容量、计费方式和购买周期查询云存储Pro(CFS)的购买价格。只询价,不创建资源、不扣费。确认后可用相同购买参数调用 CreateCFS。

POSThttps://api.compshare.cnActionGetCompShareCFSPrice

仅支持 Pod 可用区的 CFS 询价。非 Pod 可用区当前可能返回空价格数组,空结果不代表免费或支持购买。

请求参数

名称类型必填描述示例值
ActionString是接口名称GetCompShareCFSPrice
RegionString是目标地域cn-bj2
ZoneString是目标 Pod 可用区cn-bj2-03
ProjectIdString否项目 ID,不传使用默认项目org-xxx
SizeInteger是云存储容量,单位 GiB,范围 50~2048100
ChargeTypeString否计费方式。枚举值:Month、Year、Day、Dynamic。默认 Month;不支持 PostpayMonth
QuantityInteger否购买周期数,不传时为 1;建议填写正整数,并与创建时保持一致1

本接口不接受 CouponId,如创建时使用代金券,最终金额以实际订单为准。不传 ChargeType 只查询默认按月价格,不会同时返回全部计费方式。

响应参数

名称类型描述
ActionString响应名称:GetCompShareCFSPriceResponse
RetCodeInteger返回码,0 为请求成功
MessageString错误信息,无错误时可能省略
request_uuidString请求唯一标识
PriceDetailsArray of Object折后价格明细
OriginalPriceDetailsArray of Object客户原价明细,结构同 PriceDetails
ListPriceDetailsArray of Object目录价明细,结构同 PriceDetails

价格明细结构

名称类型描述
ChargeTypeString本次询价的计费方式
DisksNumber本次容量、周期对应的存储价格,单位元,不是每 GiB 单价

CFS 只有存储容量计费维度,价格在 Disks 中,不在 Instance 或 SystemDisks 中。

请求示例

{ "Action": "GetCompShareCFSPrice", "Region": "cn-bj2", "Zone": "cn-bj2-03", "Size": 100, "ChargeType": "Month", "Quantity": 1 }

响应示例

金额仅用于展示返回结构,不代表实际售价。

{ "Action": "GetCompShareCFSPriceResponse", "RetCode": 0, "request_uuid": "request-xxxx", "PriceDetails": [{"ChargeType": "Month", "Disks": 10.0}], "OriginalPriceDetails": [{"ChargeType": "Month", "Disks": 12.0}], "ListPriceDetails": [{"ChargeType": "Month", "Disks": 15.0}] }
Last updated on