Azure Database for PostgreSQL Subscriptions API
The Subscriptions API from Azure Database for PostgreSQL — 5 operation(s) for subscriptions.
The Subscriptions API from Azure Database for PostgreSQL — 5 operation(s) for subscriptions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure-postgresql:microsoft-azure-postgresql-subscriptions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PostgreSQLManagementClient Subscriptions API
version: '2026-10-01'
description: The Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, network configuration, security alert policies, log files and configurations with new business model.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: Subscriptions
paths:
/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability:
post:
operationId: NameAvailability_CheckGlobally
description: Checks the validity and availability of the given name, to assign it to a new server or to use it as the base name of a new pair of virtual endpoints.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NameAvailabilityModel'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CheckNameAvailabilityRequest'
description: The request body
required: true
tags:
- Subscriptions
summary: Name availability check globally
x-summary-source: derived
/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities:
get:
operationId: CapabilitiesByLocation_List
description: Lists the capabilities available in a given location for a specific subscription.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: locationName
in: path
description: The name of the location.
required: true
schema:
type: string
minLength: 1
pattern: ^[-\w\._]+$
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/CapabilityList'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
tags:
- Subscriptions
summary: Capabilities by location list
x-summary-source: derived
/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkNameAvailability:
post:
operationId: NameAvailability_CheckWithLocation
description: Check the availability of name for resource
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: locationName
in: path
description: The name of the location.
required: true
schema:
type: string
minLength: 1
pattern: ^[-\w\._]+$
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NameAvailabilityModel'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CheckNameAvailabilityRequest'
description: The request body
required: true
tags:
- Subscriptions
summary: Name availability check with location
x-summary-source: derived
? /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage
: post:
operationId: VirtualNetworkSubnetUsage_List
description: Lists the virtual network subnet usage for a given virtual network.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: locationName
in: path
description: The name of the location.
required: true
schema:
type: string
minLength: 1
pattern: ^[-\w\._]+$
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/VirtualNetworkSubnetUsageModel'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VirtualNetworkSubnetUsageParameter'
description: The request body
required: true
tags:
- Subscriptions
summary: Virtual network subnet usage list
x-summary-source: derived
? /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/resourceType/flexibleServers/usages
: get:
operationId: QuotaUsages_List
description: Get quota usages at specified location in a given subscription.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- name: locationName
in: path
description: The name of the location.
required: true
schema:
type: string
minLength: 1
pattern: ^[-\w\._]+$
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/QuotaUsageList'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
tags:
- Subscriptions
summary: Quota usages list
x-summary-source: derived
components:
schemas:
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.
NameAvailabilityModel:
type: object
description: Availability of a name.
properties:
name:
type: string
description: Name for which validity and availability was checked.
readOnly: true
type:
type: string
description: Type of resource. It can be 'Microsoft.DBforPostgreSQL/flexibleServers' or 'Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints'.
readOnly: true
allOf:
- $ref: '#/components/schemas/CheckNameAvailabilityResponse'
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.
QuotaUsageList:
type: object
description: Capability for the PostgreSQL server
properties:
value:
type: array
description: The QuotaUsage items on this page
items:
$ref: '#/components/schemas/QuotaUsage'
readOnly: true
x-ms-identifiers:
- name
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
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: '#/components/schemas/SupportedFeature'
readOnly: true
x-ms-identifiers:
- name
allOf:
- $ref: '#/components/schemas/CapabilityBase'
CapabilityList:
type: object
description: List of capabilities for the Azure Database for PostgreSQL flexible server.
properties:
value:
type: array
description: The Capability items on this page
items:
$ref: '#/components/schemas/Capability'
readOnly: true
x-ms-identifiers:
- name
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
CheckNameAvailabilityRequest:
type: object
description: The check availability request body.
properties:
name:
type: string
description: The name of the resource for which availability needs to be checked.
type:
type: string
description: The resource type.
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.
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: '#/components/schemas/StorageMbCapability'
readOnly: true
x-ms-identifiers:
- storageSizeMb
allOf:
- $ref: '#/components/schemas/CapabilityBase'
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: '#/components/schemas/CapabilityBase'
CapabilityBase:
type: object
description: Base object for representing capability
properties:
status:
$ref: '#/components/schemas/CapabilityStatus'
description: Status of the capability.
readOnly: true
reason:
type: string
description: Reason for the capability not being available.
readOnly: true
DelegatedSubnetUsage:
type: object
description: Delegated subnet usage data.
properties:
subnetName:
type: string
description: Name of the delegated subnet for which IP addresses are in use
readOnly: true
usage:
type: integer
format: int64
description: Number of IP addresses used by the delegated subnet
readOnly: true
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.
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: '#/components/schemas/StorageEditionCapability'
readOnly: true
x-ms-identifiers:
- name
supportedServerSkus:
type: array
description: List of supported compute names (SKUs).
items:
$ref: '#/components/schemas/ServerSkuCapability'
readOnly: true
x-ms-identifiers:
- name
allOf:
- $ref: '#/components/schemas/CapabilityBase'
VirtualNetworkSubnetUsageParameter:
type: object
description: Virtual network subnet usage parameter
properties:
virtualNetworkArmResourceId:
type: string
description: Virtual network resource id.
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.
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.
CapabilityStatus:
type: string
description: Status of the capability.
enum:
- Visible
- Available
- Default
- Disabled
x-ms-enum:
name: CapabilityStatus
modelAsString: false
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: '#/components/schemas/HighAvailabilityMode'
readOnly: true
supportedFeatures:
type: array
description: Features supported.
items:
$ref: '#/components/schemas/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: '#/components/schemas/CapabilityBase'
ErrorResponse:
type: object
title: Error response
description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
SupportedFeature:
type: object
description: Features supported.
properties:
name:
type: string
description: Name of the feature.
readOnly: true
status:
$ref: '#/components/schemas/FeatureStatus'
description: Status of the feature. Indicates if the feature is enabled or not.
readOnly: true
VirtualNetworkSubnetUsageModel:
type: object
description: Virtual network subnet usage data.
properties:
delegatedSubnetsUsage:
type: array
items:
$ref: '#/components/schemas/DelegatedSubnetUsage'
readOnly: true
x-ms-identifiers:
- subnetName
location:
type: string
description: location of the delegated subnet usage
readOnly: true
subscriptionId:
type: string
description: subscriptionId of the delegated subnet usage
readOnly: true
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.
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: '#/components/schemas/StorageTierCapability'
readOnly: true
x-ms-identifiers:
- name
allOf:
- $ref: '#/components/schemas/CapabilityBase'
CheckNameAvailabilityResponse:
type: object
description: The check availability result.
properties:
nameAvailable:
type: boolean
description: Indicates if the resource name is available.
reason:
type: string
description: The reason why the given name is not available.
enum:
- Invalid
- AlreadyExists
x-ms-enum:
name: CheckNameAvailabilityReason
modelAsString: true
message:
type: string
description: Detailed reason why the given name is available.
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: '#/components/schemas/CapabilityBase'
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.
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.
QuotaUsage:
type: object
description: Quota usage for servers
properties:
name:
$ref: '#/components/schemas/NameProperty'
description: Name of quota usage for servers
limit:
type: integer
format: int64
description: Quota limit
unit:
type: string
description: Quota unit
default: Count
currentValue:
type: integer
format: int64
description: Current Quota usage value
id:
type: string
description: Fully qualified ARM resource Id
NameProperty:
type: object
description: Name property for quota usage
properties:
value:
type: string
description: Name value
localizedValue:
type: string
description: Localized name
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: '#/components/schemas/ServerEditionCapability'
readOnly: true
x-ms-identifiers:
- name
supportedServerVersions:
type: array
description: List of supported major versions of PostgreSQL database engine.
items:
$ref: '#/components/schemas/ServerVersionCapability'
readOnly: true
x-ms-identifiers:
- name
supportedFeatures:
type: array
description: Features supported.
items:
$ref: '#/components/schemas/SupportedFeature'
readOnly: true
x-ms-identifiers:
- name
fastProvisioningSupported:
$ref: '#/components/schemas/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: '#/components/schemas/FastProvisioningEditionCapability'
readOnly: true
x-ms-identifiers:
- supportedSku
geoBackupSupported:
$ref: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/CapabilityBase'
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.