Retrieves the properties of a subscription.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mns:GetSubscriptionAttributes |
get |
*Subscription
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TopicName |
string |
Yes |
The name of the topic to which the subscription belongs. |
MyTopic |
| SubscriptionName |
string |
Yes |
The name of the subscription. |
MySubscription |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
06273500-249F-5863-121D-74D51123**** |
| Code |
integer |
The response code. |
200 |
| Status |
string |
The status of the response. |
Success |
| Message |
string |
The response message. |
operation success |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The response data. |
|
| SubscriptionName |
string |
The name of the subscription. |
MySubscription |
| TopicOwner |
string |
The AccountId of the owner of the topic to which the subscription belongs. |
123456789098**** |
| TopicName |
string |
The name of the topic to which the subscription belongs. |
MyTopic |
| Endpoint |
string |
The endpoint of the subscription. |
http://example.com |
| FilterTag |
string |
The tag used for message filtering. Only messages that have a matching tag are pushed. |
important |
| CreateTime |
integer |
The time when the subscription was created. The value is a UNIX timestamp that represents the number of seconds that have elapsed since 00:00:00 on January 1, 1970. |
1449554806 |
| LastModifyTime |
integer |
The time when the subscription properties were last modified. The value is a UNIX timestamp that represents the number of seconds that have elapsed since 00:00:00 on January 1, 1970. |
1449554962 |
| NotifyStrategy |
string |
The retry policy that is used when a message fails to be pushed to an endpoint. Valid values:
|
BACKOFF_RETRY |
| NotifyContentFormat |
string |
The format of the message content that is pushed to an endpoint. Valid values:
|
XML |
| DlqPolicy |
object |
The dead-letter queue policy. |
|
| Enabled |
boolean |
Indicates whether dead-letter message delivery is enabled. |
true |
| DeadLetterTargetQueue |
string |
The target queue to which dead-letter messages are delivered. |
deadLetterTargetQueue |
| TenantRateLimitPolicy |
object |
||
| Enabled |
boolean |
||
| MaxReceivesPerSecond |
integer |
Examples
Success response
JSON format
{
"RequestId": "06273500-249F-5863-121D-74D51123****",
"Code": 200,
"Status": "Success",
"Message": "operation success",
"Success": true,
"Data": {
"SubscriptionName": "MySubscription",
"TopicOwner": "123456789098****",
"TopicName": "MyTopic",
"Endpoint": "http://example.com",
"FilterTag": "important",
"CreateTime": 1449554806,
"LastModifyTime": 1449554962,
"NotifyStrategy": "BACKOFF_RETRY",
"NotifyContentFormat": "XML",
"DlqPolicy": {
"Enabled": true,
"DeadLetterTargetQueue": "deadLetterTargetQueue"
},
"TenantRateLimitPolicy": {
"Enabled": false,
"MaxReceivesPerSecond": 0
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.