Document navigation

UpdateEmailAddressOfSNSEmailEndpoint

API Request

URLs
PUT zstack/v1/sns/application-endpoints/emails/email-addresses
Headers
Authorization: OAuth the-session-uuid
Body
{
  "updateEmailAddressOfSNSEmailEndpoint": {
    "emailAddressUuid": "cb2b3d85e0da3a299c52c23510ba15dd",
    "endpointUuid": "f305528eb6773a73beac3f94f79d3017",
    "emailAddress": "example@cloud.io"
  },
  "systemTags": [],
  "userTags": []
}
Note: In the preceding example, the systemTags and userTags fields are optional. They are listed to indicate that the body can contain these two fields.
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateEmailAddressOfSNSEmailEndpoint":{"emailAddressUuid":"cb2b3d85e0da3a299c52c23510ba15dd","endpointUuid":"f305528eb6773a73beac3f94f79d3017","emailAddress":"example@cloud.io"}}' http://localhost:8080/zstack/v1/sns/application-endpoints/emails/email-addresses
Parameter List
Name Type Location Description Allowed Values Starting Version
emailAddressUuid String body (Contained in the updateEmailAddressOfSNSEmailEndpoint structure) Email address UUID 5.0.0
endpointUuid String body (Contained in the updateEmailAddressOfSNSEmailEndpoint structure) Endpoint UUID 5.0.0
emailAddress String body (Contained in the updateEmailAddressOfSNSEmailEndpoint structure) New email address 5.0.0
systemTags (Optional) List body Optional. The system tags. 3.7.0
userTags (Optional) List body Optional. The user tags. 3.7.0

API Response

Response example
{
  "inventory": {
    "uuid": "fe09a0e973724cba8d7369806d93fc50",
    "emailAddress": "example@zstack.io",
    "endpointUuid": "2648d04a1e7443dc966c3265d9f691dc",
    "createDate": "Mar 26, 2024 2:45:58 AM",
    "lastOpDate": "Mar 26, 2024 2:45:58 AM"
  }
}
Name Type Description Starting Version
success boolean Whether the operation succeeded. 5.0.0
error ErrorCode Error code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error 3.7.0
inventory SNSEmailAddressInventory For details, see inventory 3.7.0
#error
Name Type Description Starting Version
code String The error code number, a globally unique identifier for the error, for example, SYS.1000 or HOST.1001 3.7.0
description String A brief description of the error 3.7.0
details String Detailed information about the error 3.7.0
elaboration String Reserved field. Defaults to null 3.7.0
opaque LinkedHashMap Reserved field. Defaults to null 3.7.0
cause ErrorCode The root error that caused the current error. This field is null if there is no root cause 3.7.0
#inventory
Name Type Description Starting Version
uuid String The UUID of the resource, uniquely identifying this resource 3.7.0
emailAddress String The email address. 3.7.0
endpointUuid String The endpoint UUID. 3.7.0
createDate Timestamp Creation time 5.0.0
lastOpDate Timestamp Last modification time 5.0.0

SDK Examples

Java SDK
UpdateEmailAddressOfSNSEmailEndpointAction action = new UpdateEmailAddressOfSNSEmailEndpointAction();
action.emailAddressUuid = "cb2b3d85e0da3a299c52c23510ba15dd";
action.endpointUuid = "f305528eb6773a73beac3f94f79d3017";
action.emailAddress = "example@cloud.io";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateEmailAddressOfSNSEmailEndpointAction.Result res = action.call();
Python SDK
UpdateEmailAddressOfSNSEmailEndpointAction action = UpdateEmailAddressOfSNSEmailEndpointAction()
action.emailAddressUuid = "cb2b3d85e0da3a299c52c23510ba15dd"
action.endpointUuid = "f305528eb6773a73beac3f94f79d3017"
action.emailAddress = "example@cloud.io"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateEmailAddressOfSNSEmailEndpointAction.Result res = action.call()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center