NSX-T Data Center REST API

NetworkPolicyImportRequest (type)

{
  "additional_properties": false, 
  "description": "This contains a list of K8s Network Policy IDs to be imported as DFW SecurityPolicy.", 
  "id": "NetworkPolicyImportRequest", 
  "module_id": "PolicyFirewallConfiguration", 
  "properties": {
    "network_policy_ids": {
      "description": "A set of network policy UUIDs that has to be imported to NSX SecurityPolicy", 
      "items": {
        "type": "string"
      }, 
      "maxItems": 5000, 
      "required": true, 
      "title": "Set of K8s Network policy identifiers", 
      "type": "array"
    }, 
    "sequence_number_lower": {
      "description": "This is an optional field. If specified, the \"drop\" action policy will be placed at this position. If unspecified, the drop policy will be created after its corresponding allow policy. The default-drop policies' sequence_number = last existing policy sequence_number + 2. If you specify the sequence numbers explicitly, you must specify both sequence_number_upper and sequence_number_lower at the same time. The sequence_number_lower must be greater than sequence_number_upper.", 
      "required": false, 
      "title": "The sequence number at which the drop policy is placed", 
      "type": "int"
    }, 
    "sequence_number_upper": {
      "description": "This is an optional field. If specified, the \"allow\" action policy will be placed at this position. If unspecified,  the import API should find the lowest existing copy-span security policy applied to the original container cluster, and put the imported policies behind it. The allow policies' sequence_number=last existing copy-span policy sequence_number + 1", 
      "required": false, 
      "title": "The sequence number at which the allow policy is placed", 
      "type": "int"
    }
  }, 
  "title": "List of K8s Network Policies to be imported", 
  "type": "object"
}