Modifies the port protocol of an SCG5000 or SCG5000-5G device whose version is 3.4.2 or later.
Operation description
You can modify the port protocol only of SCG5000 and SCG5000-5G devices whose version is 3.4.2 or later.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SagInsId | string | Yes | The ID of the Smart Access Gateway (SAG) instance. | sag-3manef62evrfr6**** |
SagSn | string | Yes | The serial number of the SAG device. | sagf4dk**** |
RegionId | string | Yes | The region ID of the SAG instance. You can call the DescribeRegions operation to query the most recent region list. | cn-shanghai |
PortName | string | Yes | The port name. | 0 |
Vlan | string | No | The VLAN ID. | 10 |
RouteProtocol | string | Yes | The routing protocol. Valid values:
| STATIC |
RemoteIp | string | No | The IP address of the peer device. Note
When you enable BGP, you must set this parameter.
| 192.XX.XX.1 |
RemoteAs | string | No | The autonomous system number (ASN) of the SAG device. Note
When you enable BGP, you must set this parameter.
| 65535 |
CrossAccount | boolean | No | Specifies whether to query only the SAG instances that belong to another Alibaba Cloud account. Valid values:
| false |
ResourceUid | string | No | The ID of the Alibaba Cloud account to which the SAG instance belongs. | 109790620697**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Success": true,
"RequestId": "A7DB1241-17CB-5457-83A9-638162A514C6",
"Message": "Successful"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | GATEWAY.InvalidSN | The specified gateway serial number does not exist. |
400 | InternalError | Internal server error |
400 | MissParameter.GatewayId | The input parameter GatewayId that is mandatory for processing this model is not supplied. |
400 | MissParameter.PortName | The input parameter PortName that is mandatory for processing this model is not supplied. |
400 | MissParameter.RouteType | The input parameter RouteType that is mandatory for processing this model is not supplied. |
400 | InvalidParameter.Vlan | The input parameter Vlan is illegal, please check your input. |
400 | InvalidParameter.RouteType | The input parameter RouteType is illegal, please check your input. |
400 | InvalidParameter.RemoteIp | The input parameter RemoteIp is illegal, please check your input. |
400 | InvalidParameter.RemoteAs | The input parameter RemoteAs is illegal, please check your input. |
400 | InvalidSpec.FeatureNotSupport | The current edition of the cloudbranch does not support this feature. |
400 | SMARTAG.PORT.ROLE.INVALID | Invalid port role |
400 | DeviceNotExist | The specified device does not exist |
For a list of error codes, visit the Service error codes.