调用 ModifyResourceQueue 接口修改资源队列。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyResourceQueue |
系统规定参数。取值:ModifyResourceQueue。 |
ClusterId | String | 是 | C-0E995C0EE7E5**** |
集群ID。 |
Id | String | 是 | 116 |
资源池队列ID。 |
RegionId | String | 是 | cn-hangzhou |
地域ID。 |
ResourcePoolId | Long | 是 | 115 |
资源池ID。 |
AccessKeyId | String | 否 | xxx |
阿里云AccessKey ID信息,用于标识访问者身份。 |
Config.N.Category | String | 否 | QUEUE_RESOURCE_LIMIT |
参数类别。 |
Config.N.ConfigKey | String | 否 | capacity |
参数Key。 |
Config.N.ConfigValue | String | 否 | 100 |
参数值。 |
Config.N.Id | Long | 否 | 200 |
参数ID。 |
Config.N.Note | String | 否 | 容量权重 |
参数描述。 |
Leaf | Boolean | 否 | false |
是否叶子节点。 |
Name | String | 否 | pool2 |
队列名称。 |
ParentQueueId | Long | 否 | 115 |
父资源池ID。 |
QualifiedName | String | 否 | test |
无需填写。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | A544317F-4A60-4532-AC96-191B9D80420A |
请求ID。 |
示例
请求示例
/?Action=ModifyResourceQueue
&ClusterId=C-0E995C0EE7E5ECB3
&Id=116
&RegionId=cn-hangzhou
&ResourcePoolId=115
&AccessKeyId=xxx
&Leaf=false
&Name=pool2
&ParentQueueId=115
&QualifiedName=test
&Config.1.Category=QUEUE_RESOURCE_LIMIT
&Config.1.ConfigKey=capacity
&Config.1.ConfigValue=100
&Config.1.Id=200
&Config.1.1ote=容量权重
&<公共请求参数>
正常返回示例
XML
格式
<ModifyResourceQueueResponse>
<code>200</code>
<requestId>A544317F-4A60-4532-AC96-191B9D80420A</requestId>
<successResponse>true</successResponse>
</ModifyResourceQueueResponse>
JSON
格式
{
"successResponse":true,
"requestId":"A544317F-4A60-4532-AC96-191B9D80420A",
"code":"200"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Params.Illegal | The specified parameters are wrongly formed.. | 指定参数格式错误 |
403 | User.OtherUserResource.NotAllow | It is not allowed to operate other user's resource | 不能操作其它用户的资源 |
403 | User.Account.Abnormal | The User Account maybe is out of service! | 用户帐号已经停止服务 |
403 | JobId.Not.Exist | Job [%s] does not exist or is deleted! | 指定作业ID不存在请填写正确的参数 |
403 | Job.RegionId.Not.Match | Specified job does not exist in this region[%s]! | 指定作业不在此Region中,请填写正确的参数 |
500 | InternalError | The request processing has failed due to some unknown error. | 内部错误,请提工单 |
访问错误中心查看更多错误码。