Policy > Networking > Connectivity > Segments > Segment Profiles > Segment Security Profiles

PUT segment security profile id

Create or replace a segment security profile
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

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>
Request Headers:
n/a
Query Parameters:
OverrideRequestParameters+
Request Body:
SegmentSecurityProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/segment-security-profiles/my-segment-security-profile { "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+

Example Response:

{ "resource_type":"SegmentSecurityProfile", "id":"MySegmentSecurityProfile", "display_name": "MySegmentSecurityProfile", "description": "MySegmentSecurityProfile", "path": "/infra/segment-security-profiles/my-segment-security-profile-id", "relative_path": "MySegmentSecurityProfile", "bpdu_filter_enable": "true", "bpdu_filter_allow":["01:80:c2:00:00:00", "01:80:c2:00:00:01"], "dhcp_server_block_enabled": Boolean, "dhcp_server_block_enabled": Boolean, "non_ip_traffic_block_enabled": Boolean, "dhcp_server_block_v6_enabled": "true" "dhcp_server_block_v6_enabled": "true" "ra_guard_enabled":"true" "_create_user": "admin", "_create_time": 1488995381918, "_last_modified_user": "admin", "_last_modified_time": 1488995381918, "_system_owned": false, "_revision": 0 }

Required Permissions:

crud

Feature:

policy_profiles

Additional Errors: