sites

Set Database Usage Limit

Set a maximum database usage limit for your site along with a warning threshold. These limits help you monitor database growth and receive alerts when approaching capacity constraints.

put/sites/{id}/usage/database

Request

Path parameters

idinteger required

Request body

limitinteger
warning_headroominteger

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "id": 1,
    "created": "2022-01-31T20:05:30.000Z",
    "accountId": 2,
    "clonedFromId": null,
    "collaboratorsCount": 3,
    "datacenterCode": "DFW",
    "datacenterName": "Dallas, TX, USA",
    "displayName": "pressable.com",
    "domainsCount": 1,
    "ecommerce": false,
    "edgeCache": "enabled",
    "edgeCacheDefensiveMode": false,
    "edgeCacheDefensiveModeUntil": null,
    "favorite": false,
    "fileSystemUsageBytes": 13737418240,
    "databaseUsageBytes": 7368709120,
    "maxFileSystemUsageBytes": null,
    "warningHeadroomFileSystemUsageBytes": null,
    "maxDatabaseUsageBytes": 5368709120,
    "warningHeadroomDatabaseUsageBytes": 1073741824,
    "ipAddress": "199.16.172.38",
    "ipAddressOne": "199.16.172.38",
    "ipAddressTwo": "199.16.173.236",
    "name": "my-presssable-net",
    "state": "live",
    "url": "pressable.com",
    "staging": false,
    "sandbox": false,
    "sftpDomain": "sftp.pressable.com",
    "phpVersion": "8.2",
    "wordpressVersion": "Latest Release (Beta)",
    "tags": [
      {
        "id": 1357,
        "name": "Halo 3: ODST"
      }
    ],
    "wpEnvironmentType": "production",
    "lightWeight404": true,
    "multisiteSupport": false
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.