{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-api-team-schema.json",
  "title": "ApiTeam",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-teams-api-openapi.yml#/components/schemas/ApiTeam",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 0
    },
    "info": {
      "$ref": "#/$defs/ApiTeamInfo"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiTeamMember"
      },
      "uniqueItems": true
    },
    "scope": {
      "$ref": "#/$defs/ApiTeamScope"
    },
    "tag": {
      "type": "string",
      "maxLength": 256,
      "minLength": 0
    }
  },
  "required": [
    "tag"
  ],
  "$defs": {
    "ApiRestrictedApplicationFilter": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "restrictingApplicationId": {
          "type": "string"
        },
        "scope": {
          "type": "string",
          "enum": [
            "INCLUDE_NO_DOWNSTREAM",
            "INCLUDE_IMMEDIATE_DOWNSTREAM_DATABASE_AND_MESSAGING",
            "INCLUDE_ALL_DOWNSTREAM"
          ]
        },
        "tagFilterExpression": {
          "$ref": "#/$defs/TagFilterExpressionElement"
        }
      }
    },
    "ApiTeamInfo": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "maxLength": 2048,
          "minLength": 0
        }
      }
    },
    "ApiTeamMember": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "roles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApiTeamRole"
          },
          "uniqueItems": true
        },
        "userId": {
          "type": "string"
        }
      },
      "required": [
        "userId"
      ]
    },
    "ApiTeamRole": {
      "type": "object",
      "properties": {
        "roleId": {
          "type": "string"
        },
        "roleName": {
          "type": "string"
        },
        "viaIdP": {
          "type": "boolean"
        }
      },
      "required": [
        "roleId"
      ]
    },
    "ApiTeamScope": {
      "type": "object",
      "properties": {
        "accessPermissions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "LIMITED_APPLICATIONS_SCOPE",
              "LIMITED_WEBSITES_SCOPE",
              "LIMITED_KUBERNETES_SCOPE",
              "LIMITED_MOBILE_APPS_SCOPE",
              "LIMITED_INFRASTRUCTURE_SCOPE",
              "LIMITED_SYNTHETICS_SCOPE",
              "LIMITED_BIZOPS_SCOPE",
              "LIMITED_GEN_AI_SCOPE",
              "LIMITED_AUTOMATION_SCOPE",
              "LIMITED_LOGS_SCOPE",
              "LIMITED_ALERT_CHANNELS_SCOPE",
              "LIMITED_VSPHERE_SCOPE",
              "LIMITED_PHMC_SCOPE",
              "LIMITED_POWERVC_SCOPE",
              "LIMITED_ZHMC_SCOPE",
              "LIMITED_PCF_SCOPE",
              "LIMITED_OPENSTACK_SCOPE",
              "LIMITED_SAP_SCOPE",
              "LIMITED_NUTANIX_SCOPE",
              "LIMITED_XENSERVER_SCOPE",
              "LIMITED_WINDOWS_HYPERVISOR_SCOPE",
              "LIMITED_LINUX_KVM_HYPERVISOR_SCOPE",
              "LIMITED_AI_GATEWAY_SCOPE",
              "LIMITED_SERVICE_LEVEL_SCOPE"
            ]
          },
          "uniqueItems": true
        },
        "actionFilter": {
          "type": "string"
        },
        "applications": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "businessPerspectives": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "infraDfqFilter": {
          "type": "string"
        },
        "kubernetesClusters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "kubernetesNamespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "logFilter": {
          "type": "string"
        },
        "mobileApps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "restrictedApplicationFilter": {
          "$ref": "#/$defs/ApiRestrictedApplicationFilter"
        },
        "sloIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "syntheticCredentials": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "syntheticTests": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "tagIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "websites": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        }
      }
    },
    "TagFilterExpressionElement": {
      "type": "object",
      "description": "Boolean expression of tag filters to define the scope of relevant calls.",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    }
  }
}