Querying a Forwarding Rule
Function
This API is used to query forwarding rules.
Calling Method
For details, see Calling APIs.
URI
GET /v2/aad/forward-rules
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| instance_id | Yes | String | Instance ID. |
| ip | Yes | String | AAD IP address |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | token |
| Content-Type | Yes | String | Content-Type |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total | Integer | total |
| protocol_rule | Array of ListRulesByIpProtocolRule objects | rule |
| Parameter | Type | Description |
|---|---|---|
| rule_id | String | Rule ID |
| forward_protocol | String | Forwarding protocol |
| forward_port | Integer | Forwarding port. |
| source_protocol | String | Origin protocol |
| source_port | Integer | Source port |
| lvs_rule | String | Forwarding mode |
| source_ip | String | Origin server IP address |
| status | Integer | Status. 0: processing; 1: normal; 2: abnormal |
| type | Integer | 0: website; 1: non-website |
| switchs | Integer | 0: enabled; 2: disabled |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_description | String | Error description. |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Error response |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot