CreateResourcePackage_阿里云 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:ModifyInstance
Create
全部资源
*

请求参数

字段名称字段详情
ProductCodestring

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

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

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

示例值:FPT_ossbag_absolute_Storage_sh参考取值来源:
    QueryResourcePackageInstances
EffectiveDatestring

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

示例值:2020-03-03T12:00:00Z
Specificationstring

资源包规格大小。值与描述资源包返回的 Specification 的 value 值相等。

示例值:40
Durationinteger<int32>

资源包时长。

示例值:6
PricingCyclestring

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

示例值:Month

返回参数

字段名称字段详情
Codestring

状态码。

示例值:Success
Messagestring

错误信息。

示例值:Successful!
RequestIdstring

请求 ID。

示例值:6000EE23-274B-4E07-A697-FF2E999520A4
Successboolean

是否成功。

示例值:true
OrderIdinteger<int64>

订单 ID。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:202407022550621
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.诊断

变更历史

变更时间变更内容概要操作
2024-04-19
删除返回参数

相关示例