Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/SNS Operations
POSTSNS OperationsSince 5.1.8SynchronousAuth Required
SNSHttpTestConnection
SNSHttpTestConnection
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.
urlStringOptional. The webhook URL.
usernameStringOptional. The Basic Auth user name.
passwordStringOptional. The Basic Auth password.
endpointUuidStringOptional. The endpoint UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/sns/application-endpoints/http/test-connection
/zstack/v1/sns/application-endpoints/http/test-connection
Request Example
curl -X POST 'http://{host}/zstack/v1/sns/application-endpoints/http/test-connection' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"url":"<url>","username":"<username>","password":"<password>","endpointUuid":"<endpointUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "connected": true, "webhookResp": "{\u0027result\u0027: \u0027success\u0027}" }Change History
This API has no change history records yet.
