Policy >
Networking
>
Connectivity
>
Tier-0 Gateways
>
Routing
Get total number of IPv4 or IPv6 routes on a Tier0
Get total number of IPv4 or IPv6 routes on a Tier0
This API is only available when using VMware NSX.
Request:
Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/number-of-routes
/policy/api/v1/global-infra/tier-0s/{tier-0-id}/number-of-routes
Request Headers:
n/a
Query Parameters:
Tier0NumberOfRoutesRequestParameters
+
Tier0NumberOfRoutesRequestParameters
(
schema
)
Name
Description
Type
Notes
edge_path
Policy path of edge node
Policy path of edge node. Edge node must be member of enforcement point.
string
Required
enforcement_point_path
String Path of the enforcement point
Enforcement point path.
string
include_child_vrf
Count all the child VRF routes or not.
boolean
Request Body:
n/a
Example Request:
https://<policy-mgr>/policy/api/v1/infra/tier-0s/pepsi/number-of-routes?edge_path=/infra/sites/default/enforcement-points/default/edge-clusters/
/edge-nodes/0
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Tier0NumberOfRoutesResult
+
Tier0NumberOfRoutesResult
(
schema
)
Name
Description
Type
Notes
number_of_ipv4
Number of IPV4 Routes
Number of IPV4 Routes
integer
number_of_ipv6
Number of IPV6 Routes
Number of IPV6 Routes
integer
Required Permissions:
read
Feature:
policy_t0
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable