You need to enable JavaScript to run this app.
导航
ModifyTemplateQuotaItem - 更新配额模版
最近更新时间:2025.05.13 16:50:39首次发布时间:2023.01.09 20:08:42
我的收藏
有用
有用
无用
无用

更新配额模版

调试

请求参数

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

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

ModifyTemplateQuotaItem

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

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

QuotaCode
String

policy

配额code

Dimensions
Array of Object

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

配额维度

请求示例

http://open.volcengineapi.com/?Version=2022-07-01&Action=ModifyTemplateQuotaItem
&ProviderCode=platformServices
&QuotaCode=quota_alarm
&DesireValue=50
&QuotaUnit=个
&Description=modify
&Dimensions=[{"Name":"region_code", "Value":"quota-test"}]

返回示例

{
    "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
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.

服务错误