Update Email Address of SNS Email Endpoint

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": []
}

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

NameTypeLocationDescriptionAllowed ValuesStarting Version
emailAddressUuidStringbody (Contained in the updateEmailAddressOfSNSEmailEndpoint structure)Email address UUID 5.0.0
endpointUuidStringbody (Contained in the updateEmailAddressOfSNSEmailEndpoint structure)Endpoint UUID 5.0.0
emailAddressStringbody (Contained in the updateEmailAddressOfSNSEmailEndpoint structure)New email address 5.0.0
systemTags (Optional)Listbody  3.7.0
userTags (Optional)Listbody  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"
  }
}
NameTypeDescriptionStarting Version
successboolean 5.0.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error3.7.0
inventorySNSEmailAddressInventoryFor details, see inventory3.7.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number, a globally unique identifier for the error, for example, SYS.1000 or HOST.10013.7.0
descriptionStringA brief description of the error3.7.0
detailsStringDetailed information about the error3.7.0
elaborationStringReserved field. Defaults to null3.7.0
opaqueLinkedHashMapReserved field. Defaults to null3.7.0
causeErrorCodeThe root error that caused the current error. This field is null if there is no root cause3.7.0

inventory

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource3.7.0
emailAddressString 3.7.0
endpointUuidString 3.7.0
createDateTimestampCreation time5.0.0
lastOpDateTimestampLast modification time5.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()