Queries alert contacts.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize | integer | No | The number of entries to return on each page. Default value: 100. | 10 |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
ContactName | string | No | The name of the alert contact. | Alice |
ChanelType | string | No | The alert notification method. Valid values:
| |
ChanelValue | string | No | The value specified for the alert notification method. Note
This parameter is required only if you set the ChanelType parameter to Mail .
| Alice@example.com |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83",
"Total": 15,
"Success": true,
"Contacts": {
"Contact": [
{
"UpdateTime": 1552356159000,
"Name": "Alice",
"CreateTime": 1552356159000,
"Lang": "zh-cn",
"Desc": "",
"ContactGroups": {
"ContactGroup": [
"{ \"ContactGroup\": [ \t\"ECS_Group\", \"Jim\" ] }"
]
},
"Channels": {
"Mail": "Alice@example.com",
"AliIM": "Alice",
"DingWebHook": "https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****",
"SMS": "1333333****"
},
"ChannelsState": {
"Mail": "PENDING",
"AliIM": "OK",
"DingWebHook": "OK",
"SMS": "OK"
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidParameter | %s |
403 | InvalidAuthorization | %s |
404 | ResourceNotFound | %s |
500 | InternalError | The request processing has failed due to some unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history