{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-capability-list-schema.json",
  "title": "CapabilityList",
  "description": "List of capabilities for the Azure Database for PostgreSQL flexible server.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-servers-api-openapi.yml#/components/schemas/CapabilityList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Capability items on this page",
      "items": {
        "$ref": "#/$defs/Capability"
      },
      "readOnly": true,
      "x-ms-identifiers": [
        "name"
      ]
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "Capability": {
      "type": "object",
      "description": "Capability for the Azure Database for PostgreSQL flexible server.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of flexible servers capabilities."
        },
        "supportedServerEditions": {
          "type": "array",
          "description": "List of supported compute tiers.",
          "items": {
            "$ref": "#/$defs/ServerEditionCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "supportedServerVersions": {
          "type": "array",
          "description": "List of supported major versions of PostgreSQL database engine.",
          "items": {
            "$ref": "#/$defs/ServerVersionCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "supportedFeatures": {
          "type": "array",
          "description": "Features supported.",
          "items": {
            "$ref": "#/$defs/SupportedFeature"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "fastProvisioningSupported": {
          "$ref": "#/$defs/FastProvisioningSupport",
          "description": "Indicates if fast provisioning is supported. 'Enabled' means fast provisioning is supported. 'Disabled' stands for fast provisioning is not supported. Will be deprecated in the future. Look to Supported Features for 'FastProvisioning'.",
          "readOnly": true
        },
        "supportedFastProvisioningEditions": {
          "type": "array",
          "description": "List of compute tiers supporting fast provisioning.",
          "items": {
            "$ref": "#/$defs/FastProvisioningEditionCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "supportedSku"
          ]
        },
        "geoBackupSupported": {
          "$ref": "#/$defs/GeographicallyRedundantBackupSupport",
          "description": "Indicates if geographically redundant backups are supported in this location. 'Enabled' means geographically redundant backups are supported. 'Disabled' stands for geographically redundant backup is not supported. Will be deprecated in the future. Look to Supported Features for 'GeoBackup'.",
          "readOnly": true
        },
        "zoneRedundantHaSupported": {
          "$ref": "#/$defs/ZoneRedundantHighAvailabilitySupport",
          "description": "Indicates if high availability with zone redundancy is supported in this location. 'Enabled' means high availability with zone redundancy is supported. 'Disabled' stands for high availability with zone redundancy is not supported. Will be deprecated in the future. Look to Supported Features for  'ZoneRedundantHa'.",
          "readOnly": true
        },
        "zoneRedundantHaAndGeoBackupSupported": {
          "$ref": "#/$defs/ZoneRedundantHighAvailabilityAndGeographicallyRedundantBackupSupport",
          "description": "Indicates if high availability with zone redundancy is supported in conjunction with geographically redundant backups in this location. 'Enabled' means high availability with zone redundancy is supported in conjunction with geographically redundant backups is supported. 'Disabled' stands for high availability with zone redundancy is supported in conjunction with geographically redundant backups is not supported. Will be deprecated in the future. Look to Supported Features for 'ZoneRedundantHaAndGeoBackup'.",
          "readOnly": true
        },
        "storageAutoGrowthSupported": {
          "$ref": "#/$defs/StorageAutoGrowthSupport",
          "description": "Indicates if storage autogrow is supported in this location. 'Enabled' means storage autogrow is supported. 'Disabled' stands for storage autogrow is not supported. Will be deprecated in the future. Look to Supported Features for 'StorageAutoGrowth'.",
          "readOnly": true
        },
        "onlineResizeSupported": {
          "$ref": "#/$defs/OnlineStorageResizeSupport",
          "description": "Indicates if resizing the storage, without interrupting the operation of the database engine, is supported in this location for the given subscription. 'Enabled' means resizing the storage without interrupting the operation of the database engine is supported. 'Disabled' means resizing the storage without interrupting the operation of the database engine is not supported. Will be deprecated in the future. Look to Supported Features for 'OnlineResize'.",
          "readOnly": true
        },
        "restricted": {
          "$ref": "#/$defs/LocationRestricted",
          "description": "Indicates if this location is restricted. 'Enabled' means location is restricted. 'Disabled' stands for location is not restricted. Will be deprecated in the future. Look to Supported Features for 'Restricted'.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "CapabilityBase": {
      "type": "object",
      "description": "Base object for representing capability",
      "properties": {
        "status": {
          "$ref": "#/$defs/CapabilityStatus",
          "description": "Status of the capability.",
          "readOnly": true
        },
        "reason": {
          "type": "string",
          "description": "Reason for the capability not being available.",
          "readOnly": true
        }
      }
    },
    "CapabilityStatus": {
      "type": "string",
      "description": "Status of the capability.",
      "enum": [
        "Visible",
        "Available",
        "Default",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "CapabilityStatus",
        "modelAsString": false
      }
    },
    "FastProvisioningEditionCapability": {
      "type": "object",
      "description": "Capability of a fast provisioning compute tier.",
      "properties": {
        "supportedTier": {
          "type": "string",
          "description": "Compute tier supporting fast provisioning.",
          "readOnly": true
        },
        "supportedSku": {
          "type": "string",
          "description": "Compute name (SKU) supporting fast provisioning.",
          "readOnly": true
        },
        "supportedStorageGb": {
          "type": "integer",
          "format": "int32",
          "description": "Storage size (in GB) supporting fast provisioning.",
          "readOnly": true
        },
        "supportedServerVersions": {
          "type": "string",
          "description": "Major version of PostgreSQL database engine supporting fast provisioning.",
          "readOnly": true
        },
        "serverCount": {
          "type": "integer",
          "format": "int32",
          "description": "Count of servers in cache matching this specification.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "FastProvisioningSupport": {
      "type": "string",
      "description": "Indicates if fast provisioning is supported. 'Enabled' means fast provisioning is supported. 'Disabled' stands for fast provisioning is not supported. Will be deprecated in the future. Look to Supported Features for 'FastProvisioning'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "FastProvisioningSupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Fast provisioning is supported."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Fast provisioning is not supported."
          }
        ]
      }
    },
    "FeatureStatus": {
      "type": "string",
      "description": "Status of the feature. Indicates if the feature is enabled or not.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "FeatureStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Feature is enabled."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Feature is disabled."
          }
        ]
      }
    },
    "GeographicallyRedundantBackupSupport": {
      "type": "string",
      "description": "Indicates if geographically redundant backups are supported in this location. Will be deprecated in the future. Look to Supported Features for 'GeoBackup'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "GeographicallyRedundantBackupSupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Geographically redundant backups are supported in this location."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Geographically redundant backups are not supported in this location."
          }
        ]
      }
    },
    "HighAvailabilityMode": {
      "type": "string",
      "description": "Mode of high availability supported for this compute.",
      "enum": [
        "ZoneRedundant",
        "SameZone"
      ],
      "x-ms-enum": {
        "name": "HighAvailabilityMode",
        "modelAsString": true,
        "values": [
          {
            "name": "ZoneRedundant",
            "value": "ZoneRedundant",
            "description": "High availability is supported for this compute, with standby server in a different availability zone than that of the primary."
          },
          {
            "name": "SameZone",
            "value": "SameZone",
            "description": "High availability is supported for this compute, with standby server in the same availability zone as the primary."
          }
        ]
      }
    },
    "LocationRestricted": {
      "type": "string",
      "description": "Indicates if this location is restricted. Will be deprecated in the future. Look to Supported Features for 'Restricted'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "LocationRestricted",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Location is restricted."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Location is not restricted."
          }
        ]
      }
    },
    "OnlineStorageResizeSupport": {
      "type": "string",
      "description": "Indicates if resizing the storage, without interrupting the operation of the database engine, is supported in this location for the given subscription. Will be deprecated in the future. Look to Supported Features for 'OnlineResize'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "OnlineStorageResizeSupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Resizing the storage without interrupting the operation of the database engine is supported."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Resizing the storage without interrupting the operation of the database engine is not supported."
          }
        ]
      }
    },
    "ServerEditionCapability": {
      "type": "object",
      "description": "Capabilities in terms of compute tier.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of compute tier.",
          "readOnly": true
        },
        "defaultSkuName": {
          "type": "string",
          "description": "Default compute name (SKU) for this computer tier.",
          "readOnly": true
        },
        "supportedStorageEditions": {
          "type": "array",
          "description": "List of storage editions supported by this compute tier and compute name.",
          "items": {
            "$ref": "#/$defs/StorageEditionCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "supportedServerSkus": {
          "type": "array",
          "description": "List of supported compute names (SKUs).",
          "items": {
            "$ref": "#/$defs/ServerSkuCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "ServerSkuCapability": {
      "type": "object",
      "description": "Capabilities in terms of compute.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the compute (SKU).",
          "readOnly": true
        },
        "vCores": {
          "type": "integer",
          "format": "int32",
          "description": "vCores available for this compute.",
          "readOnly": true
        },
        "supportedIops": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum IOPS supported by this compute.",
          "readOnly": true
        },
        "supportedMemoryPerVcoreMb": {
          "type": "integer",
          "format": "int64",
          "description": "Supported memory (in MB) per virtual core assigned to this compute.",
          "readOnly": true
        },
        "supportedZones": {
          "type": "array",
          "description": "List of supported availability zones. E.g. '1', '2', '3'",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "supportedHaMode": {
          "type": "array",
          "description": "Modes of high availability supported for this compute.",
          "items": {
            "$ref": "#/$defs/HighAvailabilityMode"
          },
          "readOnly": true
        },
        "supportedFeatures": {
          "type": "array",
          "description": "Features supported.",
          "items": {
            "$ref": "#/$defs/SupportedFeature"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "securityProfile": {
          "type": "string",
          "description": "Security profile of the compute. Indicates if it's a Confidential Compute virtual machine.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "ServerVersionCapability": {
      "type": "object",
      "description": "Capabilities in terms of major versions of PostgreSQL database engine.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Major version of PostgreSQL database engine.",
          "readOnly": true
        },
        "supportedVersionsToUpgrade": {
          "type": "array",
          "description": "Major versions of PostgreSQL database engine to which this version can be automatically upgraded.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "supportedFeatures": {
          "type": "array",
          "description": "Features supported.",
          "items": {
            "$ref": "#/$defs/SupportedFeature"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "StorageAutoGrowthSupport": {
      "type": "string",
      "description": "Indicates if storage autogrow is supported in this location. Will be deprecated in the future. Look to Supported Features for 'StorageAutoGrowth'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "StorageAutoGrowthSupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "Storage autogrow is supported."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "Storage autogrow is not supported."
          }
        ]
      }
    },
    "StorageEditionCapability": {
      "type": "object",
      "description": "Capabilities in terms of storage tier.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of storage tier.",
          "readOnly": true
        },
        "defaultStorageSizeMb": {
          "type": "integer",
          "format": "int64",
          "description": "Default storage size (in MB) for this storage tier.",
          "readOnly": true
        },
        "supportedStorageMb": {
          "type": "array",
          "description": "Configurations of storage supported for this storage tier.",
          "items": {
            "$ref": "#/$defs/StorageMbCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "storageSizeMb"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "StorageMbCapability": {
      "type": "object",
      "description": "Storage size (in MB) capability.",
      "properties": {
        "supportedIops": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum IOPS supported by the storage size.",
          "readOnly": true
        },
        "supportedMaximumIops": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum IOPS supported by the storage size.",
          "readOnly": true
        },
        "storageSizeMb": {
          "type": "integer",
          "format": "int64",
          "description": "Minimum supported size (in MB) of storage.",
          "readOnly": true
        },
        "maximumStorageSizeMb": {
          "type": "integer",
          "format": "int64",
          "description": "Maximum supported size (in MB) of storage.",
          "readOnly": true
        },
        "supportedThroughput": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum supported throughput (in MB/s) of storage.",
          "readOnly": true
        },
        "supportedMaximumThroughput": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum supported throughput (in MB/s) of storage.",
          "readOnly": true
        },
        "defaultIopsTier": {
          "type": "string",
          "description": "Default IOPS for this tier and storage size.",
          "readOnly": true
        },
        "supportedIopsTiers": {
          "type": "array",
          "description": "List of all supported storage tiers for this tier and storage size.",
          "items": {
            "$ref": "#/$defs/StorageTierCapability"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "StorageTierCapability": {
      "type": "object",
      "description": "Capability of a storage tier.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the storage tier.",
          "readOnly": true
        },
        "iops": {
          "type": "integer",
          "format": "int32",
          "description": "Supported IOPS for the storage tier.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/CapabilityBase"
        }
      ]
    },
    "SupportedFeature": {
      "type": "object",
      "description": "Features supported.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the feature.",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/FeatureStatus",
          "description": "Status of the feature. Indicates if the feature is enabled or not.",
          "readOnly": true
        }
      }
    },
    "ZoneRedundantHighAvailabilityAndGeographicallyRedundantBackupSupport": {
      "type": "string",
      "description": "Indicates if high availability with zone redundancy is supported in conjunction with geographically redundant backups in this location. Will be deprecated in the future. Look to Supported Features for 'ZoneRedundantHaAndGeoBackup'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "ZoneRedundantHighAvailabilityAndGeographicallyRedundantBackupSupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "High availability with zone redundancy is supported in conjunction with geographically redundant backups."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "High availability with zone redundancy is not supported in conjunction with geographically redundant backups."
          }
        ]
      }
    },
    "ZoneRedundantHighAvailabilitySupport": {
      "type": "string",
      "description": "Indicates if high availability with zone redundancy is supported in this location. Will be deprecated in the future. Look to Supported Features for  'ZoneRedundantHa'.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "ZoneRedundantHighAvailabilitySupport",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled",
            "description": "High availability with zone redundancy is supported."
          },
          {
            "name": "Disabled",
            "value": "Disabled",
            "description": "High availability with zone redundancy is not supported."
          }
        ]
      }
    }
  }
}