You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
配额模版
CreateTemplateQuotaItem - 创建配额模版
复制全文
下载 pdf
CreateTemplateQuotaItem - 创建配额模版

创建配额模版

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

参数
类型
是否必填
示例值
描述
Action
String
是

CreateTemplateQuotaItem

要执行的操作,取值:CreateTemplateQuotaItem。

Version
String
是

2022-07-01

API的版本,取值:2022-07-01。

ProviderCode
String
是

iam

服务发code

QuotaCode
String
是

policy

配额code

Dimensions
Array of Object
是

[{"Name":"region_code","Value":""}]

配额维度

DesireValue
Double
是

100

预期更配配额

Description
String
否

描述

描述

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数
类型
示例值
描述
AccountID
Long

2100000000

账号ID

ProviderCode
String

iam

服务方code

ProductName
String

访问控制

产品名称

QuotaCode
String

policy

配额code

QuotaType
String

normal

配额类型

Dimensions
Array of Object

[{"Name":"region_code","Value":""}]

配额维度

请求示例

GET /?Action=CreateTemplateQuotaItem&Version=2022-07-01&ProviderCode=iam&QuotaCode=policy&DesireValue=100 HTTP/1.1
Host: quota.volcengineapi.com
X-Date: 20251225T125816Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251225/cn-beijing/quota/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
    "ResponseMetadata": {
        "RequestId": "202301031950101C162E4C972BD0B0A73C"
    },
    "Result": {
        "AccountID": 2100000000,
        "ProviderCode": "platformServices",
        "QuotaCode": "quota_alarm",
        "Dimensions": [
            {
                "Name": "region_code",
                "Value": "quota-test"
            }
        ]
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
EntityNotExist

%v[%v] not exist

操作对象不存在

400
QuotaNotAdjustable

Quota is not adjustable.

配额不可调整

400
InvalidDesireValue

The desire quota value is invalid.

配额值不合法

400
QuotaTemplateLimitExceeded

The number of quota template exceed limit. AccountID: '%s'

配额模板数量超出限制

400
QuotaTemplateDesireValue

Create template fail because the desire value is out of applicable value

无效的配额申请值

403
QuotaTemplateOperateDeny

Operate template deny because '%s': AccountID='%s'

无法操作配额模板,请检查是否为企业组织管理员

500
ServiceFailure

The request processing has failed because of an unknown error.

服务错误

最近更新时间:2025.12.29 11:25:50
这个页面对您有帮助吗?
有用
有用
无用
无用