Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/SNS Operations
POSTSNS OperationsSince 2.3SynchronousAuth Required
CreateSNSDingTalkEndpoint
CreateSNSDingTalkEndpoint
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
urlStringRequiredThe URL of the DingTalk robot.
atAllBooleanOptional. Whether to notify all (@All) members in a DingTalk group.
atPersonPhoneNumbersListOptional. The phone number of the group member to be notified (the @member).
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
resourceUuidStringOptional.
platformUuidStringOptional. The notification platform.
tagUuidsListOptional. The tag uuid list.
secretStringOptional. The DingTalk secret key.
atPersonListMapOptional. The @person information. (Recommend)
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/sns/application-endpoints/ding-talk
/zstack/v1/sns/application-endpoints/ding-talk
Request Example
curl -X POST 'http://{host}/zstack/v1/sns/application-endpoints/ding-talk' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"url":"<url>","atAll":true,"atPersonPhoneNumbers":["<atPersonPhoneNumbers>"],"name":"<name>","description":"<description>","resourceUuid":"<resourceUuid>","platformUuid":"<platformUuid>","tagUuids":["<tagUuids>"],"secret":"<secret>","atPersonList":{}},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "url": "http://dingding-url", "atAll": false, "secret": "SECca7c224f47ab16fbe51050ae0b8ebfc505b2b866fc0eb3768c8d79527d1bacc0", "atPersonPhoneNumbers": [ "18900001111" ], "name": "example", "uuid": "917fe66f76b241f0843dfbd6be685fc1", "description": "description example", "type": "Email", "state": "Enabled", "platformUuid": "4eb0ceebf95b452585ebeacd647d9f35", "createDate": "Dec 25, 2023 2:05:12 PM", "lastOpDate": "Dec 25, 2023 2:05:12 PM" } }Change History
This API has no change history records yet.
