Domain name for API request: as.tencentcloudapi.com.
This API (DescribeNotificationConfigurations) is used to query the information of one or more notifications.
You can query the details of notifications based on information such as notification ID and auto scaling group ID. For more information on filters, see Filter
.
If the parameter is empty, a certain number (specified by Limit
and 20 by default) of notifications of the current user will be returned.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeNotificationConfigurations. |
Version | Yes | String | Common Params. The value used for this API: 2018-04-19. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
AutoScalingNotificationIds.N | No | Array of String | Queries by one or more notification IDs in the format of asn-2sestqbr. The maximum number of instances per request is 100. This parameter does not support specifying both AutoScalingNotificationIds and Filters at the same time. |
Filters.N | No | Array of Filter | Filter. The maximum number of Filters per request is 10. The upper limit for Filter.Values is 5. This parameter does not support specifying both AutoScalingNotificationIds and Filters at the same time. |
Limit | No | Integer | Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit , see the relevant section in the API overview. |
Offset | No | Integer | Offset. Default value: 0. For more information on Offset , see the relevant section in the API overview. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of eligible notifications. |
AutoScalingNotificationSet | Array of AutoScalingNotification | List of AS event notification details. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: as.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeNotificationConfigurations
<Common request parameters>
{
"AutoScalingNotificationIds": [
"asn-9bhwvxqh"
]
}
{
"Response": {
"TotalCount": 1,
"AutoScalingNotificationSet": [
{
"TargetType": "USER_GROUP",
"TopicName": "topicname",
"QueueName": "queuename",
"AutoScalingGroupId": "asg-2umy3jbd",
"NotificationUserGroupIds": [
"1678"
],
"NotificationTypes": [
"SCALE_OUT_SUCCESSFUL"
],
"AutoScalingNotificationId": "asn-9bhwvxqh"
}
],
"RequestId": "0539a5fc-14b8-4591-9fe2-faee32031a64"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameter.ActionNotFound | Invalid Action request. |
InvalidParameterConflict | The two parameters specified conflict and cannot co-exist. |
InvalidParameterValue.InvalidAutoScalingGroupId | Invalid scaling group ID. |
InvalidParameterValue.InvalidAutoScalingNotificationId | Invalid notification ID. |
InvalidParameterValue.InvalidFilter | Invalid filter condition. |
Was this page helpful?