ListSubscriptions
Queries the list of notification subscriptions.
Try it now
Test
RAM authorization
|
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:
|
SERVICE |
| scopeObject |
string |
No |
The name of the subscription scope object. |
TestName |
| notifyObjectType |
string |
No |
The notification recipient type. Valid values:
|
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:
|
1 |
| notifyObjectType |
integer |
The notification recipient type. Valid values:
|
1 |
| expiredType |
string |
The validity period type. Valid values:
|
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:
|
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:
|
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:
|
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.