ListAlertRobots
Queries alert robots.
Operation description
This operation queries the list of alert robots under the current account. Alert robots act as webhook receivers for alert notifications and support types such as DingTalk, DingTalk Cool App, Lark, Slack, and WeChat. You can filter the results by robot ID, name, type, and workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListAlertRobots |
list |
*AlertRobot
|
None | None |
Request syntax
GET /robots HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| pageSize |
integer |
No |
The number of entries per page. Default value: 100. |
10 |
| pageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| robotIds |
array |
No |
The robot IDs. |
|
|
string |
No |
The robot IDs. |
test |
|
| name |
string |
No |
The robot name. Prefix-based fuzzy search is supported. |
test |
| types |
array |
No |
The robot types. |
|
|
string |
No |
The robot types. Valid values:
|
DING |
|
| workspace |
string |
No |
The workspace name. |
default-cms-1423134313712421-cn-shanghai |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
20 |
| requestId |
string |
The request ID. |
8FDE2569-626B-5176-9844-28877A***** |
| robots |
array<object> |
The robot IDs. |
|
|
object |
The robot IDs. |
||
| lang |
string |
The language. |
zh_CN |
| name |
string |
The robot name. |
test |
| robotId |
string |
The unique ID of the robot. |
test |
| type |
string |
The robot types. |
DING |
| url |
string |
The webhook URL of the robot. |
https://oapi.dingtalk.com/robot/send?access_token=******* |
| workspace |
string |
The workspace ID. |
default-cms-5551847274244273-cn-hangzhou |
| digitalEmployeeName |
string |
The digital employee name. |
apsara-ops |
| robotSignKey |
string |
The signing key of the robot. |
abc123 |
| total |
integer |
The total number of records. |
3 |
Examples
Success response
JSON format
{
"pageNumber": 1,
"pageSize": 20,
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"robots": [
{
"lang": "zh_CN",
"name": "test",
"robotId": "test",
"type": "DING",
"url": "https://oapi.dingtalk.com/robot/send?access_token=*******",
"workspace": "default-cms-5551847274244273-cn-hangzhou",
"digitalEmployeeName": "apsara-ops",
"robotSignKey": "abc123"
}
],
"total": 3
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s is missing or invalid. | The parameter %s is missing or invalid. |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.