Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions api/machines/models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ Optional parameters

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `disk_size_gb` | `integer` | No | Disk size in gigabytes. |
| `disk_size_gb` | `integer` | No | Disk size in gigabytes. Defaults to the plan's starting size: 1 for dev-256 and 10 for the other plans. |
| `name` | `string` | No | Name for the cluster. A name is generated when omitted. |
| `org_slug` | `string` | Yes | Slug of the organization that will own the cluster, or "personal" for the caller's personal organization. |
| `pg_major_version` | `string` | No | Postgres major version. Enum: 16, 17 |
| `plan` | `string` | Yes | Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. Enum: basic, starter, launch, scale, Performance |
| `plan` | `string` | Yes | Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. Enum: dev-256, basic, starter, launch, scale, Performance |
| `pool_mode` | `string` | No | Connection pooler mode. Enum: session, transaction |
| `postgis_enabled` | `boolean` | No | Enable PostGIS support, required to later enable PostGIS extensions. |
| `region` | `string` | Yes | Fly region code where the cluster's primary runs. |
Expand Down Expand Up @@ -891,7 +891,7 @@ Enum: stop
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | No | Name for the forked cluster. Defaults to the source name with a -fork suffix. |
| `plan` | `string` | No | Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively. Enum: basic, starter, launch, scale, Performance |
| `plan` | `string` | No | Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively. Enum: dev-256, basic, starter, launch, scale, Performance |

## getPostgresUserCredentialsResponse

Expand Down Expand Up @@ -1394,7 +1394,7 @@ Type: `map<string, integer>`
| `name` | `string` | No | Cluster name. |
| `organization` | `OrganizationRef` | No | |
| `pg_major_version` | `string` | No | Postgres major version. Enum: 16, 17 |
| `plan` | `string` | No | Plan slug. Enum: basic, starter, launch, scale, Performance |
| `plan` | `string` | No | Plan slug. Enum: dev-256, basic, starter, launch, scale, Performance |
| `postgis_enabled` | `boolean` | No | Whether PostGIS support is enabled. |
| `region` | `string` | No | Fly region code. |
| `replicas` | `integer` | No | Number of replicas. |
Expand All @@ -1417,7 +1417,7 @@ Type: `map<string, integer>`
| `deleted_at` | `string` | No | RFC 3339 deletion timestamp; present for deleted clusters. |
| `id` | `string` | No | Cluster ID. |
| `name` | `string` | No | Cluster name. |
| `plan` | `string` | No | Plan slug. Enum: basic, starter, launch, scale, Performance |
| `plan` | `string` | No | Plan slug. Enum: dev-256, basic, starter, launch, scale, Performance |
| `region` | `string` | No | Fly region code. |
| `status` | `string` | No | Current lifecycle status. Enum: creating, initializing, ready, deleting, deleted, failed |

Expand Down Expand Up @@ -1488,7 +1488,7 @@ Type: `map<string, integer>`
| `cpus` | `integer` | No | vCPUs per node. |
| `memory_mb` | `integer` | No | Memory per node in megabytes. |
| `monthly_price_usd` | `integer` | No | Base monthly price in US dollars. |
| `plan` | `string` | No | Plan slug. Pass it as `plan` when creating or forking a cluster. Enum: basic, starter, launch, scale, Performance |
| `plan` | `string` | No | Plan slug. Pass it as `plan` when creating or forking a cluster. Enum: dev-256, basic, starter, launch, scale, Performance |

## PostgresQueryColumn

Expand Down Expand Up @@ -1649,7 +1649,7 @@ Enum: 1, 2, 4, 8, 16, 31, 0

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `PostgresMaintenanceWindow` | No | |
| `data` | `PostgresMaintenanceWindow` | No | The cluster's maintenance window, or null when it has none and its maintenance can run at any time. |

## SignalRequest

