All Products
Search
Document Center

DataWorks:ListShiftPersonnels

Last Updated:Nov 21, 2024

Queries a list of on-duty engineers in a shift schedule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ShiftScheduleIdentifierstringYes

The unique identifier of the shift schedule.

2ab6456ada634b2f938ee******9b45b
UserTypestringNo

The type of the on-duty engineer that you want to query. Valid values: ALL, PRIMARY, BACKUP, and DESIGNATED_USER.

ALL
ShiftPersonUIDstringNo

The ID of the 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.

1933790****551
BeginTimelongYes

The time when the on-duty engineer starts a shift. Set the value to a UNIX timestamp.

1593950832000
EndTimelongYes

The time when the on-duty engineer ends a shift. Set the value to a UNIX timestamp.

1593950832000

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The request ID. You can use the ID to troubleshoot issues.

0000-ABCD-EFG
Pagingobject

The pagination data.

PageNumberinteger

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

1
PageSizeinteger

The number of entries per page. Default value: 10. Maximum value: 100.

10
TotalCountinteger

The total number of entries returned.

100
ShiftPersonsarray<object>

A list of on-duty engineers in a shift schedule.

ShiftPersonsobject
ShiftPersonUIDstring

The UID of the on-duty engineer.

3726346****
ShiftPersonNamestring

The name of the on-duty engineer.

BeginTimelong

The time when the on-duty engineer starts the shift.

1593950832000
EndTimelong

The time when the on-duty engineer ends the shift.

1593950832000

Examples

Sample success responses

JSONformat

{
  "RequestId": "0000-ABCD-EFG",
  "Paging": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "ShiftPersons": [
      {
        "ShiftPersonUID": "3726346****",
        "ShiftPersonName": "",
        "BeginTime": 1593950832000,
        "EndTime": 1593950832000
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-06-07Add OperationView Change Details