NSX-T Data Center REST API

Get SecurityProfileAttachment

Retrieves a specific Security Profile Attachment by its unique identifier, providing details about
the association between a VPC and its assigned security profile. The response includes information about
the target VPC, the attached security profile reference, and attachment metadata details.
This API enables administrators to verify current security profile assignments and understand the security
configuration applied to specific VPCs within a project. The attachment identifier typically corresponds to the
VPC identifier for which the security profile is attached.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/security-profile-attachments/{security-profile-attachment-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/default/projects/Production_Prj/security-profile-attachments/vpc1

Successful Response:

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

Example Response:

{ "attached_to": "/orgs/default/projects/Production_Prj/vpcs/vpc1", "security_profile": "/orgs/default/projects/Production_Prj/vpc-security-profiles/system-security-profile-2", "resource_type": "SecurityProfileAttachment", "id": "vpc1", "display_name": "vpc1", "path": "/orgs/default/projects/Production_Prj/security-profile-attachments/vpc1", "relative_path": "vpc1", "parent_path": "/orgs/default/projects/Production_Prj", "remote_path": "", "unique_id": "5449d7df-78c8-4d78-8449-f16445722797", "realization_id": "5449d7df-78c8-4d78-8449-f16445722797", "owner_id": "3ae63613-323b-4465-bf36-14274fd591e3", "marked_for_delete": false, "overridden": false, "_system_owned": false, "_protection": "NOT_PROTECTED", "_create_time": 1757929365242, "_create_user": "system", "_last_modified_time": 1757999739610, "_last_modified_user": "admin", "_revision": 1 }

Required Permissions:

read

Feature:

policy_edge_fw

Additional Errors: