{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-extranets-b2b-peering-consumer-match-id-post-request-schema.json",
  "title": "v1ExtranetsB2bPeeringConsumerMatchIdPostRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-extranets-b2b-peering-api-openapi.yml#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdPostRequest",
  "type": "object",
  "properties": {
    "customerId": {
      "type": "integer",
      "format": "int64"
    },
    "globalObjectOps": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/manaV2GlobalObjectServiceOps"
      }
    },
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "ID of the service which is being consumed by the customer (required)"
    },
    "nat": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/manaV2B2bNat"
      }
    },
    "policy": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy"
      }
    },
    "siteInformation": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/manaV2B2bSiteInformation"
      }
    },
    "siteToSiteVpn": {
      "$ref": "#/$defs/manaV2GuestConsumerSiteToSiteVpnConfig"
    }
  },
  "additionalProperties": false,
  "required": [
    "id",
    "nat",
    "policy",
    "siteInformation"
  ],
  "$defs": {
    "manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy": {
      "type": "object",
      "properties": {
        "consumerPrefixes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lanSegment": {
          "type": "integer",
          "format": "int64"
        }
      },
      "additionalProperties": false
    },
    "manaV2B2bNat": {
      "type": "object",
      "properties": {
        "outsideNatPrefix": {
          "type": "string",
          "description": "Outside NAT prefix for the customer prefix"
        },
        "prefix": {
          "type": "string",
          "description": "Prefix imported into the service (required)"
        }
      },
      "additionalProperties": false,
      "required": [
        "prefix"
      ]
    },
    "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
    },
    "manaV2BgpNeighborAddressFamilyConfig": {
      "type": "object",
      "properties": {
        "addressFamily": {
          "type": "string"
        },
        "inboundPolicy": {
          "$ref": "#/$defs/manaV2NullablePolicyName"
        },
        "outboundPolicy": {
          "$ref": "#/$defs/manaV2NullablePolicyName"
        }
      },
      "additionalProperties": false
    },
    "manaV2GlobalObjectServiceOps": {
      "type": "object",
      "properties": {
        "routingPolicyOps": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "manaV2GuestConsumerSiteToSiteVpnConfig": {
      "type": "object",
      "properties": {
        "emails": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ipsecGatewayDetails": {
          "$ref": "#/$defs/manaV2IPsecGatewayDetails"
        },
        "ipsecGatewayPeers": {
          "$ref": "#/$defs/manaV2IPsecGatewayPeersConfig"
        },
        "regionId": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecBgpRouteConfig": {
      "type": "object",
      "properties": {
        "addressFamilies": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/manaV2NullableBgpNeighborAddressFamilyConfig"
          }
        },
        "holdTimer": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "keepaliveTimer": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "md5Password": {
          "$ref": "#/$defs/manaV2NullableMd5Password"
        },
        "peerAsn": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "sendCommunity": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecGatewayDetails": {
      "type": "object",
      "properties": {
        "destinationAddress": {
          "type": "string"
        },
        "ikeInitiator": {
          "type": "boolean"
        },
        "mtu": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "name": {
          "type": "string"
        },
        "remoteIkePeerIdentity": {
          "type": "string"
        },
        "routing": {
          "$ref": "#/$defs/manaV2IpsecRoutingConfig"
        },
        "tcpMss": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "tunnel1": {
          "$ref": "#/$defs/manaV2IPsecGatewayTunnelDetails"
        },
        "tunnel2": {
          "$ref": "#/$defs/manaV2IPsecGatewayTunnelDetails"
        },
        "vpnProfile": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecGatewayPeersConfig": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the IPsec gateway service"
        },
        "remotePeers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/manaV2IPsecGatewayRemotePeer"
          }
        },
        "routing": {
          "$ref": "#/$defs/manaV2IpsecRoutingConfig"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecGatewayRemotePeer": {
      "type": "object",
      "properties": {
        "destinationAddress": {
          "type": "string"
        },
        "ikeInitiator": {
          "type": "boolean",
          "description": "When true, Graphiant initiates IKE for this peer"
        },
        "mtu": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "name": {
          "type": "string",
          "description": "Optional display name or label for this peer; used when generating tunnel names"
        },
        "remoteIkePeerIdentity": {
          "type": "string",
          "description": "IKE identity of the remote peer"
        },
        "tcpMss": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "tunnel1": {
          "$ref": "#/$defs/manaV2IPsecGatewayTunnelDetails"
        },
        "tunnel2": {
          "$ref": "#/$defs/manaV2IPsecGatewayTunnelDetails"
        },
        "vpnProfile": {
          "type": "string",
          "description": "Enterprise IPsec VPN profile name for this peer"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecGatewayTunnelDetails": {
      "type": "object",
      "properties": {
        "insideIpv4Cidr": {
          "type": "string"
        },
        "insideIpv6Cidr": {
          "type": "string"
        },
        "localIkePeerIdentity": {
          "type": "string"
        },
        "psk": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "manaV2IPsecStaticRouteConfig": {
      "type": "object",
      "properties": {
        "destinationPrefix": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "manaV2IpsecRoutingConfig": {
      "type": "object",
      "properties": {
        "bgp": {
          "$ref": "#/$defs/manaV2IPsecBgpRouteConfig"
        },
        "static": {
          "$ref": "#/$defs/manaV2IPsecStaticRouteConfig"
        }
      },
      "additionalProperties": false
    },
    "manaV2NullableBgpNeighborAddressFamilyConfig": {
      "type": "object",
      "properties": {
        "family": {
          "$ref": "#/$defs/manaV2BgpNeighborAddressFamilyConfig"
        }
      },
      "additionalProperties": false
    },
    "manaV2NullableMd5Password": {
      "type": "object",
      "properties": {
        "md5Password": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "manaV2NullablePolicyName": {
      "type": "object",
      "properties": {
        "policy": {
          "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"
      ]
    }
  }
}