You can call this operation to query the scheduling policies of resource pools.

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 DescribeClusterResourcePoolSchedulerType

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

ClusterId String Yes C-EBD62A703A430E23

The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud, which specifies the ID of the user.

Response parameters

Parameter Type Example Description 
CurrentSchedulerType String ""

The current scheduling policy.

DefaultSchedulerType String CAPACITY_SCHEDULER

The default scheduling policy.

RequestId String 7DEE7967-3F9E-44AE-8B4E-021CBCA3A26C

The ID of the request.

SupportSchedulerType String CAPACITY_SCHEDULER,FAIR_SCHEDULER

The supported scheduling policies.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeClusterResourcePoolSchedulerTypeResponse>
      <SupportSchedulerType>CAPACITY_SCHEDULER,FAIR_SCHEDULER</SupportSchedulerType>
	  <RequestId>7DEE7967-3F9E-44AE-8B4E-021CBCA3A26C</RequestId>
	  <DefaultSchedulerType>CAPACITY_SCHEDULER</DefaultSchedulerType>
	  <CurrentSchedulerType></CurrentSchedulerType>
</DescribeClusterResourcePoolSchedulerTypeResponse>

JSON format

{
	"SupportSchedulerType":"CAPACITY_SCHEDULER,FAIR_SCHEDULER",
	"RequestId":"7DEE7967-3F9E-44AE-8B4E-021CBCA3A26C",
	"DefaultSchedulerType":"CAPACITY_SCHEDULER",
	"CurrentSchedulerType":""
}

Error codes

HTTP status code Error code Error message Description 
400 InvalidServiceName The cluster doesn't have this service. The error message returned because the specified service does not exist in the cluster.
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 ClusterId [%s] does not exist. The error message returned because the ID of the specified cluster does not exist. Check the ID of the cluster.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource The error message returned because you are not allowed to manage resources of other users.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.

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