Calls the DescribeContactList operation to query a list of alert contacts.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeContactList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The number of entries per page. Default value: 100. |
10 |
| PageNumber |
integer |
No |
The current page number. 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 of the alert notification method. Note
This parameter is required only when |
Alice@example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| Code |
string |
The status code. Note
200 indicates success. |
200 |
| Message |
string |
The error message. |
The Request is not authorization. |
| RequestId |
string |
The request ID. |
06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 |
| Total |
integer |
The total number of records. |
15 |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
| Contacts |
object |
||
| Contact |
array<object> |
The alert notification methods. |
|
|
array<object> |
None. |
||
| UpdateTime |
integer |
The timestamp when the alert contact was updated. Unit: milliseconds. |
1552356159000 |
| Name |
string |
The name of the alert contact. |
Alice |
| CreateTime |
integer |
The timestamp when the alert contact was created. Unit: milliseconds. |
1552356159000 |
| Lang |
string |
The language in which the alert information is displayed. Valid values:
|
zh-cn |
| Desc |
string |
The description. |
ECS |
| ContactGroups |
object |
||
| ContactGroup |
array |
None. |
|
|
string |
The alert contact groups. |
{ "ContactGroup": [ "ECS_Group", "Jim" ] } |
|
| Channels |
object |
The alert notification method. |
|
|
string |
The email address of the alert contact. |
Alice@example.com |
|
| AliIM |
string |
The TradeManager ID of the alert contact. |
Alice |
| DingWebHook |
string |
The webhook URL of the DingTalk chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** |
| SMS |
string |
The phone number of the alert contac. |
1333333**** |
| ChannelsState |
object |
The status of the alert notification method. Valid values: PENDING and OK. The email address must be activated after it is added as the value specified for the alert notification method. The value PENDING indicates that the email address is not activated. The value OK indicates that the email address is activated. |
|
|
string |
The status of the email address. Valid values:
|
PENDING |
|
| AliIM |
string |
The status of the TradeManager ID. Valid value: OK. The value OK indicates that the TradeManager ID is valid and can receive alert notifications. Note
This parameter applies only to the Alibaba Cloud China site (aliyun.com). |
OK |
| DingWebHook |
string |
The status of the DingTalk chatbot. Valid value: OK. The value OK indicates that the DingTalk chatbot is normal and alert notifications can be received in a DingTalk group. |
OK |
| SMS |
string |
The status of the phone number. Valid values:
Note
This parameter applies only to the Alibaba Cloud China site (aliyun.com). |
OK |
Examples
Success response
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": "ECS",
"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 |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidAuthorization | %s | |
| 404 | ResourceNotFound | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.