{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-cloud-insights-integrations-api-azure-integration-policy-setting-schema.json",
  "title": "Cloud_Insights_Integrations_API_AzureIntegrationPolicySetting",
  "description": "Azure integration policy configuration that defines the monitored Azure resource groups and the subscription policy that ThousandEyes enforces.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-cloud-insights-integration-policy-settings-api-openapi.yml#/components/schemas/Cloud_Insights_Integrations_API_AzureIntegrationPolicySetting",
  "type": "object",
  "required": [
    "enabledResourceGroupTypes",
    "subscriptionsPolicy"
  ],
  "properties": {
    "enabledResourceGroupTypes": {
      "type": "array",
      "description": "The set of Azure resource group types included in inventory monitoring.",
      "items": {
        "$ref": "#/$defs/Cloud_Insights_Integrations_API_AzureResourceGroupType"
      }
    },
    "subscriptionsPolicy": {
      "$ref": "#/$defs/Cloud_Insights_Integrations_API_SubscriptionsPolicy"
    },
    "_links": {
      "$ref": "#/$defs/Cloud_Insights_Integrations_API_SelfLinks"
    }
  },
  "$defs": {
    "Cloud_Insights_Integrations_API_AzureResourceGroupType": {
      "type": "string",
      "description": "Supported Azure resource group types that can be toggled within policy settings. Note that networking is a mandatory resource group type and will be enabled regardless of user configuration.",
      "enum": [
        "afd",
        "security",
        "express-route",
        "virtual-wan",
        "traffic-manager",
        "networking"
      ]
    },
    "Cloud_Insights_Integrations_API_Link": {
      "type": "object",
      "description": "A hyperlink from the containing resource to a URI.",
      "required": [
        "href"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Its value is either a URI [RFC3986] or a URI template [RFC6570]."
        },
        "templated": {
          "type": "boolean",
          "description": "Should be true when the link object's \"href\" property is a URI template."
        },
        "type": {
          "type": "string",
          "description": "Used as a hint to indicate the media type expected when dereferencing the target resource."
        },
        "deprecation": {
          "type": "string",
          "description": "Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation."
        },
        "name": {
          "type": "string",
          "description": "Its value may be used as a secondary key for selecting link objects that share the same relation type."
        },
        "profile": {
          "type": "string",
          "description": "A URI that hints about the profile of the target resource."
        },
        "title": {
          "type": "string",
          "description": "Intended for labelling the link with a human-readable identifier"
        },
        "hreflang": {
          "type": "string",
          "description": "Indicates the language of the target resource"
        }
      }
    },
    "Cloud_Insights_Integrations_API_SelfLinks": {
      "type": "object",
      "description": "A links object containing the self link.",
      "readOnly": true,
      "properties": {
        "self": {
          "$ref": "#/$defs/Cloud_Insights_Integrations_API_Link"
        }
      }
    },
    "Cloud_Insights_Integrations_API_SubscriptionsPolicy": {
      "type": "object",
      "required": [
        "rules",
        "defaultAction"
      ],
      "description": "Policy document that controls which Azure subscriptions are inventoried. Up to 10 rules can be provided. Rules are evaluated in order; if none match, the defaultAction is applied.\n",
      "properties": {
        "rules": {
          "type": "array",
          "description": "Ordered list of subscription policy rules. Maximum of 10 entries.",
          "maxItems": 10,
          "items": {
            "$ref": "#/$defs/Cloud_Insights_Integrations_API_SubscriptionsPolicyRule"
          }
        },
        "defaultAction": {
          "$ref": "#/$defs/Cloud_Insights_Integrations_API_SubscriptionsPolicyRuleAction"
        }
      }
    },
    "Cloud_Insights_Integrations_API_SubscriptionsPolicyRule": {
      "type": "object",
      "required": [
        "field",
        "pattern",
        "action"
      ],
      "description": "A single subscription rule consisting of a field, pattern, and action.",
      "properties": {
        "field": {
          "$ref": "#/$defs/Cloud_Insights_Integrations_API_SubscriptionsPolicyRuleField"
        },
        "pattern": {
          "type": "string",
          "description": "String or regular expression used to match subscription identifiers or names."
        },
        "action": {
          "$ref": "#/$defs/Cloud_Insights_Integrations_API_SubscriptionsPolicyRuleAction"
        }
      }
    },
    "Cloud_Insights_Integrations_API_SubscriptionsPolicyRuleAction": {
      "type": "string",
      "description": "Action applied when a subscriptions policy rule matches.",
      "enum": [
        "include",
        "exclude"
      ]
    },
    "Cloud_Insights_Integrations_API_SubscriptionsPolicyRuleField": {
      "type": "string",
      "description": "Identifies whether the rule evaluates subscription IDs or subscription names.",
      "enum": [
        "subscription-id",
        "subscription-name"
      ]
    }
  }
}