Expand Down
56 changes: 50 additions & 6 deletions api/machines/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5551,7 +5551,7 @@
"Postgres Clusters"
],
"summary": "Get Maintenance Window",
"description": "Get the weekly window in which a cluster may undergo maintenance. A cluster that never set one returns its region's default. Requires only read access to the organization.",
"description": "Get the weekly window in which a cluster may undergo maintenance. A cluster that never set one returns its region's default. Some clusters have no window: their maintenance can run at any time, and `data` is null. Requires only read access to the organization.",
"operationId": "Postgres_maintenance_window_show",
"parameters": [
{
Expand Down Expand Up @@ -5602,7 +5602,7 @@
"Postgres Clusters"
],
"summary": "Update Maintenance Window",
"description": "Update a cluster's weekly maintenance window. Give at least one of `day`, `start_hour` and `duration_hours`; omitted fields keep their current value. `start_hour` is in the cluster's timezone, which is derived from its region and cannot be changed. Changes are accepted only while the cluster is ready and no maintenance is running.",
"description": "Update a cluster's weekly maintenance window. Give at least one of `day`, `start_hour` and `duration_hours`; omitted fields keep their current value. `start_hour` is in the cluster's timezone, which is derived from its region and cannot be changed. Changes are accepted only while the cluster is ready and no maintenance is running. A cluster with no window, whose maintenance can run at any time, can't be given one: the request fails with 422. A successful update always returns a window in `data`.",
"operationId": "Postgres_maintenance_window_update",
"parameters": [
{
Expand Down Expand Up @@ -5678,7 +5678,7 @@
}
},
"422": {
"description": "No fields given, or a value is invalid",
"description": "No fields given, or a value is invalid; 'Maintenance can run at any time' for a cluster with no window",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -8540,6 +8540,7 @@
"description": "Plan slug.",
"example": "basic",
"enum": [
"dev-256",
"basic",
"starter",
"launch",
Expand Down Expand Up @@ -8638,6 +8639,7 @@
"description": "Plan slug.",
"example": "basic",
"enum": [
"dev-256",
"basic",
"starter",
"launch",
Expand Down Expand Up @@ -8850,6 +8852,7 @@
"description": "Plan slug. Pass it as `plan` when creating or forking a cluster.",
"example": "basic",
"enum": [
"dev-256",
"basic",
"starter",
"launch",
Expand Down Expand Up @@ -9613,9 +9616,9 @@
"properties": {
"disk_size_gb": {
"maximum": 1000,
"minimum": 10,
"minimum": 1,
"type": "integer",
"description": "Disk size in gigabytes.",
"description": "Disk size in gigabytes. Defaults to the plan's starting size: 1 for dev-256 and 10 for the other plans.",
"example": 10
},
"name": {
Expand All @@ -9641,6 +9644,7 @@
"description": "Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively.",
"example": "basic",
"enum": [
"dev-256",
"basic",
"starter",
"launch",
Expand Down Expand Up @@ -11176,6 +11180,7 @@
"description": "Plan slug selecting CPU and memory sizing for the fork. Defaults to the source cluster's plan. Matched case-insensitively.",
"example": "launch",
"enum": [
"dev-256",
"basic",
"starter",
"launch",
Expand Down Expand Up @@ -11797,7 +11802,46 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PostgresMaintenanceWindow"
"type": [
"object",
"null"
],
"properties": {
"day": {
"type": "string",
"description": "Day of the week the window starts on.",
"example": "sunday",
"enum": [
"sunday",
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday"
]
},
"duration_hours": {
"maximum": 8,
"minimum": 3,
"type": "integer",
"description": "Length of the window in hours.",
"example": 3
},
"start_hour": {
"maximum": 23,
"minimum": 0,
"type": "integer",
"description": "Hour of the day the window starts, in the cluster's timezone.",
"example": 1
},
"timezone": {
"type": "string",
"description": "IANA timezone the window is expressed in, derived from the cluster's region.",
"example": "America/New_York"
}
},
"description": "The cluster's maintenance window, or null when it has none and its maintenance can run at any time."
}
}
},
Expand Down
Loading