Query SNS Application Platform

GET/zstack/v1/sns/application-platforms
GET/zstack/v1/sns/application-platforms/{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-platforms?q=state=Enabled
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-platforms/b9a635c9ff7c3544a232cad5b9a4aaf7

Queryable Fields

Run the CLI command line tool, enter QuerySNSApplicationPlatform and press Tab to view all queryable fields and the resource names that support cross-table queries.

API Response

Response Example

{
  "inventories": [
    {
      "uuid": "7ff3fb75fb844c7894a4a3b6d9fbce9a",
      "name": "email platform",
      "description": "example description",
      "state": "Enabled",
      "type": "Email",
      "createDate": "Mar 26, 2024 2:44:24 AM",
      "lastOpDate": "Mar 26, 2024 2:44:24 AM"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 5.0.0
errorErrorCodeThe error code. If not null, the operation failed. This field is null on success. See error2.3
inventoriesListSee inventories2.3

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.10010.6
descriptionStringA brief description of the error0.6
detailsStringDetailed information about the error0.6
elaborationStringReserved field. Default is null0.6
opaqueLinkedHashMapReserved field. Default is null0.6
causeErrorCodeThe root error that caused the current error. If there is no root error, this field is null0.6

inventories

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, which uniquely identifies the resource2.3
nameStringResource name2.3
descriptionStringDetailed description of the resource2.3
typeStringType2.3
createDateTimestampCreation time2.3
lastOpDateTimestampLast modification time2.3

SDK Examples

Java SDK

QuerySNSApplicationPlatformAction action = new QuerySNSApplicationPlatformAction();
action.conditions = asList("state=Enabled");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSApplicationPlatformAction.Result res = action.call();

Python SDK

QuerySNSApplicationPlatformAction action = QuerySNSApplicationPlatformAction()
action.conditions = ["state=Enabled"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSApplicationPlatformAction.Result res = action.call()