Management Plane API >
Networking
>
Logical Switching
>
Logical Switch Ports
Get Counts of Ports and Switches Using This Switching Profile
Request:
Method:
GET
URI Path(s):
/api/v1/switching-profiles/<switching-profile-id>/summary
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a
Example Request:
GET https://<nsx-mgr>/api/v1/switching-profiles/7f39bf67-ccf5-4613-8993-506ec89d893a/summary
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
SwitchingProfileStatus
+
SwitchingProfileStatus
(
schema
)
Name
Description
Type
Notes
num_logical_ports
Number of logical ports using a switching profile
integer
Required
Readonly
num_logical_switches
Number of logical switches using a switching profile
integer
Readonly
switching_profile_id
Identifier for the switching profile
string
Example Response:
{ "num_logical_ports": 1, "switching_profile_id": "7f39bf67-ccf5-4613-8993-506ec89d893a", "num_logical_switches": 0 }
Required Permissions:
read
Feature:
switching_switching_profiles
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable