Queries shift schedules in Operation Center.

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 ListShiftSchedules

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

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation.

ShiftScheduleName String No Keyword

The keyword used to perform a fuzzy search on shift schedules.

Owner String No 1933790683****

The ID of your Alibaba Cloud account. You can log on to the DataWorks console and move the pointer over the profile picture in the upper-right corner to obtain the ID.

PageSize Integer No 10

The number of entries to return on each page. Default value: 10. Maximum value: 100.

PageNumber Integer No 1

The number of the page to return. Minimum value:1. Maximum value: 100. Default value: 1.

Response parameters

Parameter Type Example Description
RequestId String E6F0DBDD-5AD****

The ID of the request. You can use the ID to query logs and troubleshoot issues.

Paging Object

The pagination data.

PageNumber Integer 1

The page number of the returned page. Minimum value:1. Maximum value: 100.

PageSize Integer 10

The number of entries returned per page.

TotalCount Integer 100

The total number of entries returned.

ShiftSchedules Array of ShiftSchedules

The shift schedules.

ShiftScheduleIdentifier String 2ab6456ada634b2f938ee******9b45b

The unique identifier of the shift schedule. You can use the identifier to query the on-duty engineers in the shift schedule.

ShiftScheduleName String Name

The name of the shift schedule.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListShiftSchedules
&ShiftScheduleName=Keyword
&Owner=1933790683****
&PageSize=10
&PageNumber=1
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListShiftSchedulesResponse>
    <RequestId>E6F0DBDD-5AD****</RequestId>
    <Paging>
        <PageNumber>1</PageNumber>
        <PageSize>10</PageSize>
        <TotalCount>100</TotalCount>
        <ShiftSchedules>
            <ShiftScheduleIdentifier>2ab6456ada634b2f938ee******9b45b</ShiftScheduleIdentifier>
            <ShiftScheduleName>Name</ShiftScheduleName>
        </ShiftSchedules>
    </Paging>
</ListShiftSchedulesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "E6F0DBDD-5AD****",
  "Paging" : {
    "PageNumber" : 1,
    "PageSize" : 10,
    "TotalCount" : 100,
    "ShiftSchedules" : [ {
      "ShiftScheduleIdentifier" : "2ab6456ada634b2f938ee******9b45b",
      "ShiftScheduleName" : "Name"
    } ]
  }
}

Error codes

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