Skip to main content

Show Virtual Router Details

GET/v2.0/routers/{router_id}

Shows details of a router with the specified ID.

Request​

Parameters​

router_idstringrequiredpath

The ID of the router.

fieldsstringquery

The fields that you want the server to return. If not specified, all attributes allowed by policy are returned. Can be specified multiple times, e.g. fields=id&fields=name.

Sample Request​

curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9696/v2.0/routers/ce996632-45a2-4c6b-a951-a624eba74621

Response​

Response Parameters​

routerobjectrequired

A router object.

idstringrequired

The ID of the router.

tenant_idstringrequired

The ID of the project.

project_idstringrequired

The ID of the project.

namestringrequired

Human-readable name of the resource.

descriptionstringrequired

A human-readable description for the resource.

admin_state_upbooleanrequired

The administrative state of the resource, which is up (true) or down (false).

statusstringrequired

The router status.

external_gateway_infoobjectrequired

The external gateway information of the router. If the router has an external gateway, this would be a dictionary of network_id, enable_snat and external_fixed_ips. Otherwise, this would be null.

network_idstringrequired

Network ID which the router gateway is connected to.

enable_snatbooleanrequired

Enable Source NAT (SNAT) attribute. true enables NAT for traffic to/from the external network; false disables it. Available when ext-gw-mode extension is enabled.

external_fixed_ipsarrayrequired

IP address(es) of the external gateway of the router. Each element is a dictionary of ip_address and subnet_id.

revision_numberintegerrequired

The revision number of the resource.

routesarrayrequired

Extra routes configuration for L3 router. A list of dictionaries with destination and nexthop. Available when extraroute extension is enabled.

destinationstringrequired

The destination CIDR.

nexthopstringrequired

The IP address of the next hop for the corresponding destination. Must belong to a subnet connected to the router.

distributedbooleanrequired

true indicates a distributed router. Available when dvr extension is enabled.

habooleanrequired

true indicates a highly-available router. Available when l3-ha extension is enabled.

availability_zone_hintsarrayrequired

The availability zone candidates for the router. Available when router_availability_zone is enabled. The current Virtuozzo Hybrid Infrastructure version does not support availability zones; default or null is returned.

availability_zonesarrayrequired

The availability zone(s) for the router. Available when router_availability_zone is enabled. The current Virtuozzo Hybrid Infrastructure version does not support availability zones; default or null is returned.

service_type_idstringrequired

The ID of the service type associated with the router.

flavor_idstringrequired

The ID of the flavor associated with the router.

created_atstringrequired

The date and time when the resource was created. ISO 8601 format: CCYY-MM-DDThh:mm:ss±hh:mm.

updated_atstringrequired

The date and time when the resource was updated, or null. ISO 8601 format.

tagsarrayrequired

The list of tags on the router.

conntrack_helpersarrayrequired

Associated conntrack helper resources. Each entry has helper, protocol, port.

Sample Response​

Response body
{
"router": {
"id": "66fa6a3b-4b3a-485f-819d-c671765eb915",
"name": "R1",
"tenant_id": "f33507157a634f1cac71e06a70fb558e",
"admin_state_up": true,
"status": "ACTIVE",
"external_gateway_info": {
"network_id": "79cab11a-122d-43a7-9427-3575d9512413",
"external_fixed_ips": [
{
"subnet_id": "54ca4e27-7dfd-4504-a36b-8c47527f7a23",
"ip_address": "45.115.16.196"
}
],
"enable_snat": true
},
"description": "",
"availability_zones": [
"nova"
],
"availability_zone_hints": [],
"routes": [],
"flavor_id": null,
"tags": [],
"created_at": "2025-09-23T16:01:29Z",
"updated_at": "2025-09-24T05:07:13Z",
"revision_number": 13,
"project_id": "f33507157a634f1cac71e06a70fb558e"
}
}

Status Codes​

Success​

Status CodeDescription
200 - OKRequest was successful.

Error​

Status CodeDescription
400 - Bad RequestSome content in the request was invalid.
401 - UnauthorizedUser must authenticate before making a request.
404 - Not FoundThe requested resource could not be found.
412 - Precondition FailedThe server did not meet a request precondition.