GetResourcePackagePrice_阿里云 Billing_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为100/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
bss:DescribePrice
Get
全部资源
*

请求参数

字段名称字段详情
ProductCodestring

产品代码,可通过接口 QueryProductList 查询产品代码,或查看阿里云产品 Code 速查手册

示例值:ossbag参考取值来源:
    QueryProductList
    DescribeProductAmortizedCostByConsumePeriod
PackageTypestring

资源包类型。值与描述资源包接口返回的 ResourcePackage 的 Code 值相等。

示例值:FPT_ossbag_periodMonthlyAcc_NetworkOut_finance_common参考取值来源:
    CreateResourcePackage
    QueryResourcePackageInstances
EffectiveDatestring

资源包生效时间,不填默认立即生效。展开详情

示例值:2020-02-10T12:00:00Z
Specificationstring

资源包规格大小。

示例值:500
Durationinteger<int32>

资源包时长。值与规格大小的可用时长相符。

示例值:6
PricingCyclestring

资源包时长单位。取值:展开详情

示例值:Month
OrderTypestring

订单类型,取值:展开详情

示例值:BUY参考取值来源:
    QueryOrders
    GetOrderDetail
InstanceIdstring

用户实例 ID。订单类型为续费、升级时,必填。

示例值:OSSBAG-cn-0xl0002参考取值来源:
    CreateInstance
    QueryInstanceBill
    InquiryPriceRefundInstance
    DescribeInstanceBill

返回参数

字段名称字段详情
Codestring

状态码。

示例值:Success
Messagestring

错误信息。

示例值:Successful!
RequestIdstring

请求 ID。

示例值:BBEF51A3-E933-4F40-A534-C673CBDB9C80
Successboolean

是否成功。

示例值:true
Dataobject

返回数据。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
NotApplicable
This API is not applicable for caller.诊断
400
NotAuthorized
This API is not authorized for caller.诊断
400
MissingParameter
Absent some mandatory parameter for this request.诊断
400
InvalidParameter
This request contain some invalid parameter诊断
400
InvalidOwner
The specified owner doesn't belong to caller.诊断
400
DurationInvalid
Parameter duration can only be positive integer.诊断
400
ProductNotFound
Product not found.诊断
400
PackageTypeNotFound
No such resource package type found.诊断
400
SpecificationInvalid
Parameter specification can only be positive integer.诊断
400
IdInvalid
Parameter ownerId is invalid.诊断
400
EffectiveDateInvalid
Parameter effectiveDate is invalid.诊断
400
IdMissing
Paramter ownerId is missing.诊断
400
PackageTypeNotSupported
Package type currently is not supported.诊断
500
InternalError
The request processing has failed due to some unknown error.诊断

变更历史

暂无变更历史

相关示例