Search for subscriptions by property values. Returns an array of all matching subscription resources.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
The request body specifies fields and values to match.
TypeScript Definitions
Use the request body type in TypeScript.
Fields and values to match.
application/json
curl -X POST "https://example.com/subscriptions/actions/query" \ -H "Content-Type: application/json" \ -d '{ "accountidentifier": { "billingaccountid": "1223334444-00001" }, "resourceidentifier": { "id": "dd1682d3-2d80-cefc-f3ee-25154800beff" } }'[ { "configurationfailures": 0, "createdon": "2019-02-13T23:13:24.689Z", "delegateid": "00000000-0000-0000-0000-000000000000", "disabled": false, "email": "me@mycompany.com", "id": "98015aed-e984-62be-f049-1d895d2d1812", "kind": "ts.subscription", "laststreamingstatus": "success", "laststreamingtime": "2019-02-20T18:20:45.865Z", "lastupdated": "2019-02-13T23:13:24.689Z", "networkfailures": 0, "streamfailures": 0, "streamkind": "ts.event", "targetid": "4e112cb3-da1d-6ece-f2c6-bb8700b20b09", "targettype": "Amazon Web Services", "version": "1.0", "versionid": "f68b8862-2fe4-11e9-85fd-02420a4c170d" }]The ID of the authenticating billing account, in the format {"billingaccountid":"1234567890-12345"}.
A comma-separated list of properties and comparator values to match against subscriptions in the ThingSpace account. See Working with Query Filters for more information. If the request does not include $selection, the response will include all subscriptions to which the requesting user has access.
The ID of the target to delete, in the format {"id": "dd1682d3-2d80-cefc-f3ee-25154800beff"}.