{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-app-instance-info-schema.json",
  "title": "AppInstanceInfo",
  "description": "Information about the application instance.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-application-api-openapi.yml#/components/schemas/AppInstanceInfo",
  "type": "object",
  "properties": {
    "appInstanceId": {
      "$ref": "#/$defs/AppInstanceId"
    },
    "status": {
      "description": "Status of the application instance (default is 'unknown')",
      "type": "string",
      "enum": [
        "ready",
        "instantiating",
        "failed",
        "terminating",
        "unknown"
      ],
      "default": "unknown"
    },
    "componentEndpointInfo": {
      "description": "Information about the IP and Port exposed by the\nEdge Cloud Platform.\nApplication Client shall use these access points to reach this\napplication instance\n",
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "interfaceId",
          "accessPoints"
        ],
        "properties": {
          "interfaceId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_]{6,30}[A-Za-z0-9]$",
            "description": "This is the interface Identifier that Application Provider\ndefines when application is being submitted.\n"
          },
          "accessPoints": {
            "$ref": "#/$defs/AccessEndpoint"
          }
        }
      },
      "minItems": 1
    },
    "kubernetesClusterRef": {
      "$ref": "#/$defs/KubernetesClusterRef"
    },
    "edgeCloudZone": {
      "$ref": "#/$defs/EdgeCloudZone"
    }
  },
  "$defs": {
    "AccessEndpoint": {
      "type": "object",
      "description": "Application Endpoint for an especific instance that is\nrunning in an specific Edge Cloud Zone.\n",
      "required": [
        "port"
      ],
      "anyOf": [
        {
          "required": [
            "fqdn"
          ]
        },
        {
          "required": [
            "ipv4Addresses"
          ]
        },
        {
          "required": [
            "ipv6Addresses"
          ]
        }
      ],
      "properties": {
        "port": {
          "$ref": "#/$defs/Port"
        },
        "fqdn": {
          "$ref": "#/$defs/Fqdn"
        },
        "ipv4Addresses": {
          "description": "IP version 4 of an application instance",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Ipv4Addr"
          },
          "minItems": 1
        },
        "ipv6Addresses": {
          "description": "IP version 6 of an application instance.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Ipv6Addr"
          },
          "minItems": 1
        }
      }
    },
    "AppInstanceId": {
      "type": "string",
      "format": "uuid",
      "description": "A globally unique identifier associated with a running\ninstance of an application.\nEdge Cloud Platform generates this identifier when the\ninstantiation in the Edge Cloud Zone is successful.\n"
    },
    "EdgeCloudProvider": {
      "type": "string",
      "description": "Human readable name of the Edge Cloud Provider."
    },
    "EdgeCloudRegion": {
      "type": "string",
      "description": "Human readable name of the geographical Edge Cloud Region of\nthe Edge Cloud. Defined by the Edge Cloud Provider.\n"
    },
    "EdgeCloudZone": {
      "type": "object",
      "description": "An Edge Cloud Zone, uniquely identified by a\ncombination of the value of the Edge Cloud Zone Id object\nand the value of the Edge Cloud Provider\nobject. This value is used to identify an Edge Cloud zone\nbetween Edge Clouds from different Edge Cloud Providers.\n",
      "required": [
        "edgeCloudZoneId",
        "edgeCloudZoneName",
        "edgeCloudProvider"
      ],
      "properties": {
        "edgeCloudZoneId": {
          "$ref": "#/$defs/EdgeCloudZoneId"
        },
        "edgeCloudZoneName": {
          "$ref": "#/$defs/EdgeCloudZoneName"
        },
        "edgeCloudZoneStatus": {
          "$ref": "#/$defs/EdgeCloudZoneStatus"
        },
        "edgeCloudProvider": {
          "$ref": "#/$defs/EdgeCloudProvider"
        },
        "edgeCloudRegion": {
          "$ref": "#/$defs/EdgeCloudRegion"
        }
      },
      "minItems": 1
    },
    "EdgeCloudZoneId": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier created by the Edge Cloud Platform to identify an\nEdge Cloud Zone within an Edge Cloud.\n"
    },
    "EdgeCloudZoneName": {
      "type": "string",
      "description": "Human readable name of the geographical zone of\nthe Edge Cloud. Defined by the Edge Cloud Provider.\n"
    },
    "EdgeCloudZoneStatus": {
      "description": "Status of the Edge Cloud Zone (default is 'unknown')",
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "unknown"
      ],
      "default": "unknown"
    },
    "Fqdn": {
      "type": "string",
      "description": "Full qualified domain name of an application instance\n"
    },
    "Ipv4Addr": {
      "type": "string",
      "format": "ipv4",
      "description": "IP of the device. A single IPv4 address may be specified in\ndotted-quad form 1.2.3.4. Only this exact IP number will match the flow\ncontrol rule.\n"
    },
    "Ipv6Addr": {
      "type": "string",
      "format": "ipv6",
      "description": "IP of the device. A single IPv6 address, following IETF 5952\nformat, may be specified like 2001:db8:85a3:8d3:1319:8a2e:370:7344\n"
    },
    "KubernetesClusterRef": {
      "description": "A global unique identifier associated with a Kubernetes cluster\ninfrastructure.\n",
      "type": "string",
      "format": "uuid"
    },
    "Port": {
      "type": "integer",
      "description": "Port to stablish the connection",
      "minimum": 0
    }
  }
}