ListSubscriptions

Updated at:

Queries the list of notification subscriptions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

gemp:ListSubscriptions

get

*All Resource

*

None None

Request syntax

POST /notify/subscription/list HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

pageNumber

integer

No

The page number.

1

pageSize

integer

No

The page size.

10

subscriptionTitle

string

No

The name of the notification subscription.

newTitle

scope

string

No

The subscription scope type. Valid values:

  • ALL: All.

  • SERVICE: Service.

  • ROUTERULE: Routing rule.

SERVICE

scopeObject

string

No

The name of the subscription scope object.

TestName

notifyObjectType

string

No

The notification recipient type. Valid values:

  • SERVICEGROUP: Service group.

  • USER: Individual.

SERVICE

notifyObject

string

No

The name of the notification recipient.

test

clientToken

string

No

The client token.

601FA6A2-AC5C-4B59-BE11-378FTOKENA11

notFilterScopeObjectDeleted

boolean

No

Specifies whether to filter out deleted scope objects.

Response elements

Element

Type

Description

Example

object

The response struct.

requestId

string

The request ID.

10REQUES-AC5C-4B59-BE11-378F117A6A88

data

array<object>

The subscription details.

array<object>

The subscription details.

subscriptionId

integer

The subscription ID.

10

subscriptionTitle

string

The name of the notification subscription.

test

scope

integer

The subscription scope type. Valid values:

  • 0: All.

  • 1: Service.

  • 2: Routing rule.

1

notifyObjectType

integer

The notification recipient type. Valid values:

  • 0: Service group.

  • 1: Individual.

1

expiredType

string

The validity period type. Valid values:

  • LONG_TERM: Long-term.

  • SHORT_TERM: Short-term.

LONG_TERM

startTime

string

The start time of the validity period. The format is YYYY-MM-DD HH:mm:ss.

2020-05-09 10:10:10

endTime

string

The end time of the validity period. The format is YYYY-MM-DD HH:mm:ss.

2022-05-09 10:10:10

status

string

The status. Valid values:

  • 1: Enabled.

  • 0: Disabled.

ENABLE

scopeObjectList

array<object>

The list of subscription scopes.

object

The list of subscription scopes.

id

integer

The primary key ID.

10

scope

integer

The subscription scope type. Valid values:

  • 0: All.

  • 1: Service.

  • 2: Routing rule.

1

scopeObjectId

integer

The primary key ID of the subscription scope object association table.

10

scopeObject

string

The name of the subscription scope object.

Alibaba Cloud services

isValid

integer

Indicates whether the scope object is valid.

1

notifyObjectList

array<object>

The list of notification recipients.

object

The list of notification recipients.

id

integer

The primary key ID.

10

notifyObjectType

integer

The notification recipient type. Valid values:

  • 0: Service group.

  • 1: Individual.

1

notifyObjectId

integer

The primary key ID of the association.

10

name

string

The name of the notification recipient.

Zhang Shan

isValid

integer

Indicates whether the scope object is valid.

1

totalCount

integer

The total number of entries.

100

pageNumber

integer

The page number.

1

pageSize

integer

The page size.

10

Examples

Success response

JSON format

{
  "requestId": "10REQUES-AC5C-4B59-BE11-378F117A6A88",
  "data": [
    {
      "subscriptionId": 10,
      "subscriptionTitle": "test",
      "scope": 0,
      "notifyObjectType": 0,
      "expiredType": "LONG_TERM",
      "startTime": "2020-05-09 10:10:10",
      "endTime": "2022-05-09 10:10:10",
      "status": "ENABLE",
      "scopeObjectList": [
        {
          "id": 10,
          "scope": 0,
          "scopeObjectId": 10,
          "scopeObject": "Alibaba Cloud services",
          "isValid": 1
        }
      ],
      "notifyObjectList": [
        {
          "id": 10,
          "notifyObjectType": 0,
          "notifyObjectId": 10,
          "name": "Zhang Shan",
          "isValid": 1
        }
      ]
    }
  ],
  "totalCount": 100,
  "pageNumber": 1,
  "pageSize": 10
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.