GetNetworkLink
Queries the network connectivity in the current tenant by name and returns the connection status, associated VPC, and network configurations of the corresponding type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetNetworkLink |
get |
*NetworkLink
|
None | None |
Request syntax
GET /api/v1/tenants/networklinks/{networkLinkName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| networkLinkName |
string |
No |
The name of the network connectivity in the tenant. |
analytics-vpc-link |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. You can use this ID to 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 |
object |
The business data of the network connectivity. |
|
| name |
string |
The name of the network connectivity. |
analytics-vpc-link |
| type |
string |
The type of the network connectivity, such as PASSTHROUGH or reverse access (REVERSEACCESS). |
PASSTHROUGH |
| region |
string |
The region ID of the network connectivity. |
cn-beijing |
| createTime |
integer |
The creation time of the network connectivity. The value is a UNIX timestamp in milliseconds. |
1661914382000 |
| status |
string |
The current status of the network connectivity. |
SUCCESS |
| vpcId |
string |
The ID of the VPC associated with the network connectivity. |
vpc-2ze9v7m3p6k8x4t1s2ab |
| passthroughProperties |
object |
The network configurations of the passthrough network connectivity, including the vSwitch and security group. |
|
| vSwitchId |
string |
The ID of the vSwitch used by the passthrough connection. |
vsw-2ze9v7m3p6k8x4t1s2ab |
| securityGroup |
string |
The ID of the security group used by the passthrough connection. |
sg-2ze9v7m3p6k8x4t1s2ab |
| reverseaccessProperties |
object |
The configurations of the reverse access network connectivity, including the destination address and active zone. |
|
| target |
string |
The destination IP address or domain name and port for reverse access. Multiple destinations are separated by semicolons. |
192.0.2.10:443 |
| zoneId |
string |
The active zone ID of the reverse access network connectivity. |
cn-beijing-a |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"name": "analytics-vpc-link",
"type": "PASSTHROUGH",
"region": "cn-beijing",
"createTime": 1661914382000,
"status": "SUCCESS",
"vpcId": "vpc-2ze9v7m3p6k8x4t1s2ab",
"passthroughProperties": {
"vSwitchId": "vsw-2ze9v7m3p6k8x4t1s2ab",
"securityGroup": "sg-2ze9v7m3p6k8x4t1s2ab"
},
"reverseaccessProperties": {
"target": "192.0.2.10:443",
"zoneId": "cn-beijing-a"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.