{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-extranets-b2b-post-request-schema.json",
  "title": "v1ExtranetsB2bPostRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-extranets-b2b-api-openapi.yml#/components/schemas/v1ExtranetsB2bPostRequest",
  "type": "object",
  "properties": {
    "policy": {
      "$ref": "#/$defs/manaV2B2bExtranetProducerPolicy"
    },
    "serviceName": {
      "type": "string",
      "description": "Name of the service (required)"
    },
    "type": {
      "type": "string",
      "description": "Type of the service whether it is application or peering (required)"
    }
  },
  "additionalProperties": false,
  "required": [
    "policy",
    "serviceName",
    "type"
  ],
  "$defs": {
    "manaV2ApplicationProfile": {
      "type": "object",
      "properties": {
        "portRange": {
          "type": "string",
          "description": "Port Range"
        },
        "ports": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32",
            "description": "Ports for the application profile (required)"
          }
        },
        "protocol": {
          "type": "integer",
          "format": "int32",
          "description": "Protocol for the application profile (required)"
        }
      },
      "additionalProperties": false,
      "required": [
        "ports",
        "protocol"
      ]
    },
    "manaV2B2bExtranetPrefixTag": {
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string",
          "description": "Prefix advertised by the service (required)"
        },
        "tag": {
          "type": "string",
          "description": "Tag for the prefix"
        }
      },
      "additionalProperties": false,
      "required": [
        "prefix"
      ]
    },
    "manaV2B2bExtranetProducerPolicy": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description for the service"
        },
        "globalObjectDeviceSummaries": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/manaV2GlobalObjectServiceSummaries"
          }
        },
        "globalObjectSummaries": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/manaV2GlobalObjectServiceSummaries"
          }
        },
        "natPools": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "NAT pools for the service (required)"
          }
        },
        "prefixTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2B2bExtranetPrefixTag"
          }
        },
        "profiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2ApplicationProfile"
          }
        },
        "serviceLanSegment": {
          "type": "integer",
          "format": "int64",
          "description": "LAN segment for the service (required)"
        },
        "servicePrefixes": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "Prefixes advertised by the service (required)"
          }
        },
        "sites": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2B2bSiteInformation"
          }
        },
        "sla": {
          "$ref": "#/$defs/manaV2SlaInformation"
        },
        "status": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Type of the service whether it is application or peering (required)"
        },
        "unmatchedCustomers": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        }
      },
      "additionalProperties": false,
      "required": [
        "natPools",
        "serviceLanSegment",
        "servicePrefixes",
        "sites",
        "type"
      ]
    },
    "manaV2B2bSiteInformation": {
      "type": "object",
      "properties": {
        "bwAllocationSiteLists": {
          "type": "integer",
          "format": "int32",
          "description": "Total Bandwidth allocation for the service on these site lists"
        },
        "bwAllocationSites": {
          "type": "integer",
          "format": "int32",
          "description": "Total Bandwidth allocation for the service on these sites"
        },
        "policerSiteLists": {
          "$ref": "#/$defs/manaV2Policer"
        },
        "policerSites": {
          "$ref": "#/$defs/manaV2Policer"
        },
        "siteLists": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64",
            "description": "Site list IDs where the service is deployed"
          }
        },
        "sites": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64",
            "description": "Site IDs where the service is deployed"
          }
        }
      },
      "additionalProperties": false
    },
    "manaV2GlobalObjectServiceSummaries": {
      "type": "object",
      "properties": {
        "routingPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2GlobalObjectSummary"
          }
        }
      },
      "additionalProperties": false
    },
    "manaV2GlobalObjectSummary": {
      "type": "object",
      "properties": {
        "attachPoint": {
          "type": "string"
        },
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "ipVersion": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "name": {
          "type": "string"
        },
        "numAttachedDevices": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numAttachedSites": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numFailures": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numInSyncDevices": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numOverrideDevices": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numPolicies": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numPrefixes": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numRules": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "numStatements": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "trafficPolicyType": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "manaV2Policer": {
      "type": "object",
      "properties": {
        "burstSize": {
          "type": "integer",
          "format": "int32",
          "description": "Burst size for the policer (required)"
        },
        "bw": {
          "type": "integer",
          "format": "int32",
          "description": "Bandwidth for the policer (required)"
        }
      },
      "additionalProperties": false,
      "required": [
        "burstSize",
        "bw"
      ]
    },
    "manaV2SlaInformation": {
      "type": "object",
      "properties": {
        "backupCircuit": {
          "type": "string",
          "description": "Backup circuit for the SLA information"
        },
        "class": {
          "type": "string",
          "description": "Class for the SLA information"
        },
        "primaryCircuit": {
          "type": "string",
          "description": "Primary circuit for the SLA information"
        }
      },
      "additionalProperties": false
    }
  }
}