---
updatedAt: 2026-04-22T15:14:46.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Suspend a PostgreSQL Managed Database

Suspend a PostgreSQL Managed Database from your account, releasing idle resources and keeping only necessary data. All service data is lost if there are no backups available. This halts billing for the cluster.

- Akamai deletes suspended clusters after 180 days.

- A successful request triggers a `database_suspend` [event](ref:get-events).


**Permissions and scopes**

To call this operation, you need the following:

- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).
  - Permissions: `suspend_postgresql_database`
- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `databases:read_write`


**CLI**

```shell
linode-cli databases postgresql-suspend 123
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "natgateways:read_only": "Allows access to Get NAT Gateways on your account.",
              "natgateways:read_write": "Allows access to all NAT Gateway endpoints.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Databases",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/databases/postgresql/instances/{postgresqlInstanceId}/suspend": {
      "post": {
        "description": "Suspend a PostgreSQL Managed Database from your account, releasing idle resources and keeping only necessary data. All service data is lost if there are no backups available. This halts billing for the cluster.\n\n- Akamai deletes suspended clusters after 180 days.\n\n- A successful request triggers a `database_suspend` [event](ref:get-events).\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).\n  - Permissions: `suspend_postgresql_database`\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `databases:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli databases postgresql-suspend 123\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/suspend-databases-postgre-sql-instance"
        },
        "operationId": "suspend-databases-postgre-sql-instance",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {},
                "schema": {
                  "description": "The API responds with an empty object.",
                  "maxProperties": 0,
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/added-empty-obj.yaml"
                  }
                }
              }
            },
            "description": "PostgreSQL Managed Database successfully suspended."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](ref:post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](ref:errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "databases:read_write"
            ]
          }
        ],
        "summary": "Suspend a PostgreSQL Managed Database",
        "tags": [
          "PostgreSQL"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli databases postgresql-suspend 123",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            }
          ]
        },
        "x-linode-cli-action": "postgresql-suspend",
        "x-linode-grant": "read_write",
        "x-linode-iam": [
          {
            "permissions": [
              "suspend_postgresql_database"
            ]
          }
        ]
      },
      "parameters": [
        {
          "description": "__Enum__ Call the `v4` URL.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-v4-path.yaml"
          }
        },
        {
          "description": "The unique identifier for a PostgreSQL Managed Database. Run the [List PostgreSQL Managed Databases](ref:get-databases-postgre-sql-instances) operation and store the `id` for the desired one.",
          "in": "path",
          "name": "postgresqlInstanceId",
          "required": true,
          "schema": {
            "example": 123458,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/postgresql-instance-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/postgresql-suspend.yaml",
        "path-info": "/{apiVersion}/databases/postgresql/instances/{postgresqlInstanceId}/suspend"
      },
      "x-linode-cli-command": "databases"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Managed Databases is Akamai's fully-managed, high-performance database service. Use these operations to create and manage clusters for PostgreSQL engine databases.",
      "name": "PostgreSQL"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "databases.yaml"
  },
  "x-readme": {
    "apply-tag-changes": true,
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Create or restore a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-instances.md)
* [List PostgreSQL Managed Databases](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instances.md)
* [Get a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance.md)
* [Update a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/put-databases-postgre-sql-instance.md)
* [Patch a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-instance-patch.md)
* [Resume a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/resume-databases-postgre-sql-instance.md)
* [Delete a PostgreSQL Managed Database](https://techdocs.akamai.com/linode-api/reference/delete-databases-postgre-sql-instance.md)
* [List PostgreSQL Managed Database advanced parameters](https://techdocs.akamai.com/linode-api/reference/get-databases-postgresql-config.md)
* [Get a PostgreSQL Managed Database SSL certificate](https://techdocs.akamai.com/linode-api/reference/get-databases-postgresql-instance-ssl.md)
* [Get PostgreSQL Managed Database credentials](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-credentials.md)
* [Reset PostgreSQL Managed Database credentials](https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-instance-credentials-reset.md)
* [Create a PostgreSQL connection pool](https://techdocs.akamai.com/linode-api/reference/post-databases-postgre-sql-conn-pools.md)
* [List PostgreSQL connection pools](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-conn-pools.md)
* [Get a PostgreSQL connection pool](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-conn-pool.md)
* [Update a PostgreSQL connection pool](https://techdocs.akamai.com/linode-api/reference/put-databases-postgre-sql-conn-pool.md)
* [Delete a PostgreSQL connection pool](https://techdocs.akamai.com/linode-api/reference/delete-databases-postgre-sql-conn-pool.md)