Queries the scheduler settings of a cluster.

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 GetSchedulerInfo

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

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

RegionId String Yes cn-hangzhou

The ID of the region.

Scheduler.N.SchedName String No pbs

The name of the scheduler. Valid values:

  • pbs
  • pbs19
  • slurm
  • slurm19
  • slurm20

Valid values of N: 0 to 100

Response parameters

Parameter Type Example Description
RequestId String BBC2F93D-003A-49C4-850C-B826EECF****

The ID of the request.

SchedInfo Array of SchedInfo

The settings of the scheduler.

Configuration String { "AclInfo": [ { "AclEnable": false, "UntrackUser": [], "User": [], "QueueName": "workq" } ], "JobHistory": "", "SchedIteration": "60", "QueueResource": [ { "UntrackUser": [], "User": [], "QueueName": "workq" } ] }

The detailed settings of the scheduler.

SchedName String pbs

The type of the scheduler.

Examples

Sample requests

http(s)://ehpc.cn-hangzhou.aliyuncs.com/?Action=GetSchedulerInfo
&ClusterId=ehpc-hz-FYUr32****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<GetSchedulerInfoResponse>
  <RequestId>193120A7-3216-4DD7-9FE3-13DC77BD****</RequestId>
  <SchedInfo>
        <Configuration>
              <AclInfo>
                    <AclEnable>false</AclEnable>
                    <QueueName>workq</QueueName>
              </AclInfo>
              <JobHistory></JobHistory>
              <SchedIteration>60</SchedIteration>
              <QueueResource>
                    <QueueName>workq</QueueName>
              </QueueResource>
        </Configuration>
        <SchedName>pbs</SchedName>
  </SchedInfo>
</GetSchedulerInfoResponse>

JSON format

{
    "RequestId": "193120A7-3216-4DD7-9FE3-13DC77BD****",
    "SchedInfo": [
        {
            "Configuration": {
                "AclInfo": [
                    {
                        "AclEnable": false,
                        "UntrackUser": [],
                        "User": [],
                        "QueueName": "workq"
                    }
                ],
                "JobHistory": "",
                "SchedIteration": "60",
                "QueueResource": [
                    {
                        "UntrackUser": [],
                        "User": [],
                        "QueueName": "workq"
                    }
                ]
            },
            "SchedName": "pbs"
        }
    ]
}

Error codes

HttpCode Error code Error message Description
400 InvalidParams The specified parameter %s is invalid. The error message returned because the following parameter is invalid: %s.
407 NotAuthorized No authorization is granted. The error message returned because you are not authorized by RAM for the request.
406 DbError A database service error occurred. The error message returned because the database request has failed.
406 EcsError An error occurred while calling the ECS API operation. The error message returned because the ECS API call has failed.
500 UnknownError An unknown error occurred. The error message returned because an unknown error has occurred.
406 AliyunError An Alibaba Cloud product error occurred. The error message returned because the operation has failed to call another Alibaba Cloud service.
404 ClusterNotFound The specified cluster does not exist. The error message returned because the specified cluster does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

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