Policy > Security > East West Security > Distributed Firewall > Container Cluster

List all container cluster span of a security policy

List all container cluster span of a security policy
This API is only available when using VMware NSX-T.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/security-policies/<security-policy-id>/container-cluster-span
Request Headers:
n/a
Query Parameters:
PolicyListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/domains/default/security-policies/application-1/container-cluster-span

Successful Response:

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

Example Response:

{ "sort_ascending": true, "sort_by": "display_name", "result_count": 2, "results": [ { "resource_type": "SecurityPolicyContainerCluster", "description": "antrea cluster 1", "display_name": "AntreaCluster 1", "container_cluster_type": "ANTREA", "container_cluster_path":"/infra/sites/default/enforcement-points/default/antrea-nodes/antrea-cluster-1" "id": "antrea-cluster-1", "path": "//infra/domains/vmc/security-policies/application-section-1/container-cluster-span/antrea-cluster-1", "parent_path": "/infra/domains/vmc/security-policies/application-section-1", "relative_path": "antrea-cluster-1", "_create_user": "admin", "_create_time": 1517317382942, "_last_modified_user": "admin", "_last_modified_time": 1517317382962, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, { "resource_type": "SecurityPolicyContainerCluster", "description": "antrea cluster 2", "display_name": "AntreaCluster 2", "container_cluster_type": "ANTREA", "container_cluster_path":"/infra/sites/default/enforcement-points/default/antrea-nodes/antrea-cluster-2" "id": "antrea-cluster-1", "path": "//infra/domains/vmc/security-policies/application-section-1/container-cluster-span/antrea-cluster-2", "parent_path": "/infra/domains/vmc/security-policies/application-section-1", "relative_path": "antrea-cluster-2", "_create_user": "admin", "_create_time": 1517317382942, "_last_modified_user": "admin", "_last_modified_time": 1517317382962, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

policy_dfw

Additional Errors: