Policy >
Networking
>
Network Services
>
Metadata Proxy
>
Status
Get metadata proxy status
Request:
Method:
GET
URI Path(s):
/policy/api/v1/infra/metadata-proxies/{metadata-proxy-id}/statistics
/policy/api/v1/global-infra/metadata-proxies/{metadata-proxy-id}/statistics
Request Headers:
n/a
Query Parameters:
MetadataProxyRuntimeRequestParameters
+
MetadataProxyRuntimeRequestParameters
(
schema
)
Name
Description
Type
Notes
enforcement_point_path
String Path of the enforcement point
enforcement point path, forward slashes must be escaped using %2F.
string
segment_path
String Path of the segment which is associated with this metadata proxy
string
source
The data source, either realtime or cached. If not provided, cached data is returned.
DataSourceType
Request Body:
n/a
Example Request:
https://{{nsx-mgr}}/policy/api/v1/infra/metadata-proxies/p1/statistics?segment_path=/infra/segments/md-proxy-seg1&enforcement_point_path=/infra/sites/default/enforcement-points/default
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyMetadataProxyStatistics
+
PolicyMetadataProxyStatistics
(
schema
)
Name
Description
Type
Notes
metadata_proxy_path
Policy path of metadata proxy configuration
string
Required
statistics
Metadata Proxy statistics per segment
array of
MetadataProxyStatisticsPerSegment
timestamp
timestamp of the statistics
EpochMsTimestamp
Required
Example Response:
{ "metadata_proxy_path": "/infra/metadata-proxies/p1", "timestamp": 1591854737938, "statistics": [ { "segment_path": "/infra/segments/md-proxy-seg1", "requests_from_clients": 0, "responses_to_clients": 0, "requests_to_nova_server": 0, "succeeded_responses_from_nova_server": 0, "error_responses_from_nova_server": 0 } ] }
Required Permissions:
read
Feature:
policy_segment
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