NSX-T Data Center REST API
PUT segment security profile id
Create or replace a segment security profileThis API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/segment-security-profiles/{segment-security-profile-id}
/policy/api/v1/global-infra/segment-security-profiles/{segment-security-profile-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/segment-security-profiles/{segment-security-profile-id}
/policy/api/v1/global-infra/segment-security-profiles/{segment-security-profile-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/segment-security-profiles/{segment-security-profile-id}
Request Headers:
n/a
Query Parameters:
OverrideRequestParameters+
Request Body:
SegmentSecurityProfile+
Example Request:
{ "resource_type": "SegmentSecurityProfile", "id": "MySegmentSecurityProfile", "display_name": "MySegmentSecurityProfile", "description": "MySegmentSecurityProfile", "bpdu_filter_enable": true, "bpdu_filter_allow":["01:80:c2:00:00:00", "01:80:c2:00:00:01"], "dhcp_server_block_enabled": true, "dhcp_client_block_enabled": true, "non_ip_traffic_block_enabled": true, "dhcp_server_block_v6_enabled": true, "dhcp_client_block_v6_enabled": true, "ra_guard_enabled": true }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
SegmentSecurityProfile+