{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-network-security-perimeter-configuration-schema.json",
  "title": "NetworkSecurityPerimeterConfiguration",
  "description": "NSP Configuration for an Cognitive Services account.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-networksecurityperimeterconfigurations-api-openapi.yml#/components/schemas/NetworkSecurityPerimeterConfiguration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/NetworkSecurityPerimeterConfigurationProperties",
      "description": "NSP Configuration properties."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "NetworkSecurityPerimeter": {
      "type": "object",
      "description": "Information about a linked Network Security Perimeter",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified identifier of the resource"
        },
        "perimeterGuid": {
          "type": "string",
          "description": "Guid of the resource"
        },
        "location": {
          "type": "string",
          "description": "Location of the resource"
        }
      }
    },
    "NetworkSecurityPerimeterAccessRule": {
      "type": "object",
      "description": "Network Security Perimeter Access Rule",
      "properties": {
        "name": {
          "type": "string",
          "description": "Network Security Perimeter Access Rule Name"
        },
        "properties": {
          "$ref": "#/$defs/NetworkSecurityPerimeterAccessRuleProperties",
          "description": "Properties of Network Security Perimeter Access Rule"
        }
      }
    },
    "NetworkSecurityPerimeterAccessRuleProperties": {
      "type": "object",
      "description": "The Properties of Network Security Perimeter Rule",
      "properties": {
        "direction": {
          "$ref": "#/$defs/NspAccessRuleDirection",
          "description": "Direction of Access Rule"
        },
        "addressPrefixes": {
          "type": "array",
          "description": "Address prefixes for inbound rules",
          "items": {
            "type": "string"
          }
        },
        "subscriptions": {
          "type": "array",
          "description": "Subscriptions for inbound rules",
          "items": {
            "$ref": "#/$defs/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem"
          }
        },
        "networkSecurityPerimeters": {
          "type": "array",
          "description": "NetworkSecurityPerimeters for inbound rules",
          "items": {
            "$ref": "#/$defs/NetworkSecurityPerimeter"
          }
        },
        "fullyQualifiedDomainNames": {
          "type": "array",
          "description": "Fully qualified domain name for outbound rules",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem": {
      "type": "object",
      "description": "Subscription for inbound rule",
      "properties": {
        "id": {
          "type": "string",
          "description": "Fully qualified identifier of subscription"
        }
      }
    },
    "NetworkSecurityPerimeterConfigurationAssociationInfo": {
      "type": "object",
      "description": "Network Security Perimeter Configuration Association Information",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource association"
        },
        "accessMode": {
          "type": "string",
          "description": "Access Mode of the resource association"
        }
      }
    },
    "NetworkSecurityPerimeterConfigurationProperties": {
      "type": "object",
      "description": "The properties of an NSP Configuration.",
      "properties": {
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state of NetworkSecurityPerimeter configuration",
          "readOnly": true
        },
        "provisioningIssues": {
          "type": "array",
          "description": "List of Provisioning Issues",
          "items": {
            "$ref": "#/$defs/ProvisioningIssue"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "networkSecurityPerimeter": {
          "$ref": "#/$defs/NetworkSecurityPerimeter",
          "description": "Information about a linked Network Security Perimeter"
        },
        "resourceAssociation": {
          "$ref": "#/$defs/NetworkSecurityPerimeterConfigurationAssociationInfo",
          "description": "Network Security Perimeter Configuration Association Information"
        },
        "profile": {
          "$ref": "#/$defs/NetworkSecurityPerimeterProfileInfo",
          "description": "Network Security Perimeter Profile Information"
        }
      }
    },
    "NetworkSecurityPerimeterProfileInfo": {
      "type": "object",
      "description": "Network Security Perimeter Profile Information",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource profile"
        },
        "accessRulesVersion": {
          "type": "integer",
          "format": "int64",
          "description": "Access rules version of the resource profile"
        },
        "accessRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NetworkSecurityPerimeterAccessRule"
          },
          "x-ms-identifiers": []
        },
        "diagnosticSettingsVersion": {
          "type": "integer",
          "format": "int64",
          "description": "Current diagnostic settings version"
        },
        "enabledLogCategories": {
          "type": "array",
          "description": "List of enabled log categories",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "NspAccessRuleDirection": {
      "type": "string",
      "description": "Direction of Access Rule",
      "enum": [
        "Inbound",
        "Outbound"
      ],
      "x-ms-enum": {
        "name": "NspAccessRuleDirection",
        "modelAsString": true,
        "values": [
          {
            "name": "Inbound",
            "value": "Inbound"
          },
          {
            "name": "Outbound",
            "value": "Outbound"
          }
        ]
      }
    },
    "ProvisioningIssue": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the NSP provisioning issue"
        },
        "properties": {
          "$ref": "#/$defs/ProvisioningIssueProperties",
          "description": "Properties of Provisioning Issue"
        }
      }
    },
    "ProvisioningIssueProperties": {
      "type": "object",
      "description": "Properties of Provisioning Issue",
      "properties": {
        "issueType": {
          "type": "string",
          "description": "Type of Issue"
        },
        "severity": {
          "type": "string",
          "description": "Severity of the issue"
        },
        "description": {
          "type": "string",
          "description": "Description of the issue"
        },
        "suggestedResourceIds": {
          "type": "array",
          "description": "IDs of resources that can be associated to the same perimeter to remediate the issue.",
          "items": {
            "type": "string",
            "format": "arm-id",
            "description": "A type definition that refers the id to an Azure Resource Manager resource."
          }
        },
        "suggestedAccessRules": {
          "type": "array",
          "description": "Optional array, suggested access rules",
          "items": {
            "$ref": "#/$defs/NetworkSecurityPerimeterAccessRule"
          }
        }
      }
    }
  }
}