Add Forwarding Rules
Function
This API is used to add a forwarding rule.
Calling Method
For details, see Calling APIs.
URI
POST /v2/aad/forward-rules/{instance_id}/{ip}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_id |
Yes |
String |
Instance ID. |
|
ip |
Yes |
String |
Instance IP address. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
token |
|
Content-Type |
Yes |
String |
Content-Type |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
forward_port |
Yes |
Integer |
Forwarding port. |
|
forward_protocol |
Yes |
String |
Forwarding protocol. The value can be tcp or udp. |
|
source_ip |
Yes |
String |
Origin IP addresses. Use commas (,) to separate multiple IP addresses. A maximum of 20 IP addresses are allowed. |
|
source_port |
Yes |
Integer |
Origin server port. |
Response Parameters
Status code: 200
OK
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.
Feedback
Was this page helpful?
Provide feedbackThank 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