CreateSNSHttpEndpoint

Creates an HTTP webhook endpoint. For example,

CreateSNSHttpEndpoint name=http url=http://localhost:8080/webhook-url username=url-username password=url-password

Parameters

Name Description Optional Valid Value Starting Version
url The HTTP webhook URL. 2.3
username The username of the URL. Yes 2.3
password The password of the URL. Yes 2.3
name The resource name. 2.3
description The detailed description of the resource. Yes 2.3
resourceUuid Yes 2.3
platformUuid Yes 2.3
userTags The user tags. For more information, see CreateUserTag. Yes 2.3
systemTags The system tags. For more information, see CreateSystemTag. Yes 2.3
tagUuids The tag uuid list. Yes 5.0.0
timeout Yes
{
    "inventory": {
        "createDate": "Jan 25, 2018 9:01:30 PM",
        "lastOpDate": "Jan 25, 2018 9:01:30 PM",
        "name": "http",
        "platformUuid": "02d24b9b0a7f4ee1846f15cda248ceb7",
        "state": "Enabled",
        "type": "HTTP",
        "url": "http://localhost:8080/webhook-url",
        "username": "url-username",
        "uuid": "d9d8186eeed245e0b18ec8deef185fb7"
    },
    "success": true
}
  • url: the HTTP webhook URL
  • username: Optional. The username of the URL. This parameter uses the basic authentication mode of HTTP.
  • password: Optional. The password of the URL. This parameter uses the basic authentication mode of HTTP.
CLI Command Manual | 5.4.12 | ZStack Cloud · ZCF | ZStack Resource Center