Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/SNS Operations
POSTSNS OperationsSince 3.7.0SynchronousAuth Required
AddSNSSmsReceiver
AddSNSSmsReceiver
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.
phoneNumberStringOptional. The phone number to receive SMS messages.
phoneNumberListListOptional. The list of phone numbers to receive SMS messages.
endpointUuidStringRequiredThe UUID of the SMS message endpoint.
typeStringRequiredThe SMS endpoint type.
descriptionStringOptional. The description of the SMS message receiver.
resourceUuidStringOptional.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/sns/sms-endpoints/receivers
/zstack/v1/sns/sms-endpoints/receivers
Request Example
curl -X POST 'http://{host}/zstack/v1/sns/sms-endpoints/receivers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"phoneNumber":"<phoneNumber>","phoneNumberList":["<phoneNumberList>"],"endpointUuid":"<endpointUuid>","type":"<type>","description":"<description>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventories": [ { "uuid": "d122a14806e8405894d00034b0a91dd1", "phoneNumber": "18912345678", "endpointUuid": "d539f1d109534f90b0cbf50cff412585", "type": "AliyunSms", "description": "description", "createDate": "Jun 13, 2024 5:29:04 PM", "lastOpDate": "Jun 13, 2024 5:29:04 PM" } ] }Change History
This API has no change history records yet.
