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

Add a container cluster as a span of this security policy

Add a container cluster as a span of this security policy.
If there already exists another object containing the same container cluster
path, an error will be thrown. The container cluster path cannot be modified
If the path has to be modified, then delete this entity and add a new entity
with the desired container cluster path
This API is only available when using VMware NSX-T.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/domains/vmc/security-policies/application-section-1/container-cluster-span/antrea-cluster-1 { "description": "antrea cluster 1", "display_name": "AntreaCluster 1", "type": "ANTREA", "container_cluster_path":"/infra/sites/default/enforcement-points/default/antrea-nodes/antrea-cluster-1" }

Successful Response:

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

Example Response:

{ "resource_type": "SecurityPolicyContainerCluster", "description": "antrea cluster 1", "display_name": "AntreaCluster 1", "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 }

Required Permissions:

crud

Feature:

policy_dfw

Additional Errors: