Query the alert threshold for an account
Updated at:
Copy as MD
API name
QueryUserAlarmThreshold
Description
Queries the credit control alert threshold of an account.
Request parameters
| Name | Type | Required | Description |
| Uid | Long | Yes | The UID of the virtual operator's Alibaba Cloud account. |
| Bid | String | Yes | The business ID (BID) of the user. For lightweight virtual operator customers, use 26842. For BID-based virtual operator customers, use their assigned BID. |
| AlarmType | String | Yes | The alert type. |
| AlarmThresholds | String | No | This parameter is not used for queries. |
Response parameters
| Name | Type | Description |
| ThresholdAmount | String | Condition and Threshold |
| Numerator | Integer | The numerator if the threshold is a percentage. |
| Denominator | Integer | The denominator if the threshold is a percentage. |
| ThresholdType | Integer | The threshold type. 0 indicates a specific value. 1 indicates a percentage. |
Error codes
| Error code | Description | HTTP status code | Semantics |
| Missing_Must_Parameter | missing the must parameter xx ! | -101 | Input parameter verification failed. |
| Database_Inner_Error | Database inner error xx! | -310 | An internal error occurred during a database operation. |
Request example
&Action=QueryUserAlarmThreshold
&Uid=22227
&Bid=22222
&AlarmType=quato_userup_policyResponse example
{
Code:200,
RequestId: "22222",
Message: "successful",
Success:true,
Count:1
"Datas": {
"Data": [
{
"ThresholdAmount": "1",
"Numerator": "89",
"Denominator": "100 ",
"ThresholdType": “1”
}
]
}
}Data dictionary
| commodity_code | Chinese Name |
| can_use_quota_not_enough_policy | Low quota alert |
| quato_userup_policy | Quota exhaustion alert |
| month_consum_too_big_policy | High monthly spending alert |
| creditpay_low_balance_policy | Low available credit balance alert |
| creditpay_userup_policy | Available credit overdraft alert |
| creditpay_month_consump_high_warn_policy | High monthly spending alert for credit payment users |
| credit_userup | Available credit exhaustion alert |
| intl_credit_user_month_high_warn_policy | High monthly spending alert policy for international credit control users |
| intl_user_low_balance_warn_policy | Low balance alert policy for international credit control users |
| warn_virtual_policy | Low balance alert policy for China site credit control users |
| internal_user_month_high_warn_policy | High monthly spending alert policy for China site credit control users |
Is this page helpful?