Query SNS Email Address

GET/zstack/v1/sns/application-endpoints/emails/email-addresses
GET zstack/v1/sns/application-endpoints/emails/email-addresses/{uuid}

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/emails/email-addresses?q=uuid=b1a8e21bed1e3592af8ba5ffff497af6&q=endpointUuid=547ffd3cbdb2399d8c6dde2d983502d5
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/emails/email-addresses/9c1b8131d9a03e3b88602a5072a89c0b

Queryable Fields

Run the CLI tool, enter QuerySNSEmailAddress and press Tab to view all queryable fields and cross-table queryable resource names.

API Response

Response example

{
  "inventories": [
    {
      "uuid": "102431efdb133a70b7e04347de22e396",
      "emailAddress": "test@zstack.io",
      "endpointUuid": "4ff65a1d7762348495dd0c4da110d7cd",
      "createDate": "Mar 26, 2024 2:46:41 AM",
      "lastOpDate": "Nov 14, 2017 2:20:57 PM"
    }
  ]
}
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
inventoriesListFor details, see inventories3.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

inventories

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource3.7.0
emailAddressString 3.7.0
endpointUuidString 3.7.0
createDateTimestampCreation time3.7.0
lastOpDateTimestampLast modification time3.7.0

SDK Examples

Java SDK

QuerySNSEmailAddressAction action = new QuerySNSEmailAddressAction();
action.conditions = asList("uuid=19beae4d7df63aa6ba24b7422521af7b","endpointUuid=4758483d0db33c6bb82961d4c1e837aa");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSEmailAddressAction.Result res = action.call();

Python SDK

QuerySNSEmailAddressAction action = QuerySNSEmailAddressAction()
action.conditions = ["uuid=2ab2f6138c1c3b98b5834764c29dd596","endpointUuid=01106fe537473575be43fec7173e2dd1"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSEmailAddressAction.Result res = action.call()