Azure Database for PostgreSQL Maintenance Events API
The MaintenanceEvents API from Azure Database for PostgreSQL — 4 operation(s) for maintenanceevents.
The MaintenanceEvents API from Azure Database for PostgreSQL — 4 operation(s) for maintenanceevents.
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-maintenanceevents-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 Maintenance Events 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: MaintenanceEvents
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceEvents
: get:
operationId: MaintenanceEvents_List
tags:
- MaintenanceEvents
description: Lists all maintenance events for a flexible server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: maintenanceStatus
in: query
description: Filter maintenance events by status.
required: false
x-ms-enum:
name: MaintenanceEventStatusFilter
modelAsString: true
values:
- name: Upcoming
value: Upcoming
description: Return events that have a scheduled or in progress status.
- name: Past
value: Past
description: Return events that have a completed status.
schema:
type: string
enum:
- Upcoming
- Past
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/MaintenanceEventResourceListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Maintenance events list
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceEvents/{maintenanceEventId}
: get:
operationId: MaintenanceEvents_Get
tags:
- MaintenanceEvents
description: Gets information about a maintenance event for a flexible server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: maintenanceEventId
in: path
description: The name of the MaintenanceEventResource
required: true
schema:
type: string
pattern: ^[A-Z0-9]{4}-[A-Z0-9]{3}$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/MaintenanceEventResource'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Maintenance events get
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceEvents/{maintenanceEventId}/applyNow
: post:
operationId: MaintenanceEvents_ApplyNow
tags:
- MaintenanceEvents
description: Applies the maintenance event immediately.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: maintenanceEventId
in: path
description: The name of the MaintenanceEventResource
required: true
schema:
type: string
pattern: ^[A-Z0-9]{4}-[A-Z0-9]{3}$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/MaintenanceEventActionResponse'
'202':
description: Resource operation accepted.
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
format: uri
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/MaintenanceEventActionResponse'
x-ms-long-running-operation: true
summary: Maintenance events apply now
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/maintenanceEvents/{maintenanceEventId}/reschedule
: post:
operationId: MaintenanceEvents_Reschedule
tags:
- MaintenanceEvents
description: Reschedules a maintenance event to a new date and time.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 3
pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*
- name: maintenanceEventId
in: path
description: The name of the MaintenanceEventResource
required: true
schema:
type: string
pattern: ^[A-Z0-9]{4}-[A-Z0-9]{3}$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/MaintenanceEventActionResponse'
'202':
description: Resource operation accepted.
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
format: uri
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/MaintenanceEventActionResponse'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MaintenanceEventRescheduleRequest'
description: The content of the action request
required: true
summary: Maintenance events reschedule
x-summary-source: derived
components:
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
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
schemas:
MaintenanceType:
type: string
description: Type of a maintenance event resource.
enum:
- PlannedMaintenance
x-ms-enum:
name: MaintenanceType
modelAsString: true
values:
- name: PlannedMaintenance
value: PlannedMaintenance
description: Planned maintenance event.
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
MaintenanceEventResource:
type: object
description: Maintenance event resource for a PostgreSQL flexible server.
properties:
properties:
$ref: '#/components/schemas/MaintenanceEventResourceProperties'
description: The resource-specific properties for this resource.
allOf:
- $ref: '#/components/schemas/ProxyResource'
MaintenanceEventStatus:
type: string
description: The status of a maintenance event.
enum:
- Planned
- InProgress
- Complete
- Rescheduled
- Canceled
x-ms-enum:
name: MaintenanceEventStatus
modelAsString: true
values:
- name: Planned
value: Planned
description: The maintenance event is scheduled and has not yet started.
- name: InProgress
value: InProgress
description: The maintenance event is currently in progress.
- name: Complete
value: Complete
description: The maintenance event has completed successfully.
- name: Rescheduled
value: Rescheduled
description: The maintenance event has been rescheduled (postponed) by the customer.
- name: Canceled
value: Canceled
description: The maintenance event was canceled, failed, or timed out.
MaintenanceEventResourceListResult:
type: object
description: The response of a MaintenanceEventResource list operation.
properties:
value:
type: array
description: The MaintenanceEventResource items on this page
items:
$ref: '#/components/schemas/MaintenanceEventResource'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
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.
MaintenanceEventActionResponse:
type: object
description: Response model for maintenance event reschedule and apply-now actions.
properties:
maintenanceEventId:
type: string
description: The maintenance event name (maintenance ID).
serverId:
type: string
format: arm-id
description: The full Azure resource ID of the server.
status:
$ref: '#/components/schemas/MaintenanceEventStatus'
description: The status of the maintenance event.
plannedStartTime:
type: string
format: date-time
description: The planned start time of the maintenance event (UTC).
plannedEndTime:
type: string
format: date-time
description: The planned end time of the maintenance event (UTC).
appliedNow:
type: boolean
description: A value indicating whether this was an apply-now (immediate) action. True for ApplyNow; false for Reschedule.
lastUpdatedTime:
type: string
format: date-time
description: The time this maintenance event record was last updated (UTC).
ProxyResource:
type: object
title: Proxy Resource
description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
allOf:
- $ref: '#/components/schemas/Resource'
MaintenanceEventRescheduleRequest:
type: object
description: Parameters to reschedule a maintenance event.
properties:
postponeToDateTime:
type: string
format: date-time
description: New start time in RFC3339 format.
required:
- postponeToDateTime
MaintenanceEventResourceProperties:
type: object
description: Properties of a maintenance event resource.
properties:
maintenanceEventId:
type: string
description: A service-generated identifier for this maintenance event, assigned by the platform (e.g., 'YL1T-HFG'). The format is not contractual and clients should not attempt to parse or construct this value.
readOnly: true
maintenanceType:
$ref: '#/components/schemas/MaintenanceType'
description: The maintenance type (e.g., 'PlannedMaintenance').
readOnly: true
description:
type: string
description: The human-readable description of the maintenance event.
readOnly: true
status:
$ref: '#/components/schemas/MaintenanceEventStatus'
description: The customer-facing status of the maintenance event.
readOnly: true
startTime:
type: string
format: date-time
description: The scheduled start time of the maintenance event (UTC).
readOnly: true
endTime:
type: string
format: date-time
description: The scheduled end time of the maintenance event (UTC).
readOnly: true
estimatedDowntime:
type: string
description: The estimated downtime as an ISO 8601 duration string (e.g., 'PT60S' = 60 seconds).
readOnly: true
deferrable:
type: boolean
description: A value indicating whether this maintenance event can be rescheduled by the customer.
readOnly: true
deferralDeadline:
type: string
format: date-time
description: The latest date/time this maintenance event can be postponed to (UTC). Present only when deferrable is true.
readOnly: true
rescheduledFrom:
type: string
format: date-time
description: The previous scheduled start time before the most recent reschedule (UTC). Null if the event has never been rescheduled.
readOnly: true
lastUpdatedTime:
type: string
format: date-time
description: The time this maintenance event record was last updated (UTC).
readOnly: true
originalStartTime:
type: string
format: date-time
description: The initial scheduled start time before any reschedule (UTC). Equals startTime when the event has never been rescheduled.
readOnly: true
required:
- maintenanceType
- status
- startTime
- endTime
- deferrable
- originalStartTime
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.