{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-connectivity-configuration-schema.json",
  "title": "ConnectivityConfiguration",
  "description": "The network manager connectivity configuration resource",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-connectivityconfigurations-api-openapi.yml#/components/schemas/ConnectivityConfiguration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ConnectivityConfigurationProperties",
      "description": "Properties of a network manager connectivity configuration",
      "x-ms-client-flatten": true
    },
    "systemData": {
      "$ref": "#/$defs/systemData",
      "description": "The system metadata related to this resource.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ChildResource"
    }
  ],
  "$defs": {
    "ChildResource": {
      "type": "object",
      "description": "Proxy resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "ConnectivityConfigurationProperties": {
      "type": "object",
      "description": "Properties of network manager connectivity configuration",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of the connectivity configuration."
        },
        "connectivityTopology": {
          "$ref": "#/$defs/ConnectivityTopology",
          "description": "Connectivity topology type."
        },
        "hubs": {
          "type": "array",
          "description": "List of hubItems",
          "items": {
            "$ref": "#/$defs/Hub"
          },
          "x-ms-identifiers": [
            "resourceId"
          ]
        },
        "isGlobal": {
          "$ref": "#/$defs/IsGlobal",
          "description": "Flag if global mesh is supported."
        },
        "connectivityCapabilities": {
          "$ref": "#/$defs/ConnectivityConfigurationPropertiesConnectivityCapabilities",
          "description": "Collection of additional settings to enhance specific topology behaviors of the connectivity configuration resource."
        },
        "appliesToGroups": {
          "type": "array",
          "description": "Groups for configuration",
          "items": {
            "$ref": "#/$defs/connectivityGroupItem"
          },
          "x-ms-identifiers": [
            "networkGroupId"
          ]
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the connectivity configuration resource.",
          "readOnly": true
        },
        "deleteExistingPeering": {
          "$ref": "#/$defs/DeleteExistingPeering",
          "description": "Flag if need to remove current existing peerings."
        },
        "resourceGuid": {
          "type": "string",
          "description": "Unique identifier for this resource.",
          "readOnly": true
        }
      },
      "required": [
        "connectivityTopology",
        "appliesToGroups"
      ]
    },
    "ConnectivityConfigurationPropertiesConnectivityCapabilities": {
      "type": "object",
      "description": "Collection of additional settings to enhance specific topology behaviors of the connectivity configuration resource.",
      "properties": {
        "connectedGroupPrivateEndpointsScale": {
          "type": "string",
          "description": "Option indicating the scale of private endpoints allowed in the connected group of the connectivity configuration.",
          "default": "Standard",
          "enum": [
            "Standard",
            "HighScale"
          ],
          "x-ms-enum": {
            "name": "ConnectedGroupPrivateEndpointsScale",
            "modelAsString": true,
            "values": [
              {
                "name": "Standard",
                "value": "Standard",
                "description": "Default. Allows for up to 2K private endpoints in the connected group."
              },
              {
                "name": "HighScale",
                "value": "HighScale",
                "description": "Allows for up to 20K private endpoints in the connected group."
              }
            ]
          }
        },
        "connectedGroupAddressOverlap": {
          "type": "string",
          "description": "Behavior to handle overlapped IP address space among members of the connected group of the connectivity configuration.",
          "default": "Allowed",
          "enum": [
            "Allowed",
            "Disallowed"
          ],
          "x-ms-enum": {
            "name": "ConnectedGroupAddressOverlap",
            "modelAsString": true,
            "values": [
              {
                "name": "Allowed",
                "value": "Allowed",
                "description": "Default. Allows connected group members to have overlapping IP address space."
              },
              {
                "name": "Disallowed",
                "value": "Disallowed",
                "description": "Strictly disallows connected group members from having overlapping IP address space. Prevents the addition of a virtual network with overlapping address to the connected group, blocks peering between a virtual network and a connected group member if any connected group member has an overlapping range, and restricts address space modifications that would introduce overlap."
              }
            ]
          }
        },
        "peeringEnforcement": {
          "type": "string",
          "description": "Option indicating enforcement of peerings created by the connectivity configuration.",
          "default": "Unenforced",
          "enum": [
            "Unenforced",
            "Enforced"
          ],
          "x-ms-enum": {
            "name": "PeeringEnforcement",
            "modelAsString": true,
            "values": [
              {
                "name": "Unenforced",
                "value": "Unenforced",
                "description": "Default. Peerings created by the connectivity configuration may be modified or deleted outside of the network manager."
              },
              {
                "name": "Enforced",
                "value": "Enforced",
                "description": "Peerings created by the connectivity configuration will not be modifiable or deletable outside of the network manager."
              }
            ]
          }
        }
      },
      "required": [
        "connectedGroupPrivateEndpointsScale",
        "connectedGroupAddressOverlap",
        "peeringEnforcement"
      ]
    },
    "ConnectivityTopology": {
      "type": "string",
      "description": "Connectivity topology type.",
      "enum": [
        "HubAndSpoke",
        "Mesh"
      ],
      "x-ms-enum": {
        "name": "ConnectivityTopology",
        "modelAsString": true,
        "values": [
          {
            "name": "HubAndSpoke",
            "value": "HubAndSpoke",
            "description": "HubAndSpoke"
          },
          {
            "name": "Mesh",
            "value": "Mesh",
            "description": "Mesh"
          }
        ]
      }
    },
    "DeleteExistingPeering": {
      "type": "string",
      "description": "Flag if need to remove current existing peerings.",
      "enum": [
        "False",
        "True"
      ],
      "x-ms-enum": {
        "name": "DeleteExistingPeering",
        "modelAsString": true,
        "values": [
          {
            "name": "False",
            "value": "False",
            "description": "False"
          },
          {
            "name": "True",
            "value": "True",
            "description": "True"
          }
        ]
      }
    },
    "GroupConnectivity": {
      "type": "string",
      "description": "Group connectivity type.",
      "enum": [
        "None",
        "DirectlyConnected"
      ],
      "x-ms-enum": {
        "name": "GroupConnectivity",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "DirectlyConnected",
            "value": "DirectlyConnected",
            "description": "DirectlyConnected"
          }
        ]
      }
    },
    "Hub": {
      "type": "object",
      "description": "Hub Item.",
      "properties": {
        "resourceId": {
          "type": "string",
          "description": "Resource Id."
        },
        "resourceType": {
          "type": "string",
          "description": "Resource Type."
        }
      }
    },
    "IsGlobal": {
      "type": "string",
      "description": "Flag if global mesh is supported.",
      "enum": [
        "False",
        "True"
      ],
      "x-ms-enum": {
        "name": "IsGlobal",
        "modelAsString": true,
        "values": [
          {
            "name": "False",
            "value": "False",
            "description": "False"
          },
          {
            "name": "True",
            "value": "True",
            "description": "True"
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "UseHubGateway": {
      "type": "string",
      "description": "Flag if need to use hub gateway.",
      "enum": [
        "False",
        "True"
      ],
      "x-ms-enum": {
        "name": "UseHubGateway",
        "modelAsString": true,
        "values": [
          {
            "name": "False",
            "value": "False",
            "description": "False"
          },
          {
            "name": "True",
            "value": "True",
            "description": "True"
          }
        ]
      }
    },
    "connectivityGroupItem": {
      "type": "object",
      "description": "Connectivity group item.",
      "properties": {
        "networkGroupId": {
          "type": "string",
          "description": "Network group Id."
        },
        "useHubGateway": {
          "$ref": "#/$defs/UseHubGateway",
          "description": "Flag if need to use hub gateway."
        },
        "isGlobal": {
          "$ref": "#/$defs/IsGlobal",
          "description": "Flag if global is supported."
        },
        "groupConnectivity": {
          "$ref": "#/$defs/GroupConnectivity",
          "description": "Group connectivity type."
        }
      },
      "required": [
        "networkGroupId",
        "groupConnectivity"
      ]
    },
    "systemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      },
      "readOnly": true
    }
  }
}