Consulta uma lista de contatos de alerta.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cms:DescribeContactList |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 100. |
10 |
| PageNumber |
integer |
Não |
O número da página atual. Valor padrão: 1. |
1 |
| ContactName |
string |
Não |
O nome do contato de alerta. |
Alice |
| ChanelType |
string |
Não |
O método de notificação de alerta. Valores válidos:
|
|
| ChanelValue |
string |
Não |
O valor do método de notificação de alerta. Nota
Este parâmetro é obrigatório apenas quando ChanelType é definido como Mail. |
Alice@example.com |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Nenhum. |
||
| Code |
string |
O código de status. Nota
200 indica sucesso. |
200 |
| Message |
string |
A mensagem de erro. |
The Request is not authorization. |
| RequestId |
string |
O ID da solicitação. |
06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 |
| Total |
integer |
O número total de registros. |
15 |
| Success |
boolean |
Indica se a operação foi bem-sucedida. Valores válidos:
|
true |
| Contacts |
object |
||
| Contact |
array<object> |
Os contatos de alerta. |
|
|
array<object> |
Nenhum. |
||
| UpdateTime |
integer |
The timestamp when the alert contact was last 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 type of the alert. 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 methods. |
|
|
string |
The email address. |
Alice@example.com |
|
| AliIM |
string |
The TradeManager name. |
Alice |
| DingWebHook |
string |
The webhook URL of the DingTalk chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** |
| SMS |
string |
The mobile phone number. |
1333333**** |
| ChannelsState |
object |
The status of the alert channel. Email addresses must be activated before they can be used. When you add or modify an alert channel, the status is PENDING if the channel is not activated, and OK if the channel is activated. . |
|
|
string |
The status of the email address. Valid values:
|
PENDING |
|
| AliIM |
string |
The status of the TradeManager name is normal. Currently, only the value OK is supported. OK indicates that the TradeManager name is normal, the corresponding alert channel is normal, and alerts can be sent. Nota
This parameter is applicable only to the China site. |
OK |
| DingWebHook |
string |
The status of the DingTalk chatbot is normal. Currently, only the value OK is supported. OK indicates that the DingTalk chatbot is normal, the corresponding alert channel is normal, and alerts can be sent. |
OK |
| SMS |
string |
The status of text messages. Valid values:
Nota
This parameter is applicable only to the China site. |
OK |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidAuthorization | %s | |
| 404 | ResourceNotFound | %s |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.