创建配额模版
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
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 | 操作对象不存在 |
400 | QuotaNotAdjustable | 配额不可调整 |
400 | InvalidDesireValue | 配额值不合法 |
400 | QuotaTemplateLimitExceeded | 配额模板数量超出限制 |
400 | QuotaTemplateDesireValue | 无效的配额申请值 |
403 | QuotaTemplateOperateDeny | 无法操作配额模板,请检查是否为企业组织管理员 |
500 | ServiceFailure | 服务错误 |