Queries the scheduling rules of Sec-Traffic Manager.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
yundun-ddoscoo:DescribeSchedulerRules | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
ResourceGroupId | string | No | The resource group ID of the Anti-DDoS Proxy instance in Resource Management. The default value is empty, which indicates that the instance belongs to the default resource group. | default |
RuleName | string | No | The rule name. | testrule |
PageNumber | integer | No | The page number of the returned page. For example, to query the results on the first page, enter 1. | 1 |
PageSize | integer | Yes | The number of records displayed on each page. | 10 |
Response elements
Parameter | Type | Description | Example |
object | |||
TotalCount | string | The total number of traffic scheduling rules. | 1 |
RequestId | string | The ID of the request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem locating. | 11C55595-1757-4B17-9ACE-4ACB68C2D989 |
| SchedulerRules | array<object> | The traffic scheduling rule information. | |
object | |||
RuleType | string | The rule type. Valid values:
| |
Cname | string | The canonical name value. | 4eru5229a843****.aliyunddos0001.com |
RuleName | string | The rule name. | doctest |
| Rules | array<object> | The rule list. | |
object | |||
Type | string | The format of the resource address. Valid values:
| A |
Status | integer | The rule status. Valid values:
| 0 |
Value | string | The resource address. | 203.***.***.39 |
ValueType | integer | The resource address type. Valid values:
| 1 |
Priority | integer | The rule priority. | 100 |
RestoreDelay | integer | The Waiting Time of Switchback, in minutes. | 60 |
RegionId | string | The region ID. Note This parameter is returned only when RuleType is set to 2 (tiered protection rule). | 1 |
Line | string | ||
| Param | object | The rule for Global Accelerator instance interaction with Anti-DDoS Proxy. | |
ParamType | string | The type of Resource for Interaction. Valid value: GA, which indicates a Global Accelerator instance. | GA |
| ParamData | object | The Resource for Interaction. | |
CloudInstanceId | string | The ID of the Global Accelerator instance. | ga-bp1htlajy5509rc99**** |
Examples
Success response
JSON format
{
"TotalCount": "1",
"RequestId": "11C55595-1757-4B17-9ACE-4ACB68C2D989",
"SchedulerRules": [
{
"RuleType": "2",
"Cname": "4eru5229a843****.aliyunddos0001.com",
"RuleName": "doctest",
"Rules": [
{
"Type": "A",
"Status": 0,
"Value": "203.***.***.39",
"ValueType": 1,
"Priority": 100,
"RestoreDelay": 60,
"RegionId": "1",
"Line": ""
}
],
"Param": {
"ParamType": "GA",
"ParamData": {
"CloudInstanceId": "ga-bp1htlajy5509rc99****"
}
}
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.