Maintenance And Upgrade
Manage scheduled maintenance and version upgrades for a service. View and set maintenance windows, list maintenance activities, apply or schedule (reschedule) them, and trigger database and Kubernetes version upgrades.
Retrieve a list of available maintenance windows
Location name to filter maintenance windows (e.g. Americas, EMEA, APAC)
Cloud region name to filter maintenance windows by its location (e.g. us-east-1, europe-west2)
OK
Unauthorized
Internal Server Error
GET /provisioning/v1/maintenance-windows HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"display_name": "text",
"id": "text",
"name": "text"
}
]Set the maintenance window the service.
The ID for the service.
OK
No content
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /provisioning/v1/services/{service_id}/maintenance-window HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}No content
Retrieve the list of maintenance activities for a specific service.
The ID for the service.
Include completed/failed/cancelled activities (default: true)
OK
ExpectedImpactLabel / ExpectedImpactDescription are the backend-owned display strings for ExpectedImpact — the UI renders them verbatim instead of mapping the enum itself.
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /provisioning/v1/services/{service_id}/maintenance HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"auto_apply_after": "text",
"classification": "infrastructure",
"completed_at": "text",
"created_by": "text",
"created_on": "text",
"current_version": "text",
"deferral_count": 1,
"deferred_until": "text",
"description": "text",
"expected_impact": "no_downtime",
"expected_impact_description": "text",
"expected_impact_label": "text",
"forced_apply_by": "text",
"id": "text",
"is_critical": true,
"metadata": {},
"priority": "recommended",
"reschedule_count": 1,
"scheduled_at": "text",
"scheduled_window": "text",
"service_id": "text",
"started_at": "text",
"state": "available",
"target_completion_date": "text",
"target_version": "text",
"updated_on": "text"
}
]Immediately execute maintenance activities for a service. If the request body contains an empty activity_ids array, all active activities are applied. Activities are executed sequentially (infrastructure first, then security, then database). If the service is not ready, activities are rescheduled to the next maintenance window.
The ID for the service.
OK
ExpectedImpactLabel / ExpectedImpactDescription are the backend-owned display strings for ExpectedImpact — the UI renders them verbatim instead of mapping the enum itself.
Bad Request
Not Found
Internal Server Error
POST /provisioning/v1/services/{service_id}/maintenance/apply HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
][
{
"auto_apply_after": "text",
"classification": "infrastructure",
"completed_at": "text",
"created_by": "text",
"created_on": "text",
"current_version": "text",
"deferral_count": 1,
"deferred_until": "text",
"description": "text",
"expected_impact": "no_downtime",
"expected_impact_description": "text",
"expected_impact_label": "text",
"forced_apply_by": "text",
"id": "text",
"is_critical": true,
"metadata": {},
"priority": "recommended",
"reschedule_count": 1,
"scheduled_at": "text",
"scheduled_window": "text",
"service_id": "text",
"started_at": "text",
"state": "available",
"target_completion_date": "text",
"target_version": "text",
"updated_on": "text"
}
]Schedule maintenance activities for a service at a specific maintenance window. If the request body contains an empty activity_ids array, all active activities are scheduled. Also serves as reschedule/defer: a previously scheduled activity can be moved to a different window. Rejected if any active activity for the service is past its forced_apply_by deadline.
The ID for the service.
OK
ExpectedImpactLabel / ExpectedImpactDescription are the backend-owned display strings for ExpectedImpact — the UI renders them verbatim instead of mapping the enum itself.
Bad Request
Not Found
Internal Server Error
POST /provisioning/v1/services/{service_id}/maintenance/schedule HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"activity_ids": [
"text"
],
"name": "text"
}[
{
"auto_apply_after": "text",
"classification": "infrastructure",
"completed_at": "text",
"created_by": "text",
"created_on": "text",
"current_version": "text",
"deferral_count": 1,
"deferred_until": "text",
"description": "text",
"expected_impact": "no_downtime",
"expected_impact_description": "text",
"expected_impact_label": "text",
"forced_apply_by": "text",
"id": "text",
"is_critical": true,
"metadata": {},
"priority": "recommended",
"reschedule_count": 1,
"scheduled_at": "text",
"scheduled_window": "text",
"service_id": "text",
"started_at": "text",
"state": "available",
"target_completion_date": "text",
"target_version": "text",
"updated_on": "text"
}
]Upgrade Database Version
service id
No Content
No content
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /provisioning/v1/services/{service_id}/upgrade/database HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"version": "text"
}No content
Upgrade Kubernetes Version
service id
No Content
No content
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /provisioning/v1/services/{service_id}/upgrade/kubernetes_version HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?

