{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LinkedEnvironmentMetadata",
  "title": "LinkedEnvironmentMetadata",
  "type": [
    "object",
    "null"
  ],
  "description": "Metadata about the linked Dataverse instance.",
  "properties": {
    "resourceId": {
      "type": "string",
      "format": "uuid",
      "description": "The resource identifier of the Dataverse instance.",
      "example": "500123"
    },
    "friendlyName": {
      "type": "string",
      "description": "The friendly name of the Dataverse instance.",
      "example": "example_value"
    },
    "uniqueName": {
      "type": "string",
      "description": "The unique name identifier for the Dataverse organization.",
      "example": "example_value"
    },
    "domainName": {
      "type": "string",
      "description": "The domain name prefix for the Dataverse instance.",
      "example": "example_value"
    },
    "version": {
      "type": "string",
      "description": "The Dataverse platform version.",
      "examples": [
        "9.2.21013.00152"
      ]
    },
    "instanceUrl": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the Dataverse instance.",
      "example": "https://www.example.com"
    },
    "instanceApiUrl": {
      "type": "string",
      "format": "uri",
      "description": "The API URL for the Dataverse instance.",
      "example": "https://www.example.com"
    },
    "baseLanguage": {
      "type": "integer",
      "description": "The LCID of the base language for the Dataverse instance.",
      "examples": [
        1033
      ]
    },
    "instanceState": {
      "type": "string",
      "description": "The state of the Dataverse instance.",
      "enum": [
        "Ready",
        "NotReady",
        "Disabled"
      ],
      "example": "Ready"
    },
    "createdTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the Dataverse instance was created.",
      "example": "2026-01-15T10:30:00Z"
    },
    "backgroundOperationsState": {
      "type": "string",
      "description": "Whether background operations are enabled.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "example": "Enabled"
    },
    "scaleGroup": {
      "type": "string",
      "description": "The scale group identifier.",
      "example": "example_value"
    },
    "platformSku": {
      "type": "string",
      "description": "The platform SKU of the Dataverse instance.",
      "enum": [
        "Standard",
        "Premium"
      ],
      "example": "Standard"
    }
  }
}