Policy > Networking > Connectivity > Segments > Segment Profiles > MAC Discovery Profiles

List Mac Discovery Profiles

API will list all Mac Discovery Profiles active in current discovery profile id.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/mac-discovery-profiles
/policy/api/v1/global-infra/mac-discovery-profiles
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/mac-discovery-profiles
Request Headers:
n/a
Query Parameters:
MacDiscoveryProfileListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/mac-discovery-profiles

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
MacDiscoveryProfileListResult+

Example Response:

{ "sort_ascending": true, "sort_by": "display_name", "result_count": 1, "results": [ { "resource_type":"MacDiscoveryProfile", "display_name": "MacDiscoveryProfile", "description": "", "path": "/infra/mac-discovery-profiles/mdp1", "relative_path": "mdp1", "mac_change_enabled": true, "mac_learning_enabled": true, "unknown_unicast_flooding_enabled": false, "mac_limit_policy": "ALLOW", "mac_limit": 1, "_create_user": "admin", "_create_time": 1516657975538, "_last_modified_user": "admin", "_last_modified_time": 1517353711231, "_system_owned": false, "_revision": 1 } ] }

Required Permissions:

read

Feature:

policy_profiles

Additional Errors: