You can call this operation to modify the scheduler type of a resource pool.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyResourcePoolSchedulerType

The operation that you want to perform. Set the value to ModifyResourcePoolSchedulerType.

ClusterId String Yes C-EBD62A703A430E23

The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs.

SchedulerType String Yes CAPACITY_SCHEDULER

The scheduler type of the resource pool.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user.

Response parameters

Parameter Type Example Description 
RequestId String A544317F-4A60-4532-AC96-191B9D80420A

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyResourcePoolSchedulerType
&ClusterId=C-EBD62A703A430E23
&RegionId=cn-hangzhou
&SchedulerType=CAPACITY_SCHEDULER
&<Common request parameters>

Sample success responses

XML format

<ModifyResourcePoolSchedulerTypeResponse>
	  <code>200</code>
	  <requestId>A544317F-4A60-4532-AC96-191B9D80420A</requestId>
	  <successResponse>true</successResponse>
</ModifyResourcePoolSchedulerTypeResponse>

JSON format

{
	"successResponse":true,
	"requestId":"A544317F-4A60-4532-AC96-191B9D80420A",
	"code":"200"
}

Error codes

HTTP status code Error code Error message Description
403 Params.Illegal The specified parameters are wrongly formed. The error message returned because the format of the specified parameters is invalid.
404 ClusterId.NotFound The ClusterId provided does not exist in our records. The error message returned because the ID of the cluster does not exist. Make sure the ID of the cluster is valid.
500 InternalError The request processing has failed due to some unknown error(code:5100). The error message returned because the request processing has failed due to an internal error. Submit a ticket.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource. The error message returned because you are not authorized to manage other user's resources.
403 User.Account.Abnormal The User Account maybe is out of service! The error message returned because the user account is out of service.
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request processing has failed due to an internal error. Submit a ticket.

For a list of error codes, visit the API Error Center.