All Products
Search
Document Center

:ListShiftSchedules

最終更新日:May 16, 2024

Queries a list of 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.

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 view the ID.

PageSize

Integer

No

10

The number of entries per page. Valid values: 1 to 100. Default value: 10.

PageNumber

Integer

No

1

The page number. Valid values: 1 to 100. Default value: 1.

Response parameters

Parameter

Type

Example

Description

RequestId

String

E6F0DBDD-5AD****

The request ID.

Paging

Object

The pagination data.

PageNumber

Integer

1

The page number. Valid values: 1 to 100.

PageSize

Integer

10

The number of entries 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, see Service error codes.