ListNetworkLinks
Queries the network connectivity of the current tenant in a specified region and returns the connectivity name, type, status, and associated VPC. To retrieve the connectivity configuration, invoke GetNetworkLink.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListNetworkLinks |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tenants/networklinks HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
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 returned data. |
|
| networkLinkInfoList |
array<object> |
The list of network link information. |
|
|
array<object> |
|||
| name |
string |
The name of the network link. |
analytics-vpc-link |
| type |
string |
The network type. |
PASSTHROUGH |
| region |
string |
The region ID. |
cn-beijing |
| createTime |
integer |
The creation time of the network connectivity. The value is a UNIX timestamp in milliseconds. |
1661914382000 |
| status |
string |
The status. |
SUCCESS |
| vpcId |
string |
The ID of the VPC associated with the network connectivity. |
vpc-2ze9v7m3p6k8x4t1s2ab |
| passthroughProperties |
object |
The network configuration of the pass-through network connectivity, including the vSwitch and security group. To retrieve this configuration, invoke GetNetworkLink. |
|
| vSwitchId |
string |
The vSwitch ID. |
vsw-2ze9v7m3p6k8x4t1s2ab |
| securityGroup |
string |
The security group in the selected VPC. |
sg-2ze9v7m3p6k8x4t1s2ab |
| reverseaccessProperties |
object |
The configuration of the reverse access network connectivity, including the destination address and active zone. To retrieve this configuration, invoke GetNetworkLink. |
|
| 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 zone ID. |
cn-beijing-a |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"networkLinkInfoList": [
{
"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.