CreateNetworkLink
Creates network connectivity of a specified type for the current MaxCompute tenant. You can invoke GetNetworkLink to query the connectivity status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CreateNetworkLink |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/tenants/networklinks HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
The JSON request body. The name parameter specifies the connection name, type specifies the connection type, region specifies the region ID, and vpcId specifies the VPC ID. For the PASSTHROUGH type, provide passthroughProperties (vSwitchId and securityGroup). For the REVERSEACCESS type, provide reverseaccessProperties (target and zoneId). |
{"name":"example_link","type":"PASSTHROUGH","region":"cn-hangzhou","vpcId":"vpc-example","passthroughProperties":{"vSwitchId":"vsw-example","securityGroup":"sg-example"}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when you troubleshoot issues. |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
The HTTP status code of the request. |
200 |
| errorCode |
string |
The error code returned when the request fails. |
InvalidArgument |
| errorMsg |
string |
The error message returned when the request fails. |
The specified parameter is invalid. |
| data |
string |
The returned data. The value is success when the operation succeeds. |
success |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.