Modifies a port forwarding rule.
Operation description
This operation can be used with Terraform. For more information, see What is Terraform.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
yundun-ddoscoo:ModifyPort | update | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
FrontendPort | string | Yes | The forwarding port. Valid values: 0 to 65535. | 55 |
FrontendProtocol | string | Yes | The type of the forwarding protocol. Valid values:
| tcp |
InstanceId | string | Yes | The ID of the Anti-DDoS Proxy instance to which the port forwarding rule belongs. Note You can call DescribeInstanceIds to query the IDs of all Anti-DDoS Proxy instances. | ddoscoo-cn-st21zbyq**** |
BackendPort | string | Yes | The origin server port. Valid values: 0 to 65535. | 55 |
| RealServers | array | Yes | The IP addresses of origin servers. | |
string | No | The IP address of the origin server. | 1.XX.XX.1 | |
ProxyEnable | integer | No | Indicates whether the traffic diversion switch is on. Valid values:
| 0 |
Response elements
Parameter | Type | Description | Example |
object | |||
RequestId | string | The request ID, which is used to locate and troubleshoot issues. | 39499F01-19D9-4EA4-A0E9-C6014BA5CDBE |
Examples
Success response
JSON format
{
"RequestId": "39499F01-19D9-4EA4-A0E9-C6014BA5CDBE"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.