ListOncallContacts
Queries the on-call personnel at a specified time.
Operation description
This topic provides an example of creating an alert contact group named ECS_Group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListOncallContacts |
list |
*OncallSchedule
|
None | None |
Request syntax
GET /oncallSchedule/{oncallScheduleId}/contacts HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| oncallScheduleId |
string |
No |
The unique identifier of the on-call schedule. |
testId |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| timestamp |
string |
No |
The timestamp for which to query the on-call personnel. Unit: milliseconds. |
1730183838000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| contactIds |
array |
The IDs of the contacts. |
|
|
string |
The IDs of the contacts. |
testId |
|
| requestId |
string |
The ID of the request. |
8FDE2569-626B-5176-9844-28877A***** |
Examples
Success response
JSON format
{
"contactIds": [
"testId"
],
"requestId": "8FDE2569-626B-5176-9844-28877A*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The parameter is missing or invalid. %s | |
| 400 | InvalidParameterValue | Invalid request: %s | |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.