{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NatRuleRequest",
  "description": "NatRuleRequest schema from Palo Alto Networks Strata Cloud Manager API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/strata-cloud-manager-api-nat-rule-request-schema.json",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "from": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "to": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "destination": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "service": {
      "type": "string"
    },
    "source_translation": {
      "type": "object",
      "properties": {
        "dynamic_ip_and_port": {
          "type": "object",
          "properties": {
            "translated_address": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "static_ip": {
          "type": "object",
          "properties": {
            "translated_address": {
              "type": "string"
            },
            "bi_directional": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "destination_translation": {
      "type": "object",
      "properties": {
        "translated_address": {
          "type": "string"
        },
        "translated_port": {
          "type": "integer"
        }
      }
    },
    "disabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "tag": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "name"
  ]
}
