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
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
topicId | string | Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set. | |
page | null | For 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. | |||
limit | number | For 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
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a | |
particular request, please provide the request ID. | |||
Date | string | (Required) Current Date | |
Authorization | string | (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"}}}]