List Subscriptions

GET {{baseUrl}}/subscriptions?compartmentId={{compartment_ocid}}&topicId=ocid1.onstopic.oc1....&page=&limit=10

Lists the subscriptions in the specified compartment or topic.

The topic endpoint is required for this operation. To get the topic endpoint, use GetTopic and review the apiEndpoint value in the response (NotificationTopic).

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment.
topicIdstringReturn all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
pagenullFor list pagination. The value of the opc-next-page response header from the previous "List" call.
For important details about how pagination works, see List Pagination.
limitnumberFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call.
For important details about how pagination works, see List Pagination.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header

RESPONSES

status: OK

[{"compartmentId":"eiusmod Lorem","endpoint":"cupidatat do","id":"velit culpa","lifecycleState":"PENDING","protocol":"EMAIL","topicId":"repr","createdTime":-13290134,"deliveryPolicy":{"backoffRetryPolicy":{"maxRetryDuration":6554523,"policyType":"EXPONENTIAL"}}},{"compartmentId":"aliqua Ut ad incididunt irure","endpoint":"incididun","id":"in nisi mollit Duis exercitation","lifecycleState":"PENDING","protocol":"EMAIL","topicId":"in velit sit ex","createdTime":-46583365,"deliveryPolicy":{"backoffRetryPolicy":{"maxRetryDuration":67717,"policyType":"EXPONENTIAL"}}}]