GetSubscription
Retrieves the details of a notification subscription.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:GetSubscription |
get |
*All Resource
|
None | None |
Request syntax
POST /notify/subscription/detail HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| subscriptionId |
integer |
No |
The subscription ID. |
10 |
| notFilterScopeObjectDeleted |
boolean |
No |
Specifies whether to filter out deleted objects. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
10REQUES-AC5C-4B59-BE11-378F117A6A88 |
| data |
object |
The returned result. |
|
| subscriptionId |
integer |
The subscription ID. |
68 |
| subscriptionTitle |
string |
The name of the notification subscription. |
newTitle |
| scope |
string |
The subscription scope type. Valid values:
|
SERVICE |
| notifyObjectType |
string |
The notification object type. Valid values:
|
USER |
| expiredType |
string |
The validity period type. Valid values:
|
LONG_TERM |
| period |
string |
The time period string. |
1 month |
| startTime |
string |
The validity start time, in the YYYY-MM-DD HH:mm:ss format. |
2020-05-09 10:10:10 |
| endTime |
string |
The validity end time, in the YYYY-MM-DD HH:mm:ss format. |
2021-08-09 10:10:10 |
| status |
string |
The status. Valid values:
|
ENABLE |
| scopeObjectList |
array<object> |
The subscription scope list. |
|
|
object |
The subscription scope list. |
||
| id |
integer |
The primary key ID. |
10 |
| scope |
string |
The subscription scope type. Valid values:
|
SERVICE |
| 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 |
| isValid |
integer |
Specifies whether the object is valid. Valid values:
|
1 |
| notifyObjectList |
array<object> |
The notification object list. |
|
|
object |
The notification object list. |
||
| id |
integer |
The primary key ID. |
23 |
| notifyObjectType |
integer |
The notification object type. Valid values:
|
1 |
| notifyObjectId |
integer |
The associated primary key ID. |
19 |
| name |
string |
The name of the notification object. |
TestName |
| notifyStrategyList |
array<object> |
The notification policy list. |
|
|
array<object> |
The notification subscription list. |
||
| instanceType |
integer |
The subscription instance type. Valid values:
|
0 |
| strategies |
array<object> |
The policies. |
|
|
array<object> |
The policies. |
||
| id |
integer |
The primary key of the policy. |
12 |
| channels |
string |
The notification channels. |
SMS |
| conditions |
array<object> |
The conditions. |
|
|
object |
The subscription conditions. |
||
| effection |
string |
The impact scope. |
HIGH |
| problemNotifyType |
string |
The fault notification type. |
PROBLEM_NOTIFY |
| level |
string |
The level. |
P1 |
| action |
string |
The event action. |
INCIDENT_TRIGGER |
| periodChannel |
object |
The channels by time period. |
|
| workday |
string |
The working hours. |
DINGDING |
| nonWorkday |
string |
The non-working hours. |
DINGDING |
Examples
Success response
JSON format
{
"requestId": "10REQUES-AC5C-4B59-BE11-378F117A6A88",
"data": {
"subscriptionId": 68,
"subscriptionTitle": "newTitle",
"scope": "SERVICE",
"notifyObjectType": "USER",
"expiredType": "LONG_TERM",
"period": "1 month",
"startTime": "2020-05-09 10:10:10",
"endTime": "2021-08-09 10:10:10",
"status": "ENABLE",
"scopeObjectList": [
{
"id": 10,
"scope": "SERVICE",
"scopeObjectId": 10,
"scopeObject": "Alibaba Cloud",
"isValid": 1
}
],
"notifyObjectList": [
{
"id": 23,
"notifyObjectType": 0,
"notifyObjectId": 19,
"name": "TestName"
}
],
"notifyStrategyList": [
{
"instanceType": 0,
"strategies": [
{
"id": 12,
"channels": "SMS",
"conditions": [
{
"effection": "HIGH",
"problemNotifyType": "PROBLEM_NOTIFY",
"level": "P1",
"action": "INCIDENT_TRIGGER"
}
],
"periodChannel": {
"workday": "DINGDING",
"nonWorkday": "DINGDING"
}
}
]
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotifySubsNotExists | The specified subscription does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.