PlanetScale
planetscaleManage PlanetScale organizations, databases, branches, deploy requests, backups, workflows, insights, and infrastructure through delegated OAuth access.
Acciones disponibles (245)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add a member to a teamPLANETSCALE_ADD_ORGANIZATION_TEAM_MEMBERAcciónAdd a member to a team.
PLANETSCALE_ADD_ORGANIZATION_TEAM_MEMBERAcciónAdd a member to a team.
Parámetros de entrada
teamstringObligatorioThe slug of the team
user_idstringObligatorioThe ID of the organization member to add to the team
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Assign shards to a Neki shard configuration profilePLANETSCALE_ASSIGN_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónAssign shards to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_ASSIGN_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónAssign shards to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
shard_idsstring[]ObligatorioThe IDs of the shards to assign
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add shards to a Neki shard configuration profilePLANETSCALE_BULK_CREATE_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónAdd shards to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_BULK_CREATE_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónAdd shards to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
countintegerObligatorioThe number of shards to add
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change request for a Neki adminPLANETSCALE_CANCEL_ADMIN_CHANGE_REQUESTAcciónCancel a change request for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_ADMIN_CHANGE_REQUESTAcciónCancel a change request for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a resize requestPLANETSCALE_CANCEL_BOUNCER_RESIZE_REQUESTAcciónCancel a resize request. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_BOUNCER_RESIZE_REQUESTAcciónCancel a resize request. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
bouncerstringObligatorioThe name of the bouncer
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change requestPLANETSCALE_CANCEL_BRANCH_CHANGE_REQUESTAcciónCancel a branch resize change request. Vitess/MySQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_BRANCH_CHANGE_REQUESTAcciónCancel a branch resize change request. Vitess/MySQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a queued deploy requestPLANETSCALE_CANCEL_DEPLOY_REQUESTAcciónCancel a queued deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_CANCEL_DEPLOY_REQUESTAcciónCancel a queued deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change request for a Neki branchPLANETSCALE_CANCEL_NEKI_CHANGE_REQUESTAcciónCancel a change request for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_NEKI_CHANGE_REQUESTAcciónCancel a change request for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change request for a Neki routerPLANETSCALE_CANCEL_ROUTER_CHANGE_REQUESTAcciónCancel a change request for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_ROUTER_CHANGE_REQUESTAcciónCancel a change request for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change request for a Neki shard configuration profilePLANETSCALE_CANCEL_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTAcciónCancel a change request for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTAcciónCancel a change request for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel a change request for a Neki sidecarPLANETSCALE_CANCEL_SIDECAR_CHANGE_REQUESTAcciónCancel a change request for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_CANCEL_SIDECAR_CHANGE_REQUESTAcciónCancel a change request for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
sidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check deploy request storagePLANETSCALE_CHECK_DEPLOY_REQUEST_STORAGEAcciónChecks whether the deploy request's target branch cluster has enough storage to safely deploy the schema changes. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_CHECK_DEPLOY_REQUEST_STORAGEAcciónChecks whether the deploy request's target branch cluster has enough storage to safely deploy the schema changes. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Close a deploy requestPLANETSCALE_CLOSE_DEPLOY_REQUESTAcciónClose a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_CLOSE_DEPLOY_REQUESTAcciónClose a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Complete an errored deployPLANETSCALE_COMPLETE_ERRORED_DEPLOYAcciónComplete an errored deploy. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_COMPLETE_ERRORED_DEPLOYAcciónComplete an errored deploy. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Complete a gated deploy requestPLANETSCALE_COMPLETE_GATED_DEPLOY_REQUESTAcciónComplete a gated deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_COMPLETE_GATED_DEPLOY_REQUESTAcciónComplete a gated deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Complete a revertPLANETSCALE_COMPLETE_REVERTAcciónComplete a revert. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_COMPLETE_REVERTAcciónComplete a revert. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Open the SSO configuration portalPLANETSCALE_CONFIGURE_ORGANIZATION_SSOAcciónReturn a URL for configuring the identity provider. Requires at least one verified domain.
PLANETSCALE_CONFIGURE_ORGANIZATION_SSOAcciónReturn a URL for configuring the identity provider. Requires at least one verified domain.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a backupPLANETSCALE_CREATE_BACKUPAcciónCreate a backup.
PLANETSCALE_CREATE_BACKUPAcciónCreate a backup.
Parámetros de entrada
namestringName for the backup
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
emergencybooleanWhether the backup is an immediate backup that may affect database performance. Emergency backups are only supported for PostgreSQL databases.
organizationstringObligatorioThe name of the organization the branch belongs to
retention_unitstringenumUnit for the retention period of the backup
hourdayweekmonthyearretention_valueintegerValue between `1` and `1000` for the retention period of the backup (i.e retention_value `6` and retention_unit `hour` means 6 hours)
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a backup policyPLANETSCALE_CREATE_BACKUP_POLICYAcciónCreate a backup policy.
PLANETSCALE_CREATE_BACKUP_POLICYAcciónCreate a backup policy.
Parámetros de entrada
namestringThe name of the backup policy
targetstringenumWhether the policy is for production or development branches
productiondevelopmentdatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
schedule_dayintegerDay of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
schedule_timestringObligatorioRequired time of day for the backup schedule in HH:MM format.
schedule_weekintegerWeek of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
frequency_unitstringenumThe unit for the frequency of the backup policy
hourdayweekmonthretention_unitstringenumThe unit for the retention period of the backup policy
hourdayweekmonthyearfrequency_valueintegerA number value for the frequency of the backup policy
retention_valueintegerA number value for the retention period of the backup policy
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a bouncerPLANETSCALE_CREATE_BOUNCERAcciónCreate a bouncer. PostgreSQL databases only.
PLANETSCALE_CREATE_BOUNCERAcciónCreate a bouncer. PostgreSQL databases only.
Parámetros de entrada
namestringThe bouncer name
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
targetstringenumServer type to target: primary, replica, or replica_az_affinity. Primary is the usual choice.
primaryreplicareplica_az_affinitydatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
bouncer_sizestringThe size SKU for the bouncer
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
replicas_per_cellintegerThe number of replica servers per cell
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a branchPLANETSCALE_CREATE_BRANCHAcciónCreate a branch.
PLANETSCALE_CREATE_BRANCHAcciónCreate a branch.
Parámetros de entrada
kindstringenumThe kind of branch to create. Required when create_database_if_missing is set.
mysqlpostgresqlnekinamestringObligatorioThe name of the branch to create
regionstringThe region to create the branch in. If not provided, the branch will be created in the default region for its database.
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioThe name of the database the branch belongs to
replicasintegerFor PostgreSQL backup restores and point-in-time recovery, the number of additional replicas from 0 to 8, subject to the target cluster size. 0 creates a single-node branch. If omitted, the target cluster size's minimum is used.
backup_idstringIf provided, restores the backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this.
seed_datastringIf provided, restores the last successful backup's schema and data to the new branch. Must have `restore_production_branch_backup(s)` or `restore_backup(s)` access to do this, in addition to Data Branching™ being enabled for the branch.
cluster_sizestringThe database cluster size. Required if a backup_id is provided (unless keyspace_cluster_sizes covers every keyspace), optional otherwise. Options: PS_10, PS_20, PS_40, ..., PS_2800
organizationstringObligatorioThe name of the organization the branch belongs to
router_sizesobject[]For Neki backup restores, per-router size and replica count. Each entry is { "name": "default", "router_size": "NKR_20", "replicas_per_cell": 1 }. Omitted routers inherit the source size and replica count.
major_versionstringFor PostgreSQL and Neki databases, the PostgreSQL major version to use for the branch. Defaults to the major version of the parent branch if it exists or the database's default branch major version. Ignored for branches restored from backups.
parent_branchstringThe name of the parent branch. Defaults to the database's default branch if not provided.
restore_pointstringRestore from a point-in-time recovery timestamp (e.g. 2023-01-01T00:00:00Z). Available only for PostgreSQL databases.
deletion_protectedbooleanWhether deletion protection is enabled for the branch
keyspace_cluster_sizesobject[]For MySQL backup restores, per-keyspace cluster sizes. Each entry is { "keyspace_name": "main", "cluster_size": "PS_40" }. When provided, each restored keyspace must have a size here or via cluster_size.
create_database_if_missingbooleanCreate a new database for the branch if the database does not exist. Defaults to false.
configuration_profile_sizesobject[]For Neki backup restores, per-configuration-profile cluster size and replica count. Each entry is { "name": "default", "cluster_size": "PS_40", "replicas": 2 }. Omitted profiles inherit the source size and replica count.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a log signaturePLANETSCALE_CREATE_BRANCH_LOG_SIGNATUREAcciónCreates a signed token that can be used to access branch logs.
PLANETSCALE_CREATE_BRANCH_LOG_SIGNATUREAcciónCreates a signed token that can be used to access branch logs.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a databasePLANETSCALE_CREATE_DATABASEAcciónCreate a database.
PLANETSCALE_CREATE_DATABASEAcciónCreate a database.
Parámetros de entrada
kindstringenumThe kind of database to create.
mysqlpostgresqlnekinamestringObligatorioName of the database
regionstringThe region the database will be deployed in. If left blank, defaults to the organization's default region.
storageobjectPlanetScale body parameter `storage`.
replicasintegerThe number of replicas for the database. 0 for non-HA, 2+ for HA.
cluster_sizestringObligatorioThe database cluster size name (e.g., 'PS_10', 'PS_80'). Use the 'List available cluster sizes' endpoint to get available options for your organization. /v1/organizations/:organization/cluster-size-skus
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
major_versionstringFor PostgreSQL and Neki databases, the PostgreSQL major version to use for the database. Defaults to the latest available major version.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create an IP restriction entryPLANETSCALE_CREATE_DATABASE_POSTGRES_CIDRAcciónCreate an IP restriction entry. PostgreSQL databases only.
PLANETSCALE_CREATE_DATABASE_POSTGRES_CIDRAcciónCreate an IP restriction entry. PostgreSQL databases only.
Parámetros de entrada
rolestringThe PostgreSQL role to restrict access to. Leave empty or omit to allow access for all roles.
cidrsstring[]ObligatorioList of IPv4 CIDR ranges (e.g., ['192.168.1.0/24', '192.168.1.1/32']). Must contain at least one valid IPv4 address or range.
schemastringThe PostgreSQL schema to restrict access to. Leave empty or omit to allow access to all schemas.
databasestringObligatorioThe name of the database
descriptionstringAn optional description for the IP restriction rule.
organizationstringObligatorioThe name of the organization the database belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a deploy requestPLANETSCALE_CREATE_DEPLOY_REQUESTAcciónCreate a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_CREATE_DEPLOY_REQUESTAcciónCreate a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
notesstringNotes about the deploy request
branchstringObligatorioThe name of the branch the deploy request is created from
databasestringObligatorioThe name of the deploy request's database
into_branchstringObligatorioThe name of the branch the deploy request will be merged into
auto_cutoverbooleanWhether or not to enable auto_cutover for the deploy request. When enabled, will auto cutover to the new schema as soon as it is ready.
organizationstringObligatorioThe name of the deploy request's organization
auto_delete_branchbooleanWhether or not to enable auto_delete_branch for the deploy request. When enabled, will delete the branch once the DR successfully completes.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create an Insights agent runPLANETSCALE_CREATE_INSIGHTS_AGENT_RUNAcciónCreate an Insights agent run.
PLANETSCALE_CREATE_INSIGHTS_AGENT_RUNAcciónCreate an Insights agent run.
Parámetros de entrada
typestringObligatorioenumThe work the Insights agent should perform
review_slow_queriesimplement_schema_recommendationbranchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
schema_numbersstring[]The schema recommendation numbers to implement
query_patterns_attributesstring[]The slow query patterns to review
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Start SSO domain verificationPLANETSCALE_CREATE_ORGANIZATION_SSO_DOMAINAcciónEnable SSO if needed and return a URL for verifying an email domain.
PLANETSCALE_CREATE_ORGANIZATION_SSO_DOMAINAcciónEnable SSO if needed and return a URL for verifying an email domain.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create an organization teamPLANETSCALE_CREATE_ORGANIZATION_TEAMAcciónCreate an organization team.
PLANETSCALE_CREATE_ORGANIZATION_TEAMAcciónCreate an organization team.
Parámetros de entrada
namestringObligatorioThe name of the team
descriptionstringA description of the team's purpose
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a passwordPLANETSCALE_CREATE_PASSWORDAcciónCreate a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_CREATE_PASSWORDAcciónCreate a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
ttlintegerTime to live (in seconds) for the password. The password will be invalid when TTL has passed
namestringOptional name of the password
rolestringenumThe database role of the password (i.e. admin)
readerwriteradminreadwritercidrsstring[]List of IP addresses or CIDR ranges that can use this password
branchstringObligatorioThe name of the branch the password belongs to
replicabooleanWhether the password is for a read replica
databasestringObligatorioThe name of the database the password belongs to
organizationstringObligatorioThe name of the organization the password belongs to
direct_vtgatebooleanWhether the password connects directly to a VTGate
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a billing payment method setupPLANETSCALE_CREATE_PAYMENT_METHOD_SETUPAcciónCreate a hosted checkout session for adding or replacing an organization's payment method.
PLANETSCALE_CREATE_PAYMENT_METHOD_SETUPAcciónCreate a hosted checkout session for adding or replacing an organization's payment method.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a new query patterns reportPLANETSCALE_CREATE_QUERY_PATTERNS_REPORTAcciónCreate a new query patterns report.
PLANETSCALE_CREATE_QUERY_PATTERNS_REPORTAcciónCreate a new query patterns report.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a read-only replicaPLANETSCALE_CREATE_READ_ONLY_REPLICAAcciónCreate a read-only replica.
PLANETSCALE_CREATE_READ_ONLY_REPLICAAcciónCreate a read-only replica.
Parámetros de entrada
namestringObligatorioThe read-only replica name
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
regionstringObligatorioThe region slug for the read-only replica
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
replicasintegerThe number of instances serving reads. Defaults to 1.
cluster_sizestringThe cluster size SKU name. Defaults to the primary cluster size.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create role credentialsPLANETSCALE_CREATE_ROLEAcciónCreate role credentials. PostgreSQL databases only.
PLANETSCALE_CREATE_ROLEAcciónCreate role credentials. PostgreSQL databases only.
Parámetros de entrada
ttlintegerTime to live in seconds
namestringThe name of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
inherited_rolesstring[]Roles to inherit from
with_replicationbooleanWhether the role should have the REPLICATION attribute
require_where_on_deletestringRequire WHERE clause on DELETE statements
require_where_on_updatestringRequire WHERE clause on UPDATE statements
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a router for a Neki branchPLANETSCALE_CREATE_ROUTERAcciónCreate a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_CREATE_ROUTERAcciónCreate a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
namestringObligatorioThe name of the router group. Letters, digits, dashes, and underscores; 1-64 characters; cannot start or end with a dash or underscore. `new`, `primary`, and `replica` are reserved. Clients connect through the group by appending it to the username, e.g. `user|my-router`.
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
router_sizestringThe router size SKU, e.g. `NKR_1`. Defaults to the service's default size.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
replicas_per_cellintegerThe number of router instances per availability zone. Defaults to the service's default count.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add shards to a Neki branchPLANETSCALE_CREATE_SHARDAcciónAdd shards to a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_CREATE_SHARDAcciónAdd shards to a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a shard configuration profile for a Neki branchPLANETSCALE_CREATE_SHARD_CONFIGURATION_PROFILEAcciónCreate a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_CREATE_SHARD_CONFIGURATION_PROFILEAcciónCreate a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
namestringObligatorioThe name of the shard configuration profile
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
replicasintegerThe number of replicas for the shard configuration profile
cluster_sizestringThe cluster size for the shard configuration profile
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
postgres_major_versionstringThe PostgreSQL major version for the shard configuration profile
postgres_minor_versionstringThe PostgreSQL minor version for the shard configuration profile. Requires postgres_major_version when specified.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add a shard to a Neki shard configuration profilePLANETSCALE_CREATE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónAdd a shard to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_CREATE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónAdd a shard to a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
display_namestringThe display name of the shard
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a switchoverPLANETSCALE_CREATE_SWITCHOVERAcciónMoves the primary of a Postgres branch. On a branch with replicas the primary steps down and a replica is promoted in its place. A branch running a single instance has nothing to promote, so that instance is restarted where it stands and the branch is unreachable while it comes back. Read `method` on the response to see which one the branch got. A branch accepts one switchover at a time. A switchover that ends in the `failed` state has an unconfirmed outcome: the primary may still have moved, and nothing is rolled back. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_CREATE_SWITCHOVERAcciónMoves the primary of a Postgres branch. On a branch with replicas the primary steps down and a replica is promoted in its place. A branch running a single instance has nothing to promote, so that instance is restarted where it stands and the branch is unreachable while it comes back. Read `method` on the response to see which one the branch got. A branch accepts one switchover at a time. A switchover that ends in the `failed` state has an unconfirmed outcome: the primary may still have moved, and nothing is rolled back. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
candidatestringThe exact `name` of the replica returned by the branch's Postgres infrastructure endpoint to promote. Omit to let the operator select an eligible replica. Only applies to branches with replicas.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a traffic budgetPLANETSCALE_CREATE_TRAFFIC_BUDGETAcciónCreate a traffic budget. PostgreSQL databases only.
PLANETSCALE_CREATE_TRAFFIC_BUDGETAcciónCreate a traffic budget. PostgreSQL databases only.
Parámetros de entrada
modestringenumThe mode of the traffic budget
enforcewarnoffnamestringName of the traffic budget
rateintegerThe rate at which capacity refills, as a percentage of server resources (0-100). Unlimited when not set.
burstintegerThe maximum capacity a single query can consume, measured as a percentage of seconds of full server usage (0-6000). Unlimited when not set.
rulesstring[]Array of traffic rules to apply to the budget
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
capacityintegerThe maximum capacity that can be banked, measured as a percentage of seconds of full server usage (0-6000). Unlimited when not set.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
concurrencyintegerThe percentage of available worker processes this policy can use (0-100). Unlimited when not set.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
warning_thresholdintegerA percentage of capacity, burst, or concurrency thresholds to emit warnings for enforced budgets (0-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a traffic rulePLANETSCALE_CREATE_TRAFFIC_RULEAcciónCreate a traffic rule. PostgreSQL databases only.
PLANETSCALE_CREATE_TRAFFIC_RULEAcciónCreate a traffic rule. PostgreSQL databases only.
Parámetros de entrada
kindstringenumKind of rule
matcheachtagsstring[]Optional array of tags for this rule. Each rules take exactly one tag.
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringThe keyspace to apply a query pattern rule to
budget_idstringObligatorioThe ID of the traffic budget
fingerprintstringQuery pattern fingerprint to apply rule to
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a webhookPLANETSCALE_CREATE_WEBHOOKAcciónCreate a webhook.
PLANETSCALE_CREATE_WEBHOOKAcciónCreate a webhook.
Parámetros de entrada
urlstringObligatorioThe URL the webhook will send events to
eventsstring[]The events this webhook should subscribe to
enabledbooleanWhether the webhook should be enabled
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization
authorization_headerstringThe value to send in the Authorization header
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a backupPLANETSCALE_DELETE_BACKUPAcciónDelete a backup. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_BACKUPAcciónDelete a backup. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the backup
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a backup policyPLANETSCALE_DELETE_BACKUP_POLICYAcciónDelete a backup policy. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_BACKUP_POLICYAcciónDelete a backup policy. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the backup policy
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a bouncerPLANETSCALE_DELETE_BOUNCERAcciónDelete a bouncer. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_BOUNCERAcciónDelete a bouncer. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
bouncerstringObligatorioThe name of the bouncer
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a branchPLANETSCALE_DELETE_BRANCHAcciónDelete a branch. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_BRANCHAcciónDelete a branch. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
delete_descendantsbooleanIf true, recursively delete all descendant branches along with this branch
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a databasePLANETSCALE_DELETE_DATABASEAcciónDelete a database. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_DATABASEAcciónDelete a database. This is destructive: confirm the target before calling.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete an IP restriction entryPLANETSCALE_DELETE_DATABASE_POSTGRES_CIDRAcciónDelete an IP restriction entry. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_DATABASE_POSTGRES_CIDRAcciónDelete an IP restriction entry. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the IP restriction entry
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization the database belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete the current billing payment methodPLANETSCALE_DELETE_ORGANIZATION_BILLING_PAYMENT_METHODAcciónDelete the current payment method for an organization. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_ORGANIZATION_BILLING_PAYMENT_METHODAcciónDelete the current payment method for an organization. This is destructive: confirm the target before calling.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete an SSO domainPLANETSCALE_DELETE_ORGANIZATION_SSO_DOMAINAcciónDelete a verified or pending SSO domain. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_ORGANIZATION_SSO_DOMAINAcciónDelete a verified or pending SSO domain. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe public ID of the organization domain
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete an organization teamPLANETSCALE_DELETE_ORGANIZATION_TEAMAcciónDelete an organization team. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_ORGANIZATION_TEAMAcciónDelete an organization team. This is destructive: confirm the target before calling.
Parámetros de entrada
teamstringObligatorioThe slug of the team
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a passwordPLANETSCALE_DELETE_PASSWORDAcciónDelete a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_PASSWORDAcciónDelete a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the password
branchstringObligatorioThe name of the branch the password belongs to
databasestringObligatorioThe name of the database the password belongs to
organizationstringObligatorioThe name of the organization the password belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a query patterns reportPLANETSCALE_DELETE_QUERY_PATTERNS_REPORTAcciónDelete a query patterns report. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_QUERY_PATTERNS_REPORTAcciónDelete a query patterns report. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the query patterns report
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a read-only replicaPLANETSCALE_DELETE_READ_ONLY_REPLICAAcciónDelete a read-only replica. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_READ_ONLY_REPLICAAcciónDelete a read-only replica. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
read_only_replicastringObligatorioThe name of the read-only replica
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete role credentialsPLANETSCALE_DELETE_ROLEAcciónDelete role credentials. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_ROLEAcciónDelete role credentials. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
successorstringThe optional role to reassign ownership to before dropping. Accepts the role's ID, or its username with or without the branch ID suffix.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a router from a Neki branchPLANETSCALE_DELETE_ROUTERAcciónDelete a router from a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_ROUTERAcciónDelete a router from a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove a shard from a Neki branchPLANETSCALE_DELETE_SHARDAcciónRemove a shard from a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_SHARDAcciónRemove a shard from a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a shard configuration profile for a Neki branchPLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILEAcciónDelete a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILEAcciónDelete a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove a shard from a Neki shard configuration profilePLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónRemove a shard from a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónRemove a shard from a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove shards from a Neki shard configuration profilePLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónRemove shards from a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónRemove shards from a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
shard_idsstring[]ObligatorioThe IDs of the shards to remove
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a traffic budgetPLANETSCALE_DELETE_TRAFFIC_BUDGETAcciónDelete a traffic budget. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_TRAFFIC_BUDGETAcciónDelete a traffic budget. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the traffic budget
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a traffic rulePLANETSCALE_DELETE_TRAFFIC_RULEAcciónDelete a traffic rule. PostgreSQL databases only. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_TRAFFIC_RULEAcciónDelete a traffic rule. PostgreSQL databases only. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the traffic rule
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
budget_idstringObligatorioThe ID of the traffic budget
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a webhookPLANETSCALE_DELETE_WEBHOOKAcciónDelete a webhook. This is destructive: confirm the target before calling.
PLANETSCALE_DELETE_WEBHOOKAcciónDelete a webhook. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the webhook
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Demote a branchPLANETSCALE_DEMOTE_BRANCHAcciónDemotes a branch from production to development. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_DEMOTE_BRANCHAcciónDemotes a branch from production to development. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disable organization SSOPLANETSCALE_DISABLE_ORGANIZATION_SSOAcciónDisable SSO and directory sync for the organization. This is destructive: confirm the target before calling.
PLANETSCALE_DISABLE_ORGANIZATION_SSOAcciónDisable SSO and directory sync for the organization. This is destructive: confirm the target before calling.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disable directory syncPLANETSCALE_DISABLE_ORGANIZATION_SSO_DIRECTORYAcciónDisable directory sync for the organization. Non-admin directory members are removed. This is destructive: confirm the target before calling.
PLANETSCALE_DISABLE_ORGANIZATION_SSO_DIRECTORYAcciónDisable directory sync for the organization. Non-admin directory members are removed. This is destructive: confirm the target before calling.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Disable safe migrations for a branchPLANETSCALE_DISABLE_SAFE_MIGRATIONSAcciónDisable safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This is destructive: confirm the target before calling.
PLANETSCALE_DISABLE_SAFE_MIGRATIONSAcciónDisable safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This is destructive: confirm the target before calling.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Dismiss a schema recommendationPLANETSCALE_DISMISS_SCHEMA_RECOMMENDATIONAcciónDismiss a schema recommendation.
PLANETSCALE_DISMISS_SCHEMA_RECOMMENDATIONAcciónDismiss a schema recommendation.
Parámetros de entrada
numberintegerObligatorioSchema recommendation sequence number. Example: `42`.
reasonstringThe reason for dismissing the recommendation (max 500 characters)
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Enable organization SSOPLANETSCALE_ENABLE_ORGANIZATION_SSOAcciónEnable the SSO add-on and return a URL for verifying an email domain. This changes operational state and may not be safely reversible.
PLANETSCALE_ENABLE_ORGANIZATION_SSOAcciónEnable the SSO add-on and return a URL for verifying an email domain. This changes operational state and may not be safely reversible.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Open the directory sync portalPLANETSCALE_ENABLE_ORGANIZATION_SSO_DIRECTORYAcciónReturn a URL for configuring directory sync. Requires SSO to be enabled.
PLANETSCALE_ENABLE_ORGANIZATION_SSO_DIRECTORYAcciónReturn a URL for configuring directory sync. Requires SSO to be enabled.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Enable safe migrations for a branchPLANETSCALE_ENABLE_SAFE_MIGRATIONSAcciónEnable safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_ENABLE_SAFE_MIGRATIONSAcciónEnable safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Enable force cutover for a deploy requestPLANETSCALE_FORCE_CUTOVER_DEPLOY_REQUESTAcciónEnable force cutover for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_FORCE_CUTOVER_DEPLOY_REQUESTAcciónEnable force cutover for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the admin for a Neki branchPLANETSCALE_GET_ADMINAcciónGet the admin for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_ADMINAcciónGet the admin for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a change request for a Neki adminPLANETSCALE_GET_ADMIN_CHANGE_REQUESTAcciónGet a change request for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_ADMIN_CHANGE_REQUESTAcciónGet a change request for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a backupPLANETSCALE_GET_BACKUPAcciónGet a backup.
PLANETSCALE_GET_BACKUPAcciónGet a backup.
Parámetros de entrada
idstringObligatorioThe ID for the backup
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a backup policyPLANETSCALE_GET_BACKUP_POLICYAcciónGet a backup policy.
PLANETSCALE_GET_BACKUP_POLICYAcciónGet a backup policy.
Parámetros de entrada
idstringObligatorioThe ID of the backup policy
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a bouncerPLANETSCALE_GET_BOUNCERAcciónGet a bouncer. PostgreSQL databases only.
PLANETSCALE_GET_BOUNCERAcciónGet a bouncer. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
bouncerstringObligatorioThe name of the bouncer
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a branchPLANETSCALE_GET_BRANCHAcciónGet a branch.
PLANETSCALE_GET_BRANCHAcciónGet a branch.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve a branch anomalyPLANETSCALE_GET_BRANCH_ANOMALYAcciónRetrieve a branch anomaly.
PLANETSCALE_GET_BRANCH_ANOMALYAcciónRetrieve a branch anomaly.
Parámetros de entrada
idstringObligatorioThe anomaly ID
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a branch change requestPLANETSCALE_GET_BRANCH_CHANGE_REQUESTAcciónGet a branch change request. PostgreSQL databases only.
PLANETSCALE_GET_BRANCH_CHANGE_REQUESTAcciónGet a branch change request. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get table storage metrics by keyspacePLANETSCALE_GET_BRANCH_KEYSPACE_TABLE_METRICSAcciónGet table storage metrics by keyspace.
PLANETSCALE_GET_BRANCH_KEYSPACE_TABLE_METRICSAcciónGet table storage metrics by keyspace.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get time-series metricsPLANETSCALE_GET_BRANCH_METRICSAcciónRetrieve time-series metrics for a database branch. ```sh curl --get \ --header "Authorization: $PLANETSCALE_SERVICE_TOKEN" \ --data-urlencode "metrics=queries" \ --data-urlencode "period=15m" \ "https://api.planetscale.com/v1/organizations/acme/databases/app-db/branches/main/metrics" ``` Each series contains its metric name, display label, identifying labels, and sampled `[Unix timestamp, value]` points: ```json { "type": "MetricSeries", "start_date": "2026-09-09T17:00:00Z", "end_date": "2026-09-09T17:15:00Z", "interval": 60, "series": [ { "type": "TimeSeries", "metric": "queries", "label": "Queries", "labels": { "tablet_type": "primary" }, "points": [[1788973200, 42.0]] } ] } ```.
PLANETSCALE_GET_BRANCH_METRICSAcciónRetrieve time-series metrics for a database branch. ```sh curl --get \ --header "Authorization: $PLANETSCALE_SERVICE_TOKEN" \ --data-urlencode "metrics=queries" \ --data-urlencode "period=15m" \ "https://api.planetscale.com/v1/organizations/acme/databases/app-db/branches/main/metrics" ``` Each series contains its metric name, display label, identifying labels, and sampled `[Unix timestamp, value]` points: ```json { "type": "MetricSeries", "start_date": "2026-09-09T17:00:00Z", "end_date": "2026-09-09T17:15:00Z", "interval": 60, "series": [ { "type": "TimeSeries", "metric": "queries", "label": "Queries", "labels": { "tablet_type": "primary" }, "points": [[1788973200, 42.0]] } ] } ```.
Parámetros de entrada
tostringEnd of a custom time range as an ISO 8601 timestamp
podstringFilter by pod
fromstringStart of a custom time range as an ISO 8601 timestamp
podsstring[]Filter by pods
rolestringFilter by Postgres role
querystringSearch terms to filter the metrics
shardstringFilter by shard
stepsintegerNumber of data points to return
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumNamed time period to retrieve. Defaults to 12h.
15m1h3h6h12h1d2d7d8drouterstringFilter by router
metricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`). Time range is `period` (for example `15m`) or ISO 8601 `from`/`to`.
rule_idstringFilter by traffic rule ID
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringFilter by keyspace
budget_idstringFilter by traffic budget ID
containerstringFilter by container
query_idsstring[]Filter by query pattern IDs
fingerprintstringFilter by query fingerprint
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
shard_config_profilestringFilter by shard configuration profile name
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve a branch queryPLANETSCALE_GET_BRANCH_QUERYAcciónRetrieve a branch query.
PLANETSCALE_GET_BRANCH_QUERYAcciónRetrieve a branch query.
Parámetros de entrada
idstringObligatorioID of an individual query execution returned as `items[].id` by `GET_BRANCH_QUERY_ERROR`. `LIST_BRANCH_QUERIES` returns query-summary IDs, which this endpoint does not accept.
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List queries for an error fingerprintPLANETSCALE_GET_BRANCH_QUERY_ERRORAcciónList queries for an error fingerprint.
PLANETSCALE_GET_BRANCH_QUERY_ERRORAcciónList queries for an error fingerprint.
Parámetros de entrada
tostringEnd time for filtering queries (ISO 8601 timestamp)
fromstringStart time for filtering queries (ISO 8601 timestamp)
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering queries
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
fingerprintstringObligatorioThe error fingerprint
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get time-series metrics for SQL queriesPLANETSCALE_GET_BRANCH_QUERY_METRICSAcciónGet time-series metrics for SQL queries.
PLANETSCALE_GET_BRANCH_QUERY_METRICSAcciónGet time-series metrics for SQL queries.
Parámetros de entrada
tostringEnd of a custom time range as an ISO 8601 timestamp
fromstringStart of a custom time range as an ISO 8601 timestamp
querystringSearch terms to filter the metrics
stepsintegerNumber of data points to return
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumNamed time period to retrieve. Defaults to 12h.
15m1h3h6h12h1d2d7d8dmetricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`). Time range is `period` (for example `15m`) or ISO 8601 `from`/`to`.
rule_idstringFilter by traffic rule ID
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringKeyspace for the query fingerprint
budget_idstringFilter by traffic budget ID
query_idsstring[]Query pattern IDs to retrieve metrics for
fingerprintstringFilter by query fingerprint
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve a query tagPLANETSCALE_GET_BRANCH_QUERY_TAGAcciónRetrieve a query tag.
PLANETSCALE_GET_BRANCH_QUERY_TAGAcciónRetrieve a query tag.
Parámetros de entrada
tostringEnd time for filtering tag values (ISO 8601 timestamp)
tagstringObligatorioThe tag name
fromstringStart time for filtering tag values (ISO 8601 timestamp)
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering tag values
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringFilter by keyspace
fingerprintstringFilter to tag values on queries with this fingerprint
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
values_limitintegerMaximum number of values returned (1-100)
literal_values_onlybooleanOnly return literal tag values, excluding overflow and collapsed values
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a branch resize requestPLANETSCALE_GET_BRANCH_RESIZE_REQUESTAcciónGet a branch resize request.
PLANETSCALE_GET_BRANCH_RESIZE_REQUESTAcciónGet a branch resize request.
Parámetros de entrada
branchstringObligatorioThe name of the branch
resizestringObligatorioThe ID of the branch resize request
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a branch schemaPLANETSCALE_GET_BRANCH_SCHEMAAcciónGet a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_BRANCH_SCHEMAAcciónGet a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
keyspacestringReturn the schema for a single Vitess keyspace
namespacestringReturn the schema for a PostgreSQL catalog namespace in `<database>.<schema>` format (e.g. public.schema1)
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get table storage metricsPLANETSCALE_GET_BRANCH_TABLE_METRICSAcciónGet table storage metrics.
PLANETSCALE_GET_BRANCH_TABLE_METRICSAcciónGet table storage metrics.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get time-series metrics grouped by query tagsPLANETSCALE_GET_BRANCH_TAG_METRICSAcciónGet time-series metrics grouped by query tags.
PLANETSCALE_GET_BRANCH_TAG_METRICSAcciónGet time-series metrics grouped by query tags.
Parámetros de entrada
tostringEnd of a custom time range as an ISO 8601 timestamp
fromstringStart of a custom time range as an ISO 8601 timestamp
querystringSearch terms to filter the metrics
stepsintegerNumber of data points to return
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumNamed time period to retrieve. Defaults to 12h.
15m1h3h6h12h1d2d7d8dmetricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`). Time range is `period` (for example `15m`) or ISO 8601 `from`/`to`.
rule_idstringFilter by traffic rule ID
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
tag_setsstring[]Tag sets to retrieve metrics for
budget_idstringFilter by traffic budget ID
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get current userPLANETSCALE_GET_CURRENT_USERAcciónGet the user associated with the current OAuth access token.
PLANETSCALE_GET_CURRENT_USERAcciónGet the user associated with the current OAuth access token.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a databasePLANETSCALE_GET_DATABASEAcciónGet a database.
PLANETSCALE_GET_DATABASEAcciónGet a database.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an IP restriction entryPLANETSCALE_GET_DATABASE_POSTGRES_CIDRAcciónGet an IP restriction entry. PostgreSQL databases only.
PLANETSCALE_GET_DATABASE_POSTGRES_CIDRAcciónGet an IP restriction entry. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the IP restriction entry
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization the database belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get database throttler configurationsPLANETSCALE_GET_DATABASE_THROTTLERAcciónGet database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_DATABASE_THROTTLERAcciónGet database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
databasestringObligatorioThe name of the database that the throttled deploy requests belong to
organizationstringObligatorioThe name of the organization that the throttled deploy requests belong to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the data topology for a Neki branchPLANETSCALE_GET_DATA_TOPOLOGYAcciónGet the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_DATA_TOPOLOGYAcciónGet the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the default postgres rolePLANETSCALE_GET_DEFAULT_ROLEAcciónGet the default postgres role. PostgreSQL databases only.
PLANETSCALE_GET_DEFAULT_ROLEAcciónGet the default postgres role. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the default shard configuration profile for a Neki branchPLANETSCALE_GET_DEFAULT_SHARD_CONFIGURATION_PROFILEAcciónGet the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_DEFAULT_SHARD_CONFIGURATION_PROFILEAcciónGet the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a deploymentPLANETSCALE_GET_DEPLOYMENTAcciónGet the deployment for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_DEPLOYMENTAcciónGet the deployment for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the deploy queuePLANETSCALE_GET_DEPLOY_QUEUEAcciónThe deploy queue returns the current list of deploy requests in the order they will be deployed. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_DEPLOY_QUEUEAcciónThe deploy queue returns the current list of deploy requests in the order they will be deployed. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
databasestringObligatorioThe name of the deploy request's database
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a deploy requestPLANETSCALE_GET_DEPLOY_REQUESTAcciónGet a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_DEPLOY_REQUESTAcciónGet a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get deploy request throttler configurationsPLANETSCALE_GET_DEPLOY_REQUEST_THROTTLERAcciónGet deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_DEPLOY_REQUEST_THROTTLERAcciónGet deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an Insights agent runPLANETSCALE_GET_INSIGHTS_AGENT_RUNAcciónGet an Insights agent run.
PLANETSCALE_GET_INSIGHTS_AGENT_RUNAcciónGet an Insights agent run.
Parámetros de entrada
idstringObligatorioThe Insights agent run ID
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get current metric valuesPLANETSCALE_GET_INSTANT_BRANCH_METRICSAcciónGet current metric values.
PLANETSCALE_GET_INSTANT_BRANCH_METRICSAcciónGet current metric values.
Parámetros de entrada
podstringFilter by pod
rolestringFilter by Postgres role
shardstringFilter by shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
metricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`).
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
containerstringFilter by container
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
shard_config_profilestringFilter by shard configuration profile name
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get current tablet metricsPLANETSCALE_GET_INSTANT_TABLET_METRICSAcciónGet current tablet metrics.
PLANETSCALE_GET_INSTANT_TABLET_METRICSAcciónGet current tablet metrics.
Parámetros de entrada
shardstringFilter by shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
metricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`).
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringFilter by keyspace
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an invoicePLANETSCALE_GET_INVOICEAcciónGet an invoice.
PLANETSCALE_GET_INVOICEAcciónGet an invoice.
Parámetros de entrada
idstringObligatorioInvoice public ID from `list_invoices`. Example: `aabb12123434`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get invoice line itemsPLANETSCALE_GET_INVOICE_LINE_ITEMSAcciónGet the line items for an invoice.
PLANETSCALE_GET_INVOICE_LINE_ITEMSAcciónGet the line items for an invoice.
Parámetros de entrada
idstringObligatorioInvoice public ID from `list_invoices`. Example: `aabb12123434`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a maintenance schedulePLANETSCALE_GET_MAINTENANCE_SCHEDULEAcciónGet a maintenance schedule. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_MAINTENANCE_SCHEDULEAcciónGet a maintenance schedule. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
idstringObligatorioThe ID of the maintenance schedule
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a change request for a Neki branchPLANETSCALE_GET_NEKI_CHANGE_REQUESTAcciónGet a change request for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_NEKI_CHANGE_REQUESTAcciónGet a change request for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an organizationPLANETSCALE_GET_ORGANIZATIONAcciónGet an organization.
PLANETSCALE_GET_ORGANIZATIONAcciónGet an organization.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get the current billing payment methodPLANETSCALE_GET_ORGANIZATION_BILLING_PAYMENT_METHODAcciónGet the current payment method for an organization.
PLANETSCALE_GET_ORGANIZATION_BILLING_PAYMENT_METHODAcciónGet the current payment method for an organization.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an organization memberPLANETSCALE_GET_ORGANIZATION_MEMBERSHIPAcciónGet an organization member by a user ID or membership ID returned by `list_organization_members`. The action uses PlanetScale's documented detail route first and falls back to the paginated member list when the provider returns 404 for an ID it just listed.
PLANETSCALE_GET_ORGANIZATION_MEMBERSHIPAcciónGet an organization member by a user ID or membership ID returned by `list_organization_members`. The action uses PlanetScale's documented detail route first and falls back to the paginated member list when the provider returns 404 for an ID it just listed.
Parámetros de entrada
idstringObligatorioUser ID or membership ID from `list_organization_members`. PlanetScale documents the user ID, but the detail endpoint can return 404 for IDs present in the list; this action falls back to the list result.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get organization SSO statusPLANETSCALE_GET_ORGANIZATION_SSOAcciónGet SSO add-on status, identity provider connection state, directory sync, and verified domains.
PLANETSCALE_GET_ORGANIZATION_SSOAcciónGet SSO add-on status, identity provider connection state, directory sync, and verified domains.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an SSO domainPLANETSCALE_GET_ORGANIZATION_SSO_DOMAINAcciónGet a registered SSO email domain and its verification state.
PLANETSCALE_GET_ORGANIZATION_SSO_DOMAINAcciónGet a registered SSO email domain and its verification state.
Parámetros de entrada
idstringObligatorioThe public ID of the organization domain
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get an organization teamPLANETSCALE_GET_ORGANIZATION_TEAMAcciónGet an organization team.
PLANETSCALE_GET_ORGANIZATION_TEAMAcciónGet an organization team.
Parámetros de entrada
teamstringObligatorioThe slug of the team
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a team memberPLANETSCALE_GET_ORGANIZATION_TEAM_MEMBERAcciónGet a team member.
PLANETSCALE_GET_ORGANIZATION_TEAM_MEMBERAcciónGet a team member.
Parámetros de entrada
idstringObligatorioThe ID of the team membership or the ID of the member
teamstringObligatorioThe slug of the team
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a passwordPLANETSCALE_GET_PASSWORDAcciónGet a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_GET_PASSWORDAcciónGet a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
idstringObligatorioThe ID of the password
branchstringObligatorioThe name of the branch the password belongs to
databasestringObligatorioThe name of the database the password belongs to
organizationstringObligatorioThe name of the organization the password belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a billing payment method setupPLANETSCALE_GET_PAYMENT_METHOD_SETUPAcciónGet the state of a billing payment method setup.
PLANETSCALE_GET_PAYMENT_METHOD_SETUPAcciónGet the state of a billing payment method setup.
Parámetros de entrada
idstringObligatorioBilling payment method setup ID from `create_payment_method_setup`. Example: `pmsetup_1234`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download a finished query patterns reportPLANETSCALE_GET_QUERY_PATTERNS_REPORTAcciónDownload a finished query patterns report.
PLANETSCALE_GET_QUERY_PATTERNS_REPORTAcciónDownload a finished query patterns report.
Parámetros de entrada
idstringObligatorioThe ID of the query patterns report
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Show the status of a query patterns reportPLANETSCALE_GET_QUERY_PATTERNS_REPORT_STATUSAcciónShow the status of a query patterns report.
PLANETSCALE_GET_QUERY_PATTERNS_REPORT_STATUSAcciónShow the status of a query patterns report.
Parámetros de entrada
idstringObligatorioThe ID of the query patterns report
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve query statisticsPLANETSCALE_GET_QUERY_STATISTICSAcciónRetrieve query statistics.
PLANETSCALE_GET_QUERY_STATISTICSAcciónRetrieve query statistics.
Parámetros de entrada
tostringEnd time for filtering query statistics (ISO 8601 timestamp)
fromstringStart time for filtering query statistics (ISO 8601 timestamp)
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering query statistics
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringObligatorioThe keyspace to filter by
per_pageintegerIf provided, specifies the number of returned results
fingerprintstringObligatorioThe query fingerprint
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Retrieve a summary of query statisticsPLANETSCALE_GET_QUERY_SUMMARYAcciónRetrieve a summary of query statistics.
PLANETSCALE_GET_QUERY_SUMMARYAcciónRetrieve a summary of query statistics.
Parámetros de entrada
tostringEnd time for filtering query statistics (ISO 8601 timestamp)
fromstringStart time for filtering query statistics (ISO 8601 timestamp)
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering query statistics
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringObligatorioThe keyspace to filter by
fingerprintstringObligatorioThe query fingerprint
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a read-only replicaPLANETSCALE_GET_READ_ONLY_REPLICAAcciónGet a read-only replica.
PLANETSCALE_GET_READ_ONLY_REPLICAAcciónGet a read-only replica.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
read_only_replicastringObligatorioThe name of the read-only replica
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a rolePLANETSCALE_GET_ROLEAcciónGet a role. PostgreSQL databases only.
PLANETSCALE_GET_ROLEAcciónGet a role. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the role
shardstringReturn libpq options that pin this Neki shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringReturn connection details for this Neki router group
bouncerstringReturn connection details for this bouncer
replicabooleanReturn connection details for a replica
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
read_only_replicastringReturn connection details for this read-only replica
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a router for a Neki branchPLANETSCALE_GET_ROUTERAcciónGet a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_ROUTERAcciónGet a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a change request for a Neki routerPLANETSCALE_GET_ROUTER_CHANGE_REQUESTAcciónGet a change request for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_ROUTER_CHANGE_REQUESTAcciónGet a change request for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a schema recommendationPLANETSCALE_GET_SCHEMA_RECOMMENDATIONAcciónGet a schema recommendation.
PLANETSCALE_GET_SCHEMA_RECOMMENDATIONAcciónGet a schema recommendation.
Parámetros de entrada
numberintegerObligatorioSchema recommendation sequence number. Example: `42`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a shard for a Neki branchPLANETSCALE_GET_SHARDAcciónGet a shard for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SHARDAcciónGet a shard for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a shard configuration profile for a Neki branchPLANETSCALE_GET_SHARD_CONFIGURATION_PROFILEAcciónGet a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SHARD_CONFIGURATION_PROFILEAcciónGet a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a change request for a Neki shard configuration profilePLANETSCALE_GET_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTAcciónGet a change request for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTAcciónGet a change request for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a shard in a Neki shard configuration profilePLANETSCALE_GET_SHARD_CONFIGURATION_PROFILE_SHARDAcciónGet a shard in a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SHARD_CONFIGURATION_PROFILE_SHARDAcciónGet a shard in a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a sidecar for a Neki branchPLANETSCALE_GET_SIDECARAcciónGet a sidecar for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SIDECARAcciónGet a sidecar for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
sidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a change request for a Neki sidecarPLANETSCALE_GET_SIDECAR_CHANGE_REQUESTAcciónGet a change request for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_GET_SIDECAR_CHANGE_REQUESTAcciónGet a change request for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the change request
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
sidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a switchoverPLANETSCALE_GET_SWITCHOVERAcciónGet a switchover. PostgreSQL databases only.
PLANETSCALE_GET_SWITCHOVERAcciónGet a switchover. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the switchover
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get time-series tablet metricsPLANETSCALE_GET_TABLET_METRICSAcciónGet time-series tablet metrics.
PLANETSCALE_GET_TABLET_METRICSAcciónGet time-series tablet metrics.
Parámetros de entrada
tostringEnd of a custom time range as an ISO 8601 timestamp
podstringFilter by pod
fromstringStart of a custom time range as an ISO 8601 timestamp
shardstringFilter by shard
stepsintegerNumber of data points to return
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumNamed time period to retrieve. Defaults to 12h.
15m1h3h6h12h1d2d7d8dmetricsstring[]Metric names to retrieve. Pass as `metrics[]=name` (repeat for multiple), `metrics=name`, or a comma-separated list (`metrics=name,other`). Time range is `period` (for example `15m`) or ISO 8601 `from`/`to`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringFilter by keyspace
workflowstringFilter by workflow ID
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a traffic budgetPLANETSCALE_GET_TRAFFIC_BUDGETAcciónGet a traffic budget. PostgreSQL databases only.
PLANETSCALE_GET_TRAFFIC_BUDGETAcciónGet a traffic budget. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the traffic budget
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a webhookPLANETSCALE_GET_WEBHOOKAcciónGet a webhook.
PLANETSCALE_GET_WEBHOOKAcciónGet a webhook.
Parámetros de entrada
idstringObligatorioThe ID of the webhook
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Lint a branch schemaPLANETSCALE_LINT_BRANCH_SCHEMAAcciónLint a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LINT_BRANCH_SCHEMAAcciónLint a branch schema. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List change requests for a Neki adminPLANETSCALE_LIST_ADMIN_CHANGE_REQUESTSAcciónList change requests for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ADMIN_CHANGE_REQUESTSAcciónList change requests for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List parameters for a Neki adminPLANETSCALE_LIST_ADMIN_PARAMETERSAcciónList parameters for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ADMIN_PARAMETERSAcciónList parameters for a Neki admin. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List admin size SKUs for a Neki branchPLANETSCALE_LIST_ADMIN_SIZE_SKUSAcciónList admin size SKUs for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ADMIN_SIZE_SKUSAcciónList admin size SKUs for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List audit logsPLANETSCALE_LIST_AUDIT_LOGSAcciónList audit logs.
PLANETSCALE_LIST_AUDIT_LOGSAcciónList audit logs.
Parámetros de entrada
limitintegerIf provided, specifies the number of returned results (max 100)
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization
ending_beforestringIf provided, returns results before the specified cursor
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List backup policiesPLANETSCALE_LIST_BACKUP_POLICIESAcciónList backup policies.
PLANETSCALE_LIST_BACKUP_POLICIESAcciónList backup policies.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List backupsPLANETSCALE_LIST_BACKUPSAcciónList backups.
PLANETSCALE_LIST_BACKUPSAcciónList backups.
Parámetros de entrada
tostringFilter backups started before this date (e.g. 2023-01-31T23:59:59Z)
allbooleanWhether to include all backups, including deleted ones
fromstringFilter backups started after this date (e.g. 2023-01-01T00:00:00Z)
statestringenumFilter backups by state
pendingrunningsuccessfailedcanceledignoredbranchstringObligatorioThe name of the branch
policystringFilter backups by backup policy ID
databasestringObligatorioThe name of the database the branch belongs to
per_pageintegerIf provided, specifies the number of returned results
productionbooleanFilter backups by production branch
running_atstringFilter backups that are running during a specific time (e.g. 2023-01-01T00:00:00Z..2023-01-01T23:59:59Z)
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get bouncer resize requestsPLANETSCALE_LIST_BOUNCER_RESIZE_REQUESTSAcciónGet bouncer resize requests. PostgreSQL databases only.
PLANETSCALE_LIST_BOUNCER_RESIZE_REQUESTSAcciónGet bouncer resize requests. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
bouncerstringObligatorioThe name of the bouncer
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List bouncersPLANETSCALE_LIST_BOUNCERSAcciónList bouncers. PostgreSQL databases only.
PLANETSCALE_LIST_BOUNCERSAcciónList bouncers. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List branch anomaliesPLANETSCALE_LIST_BRANCH_ANOMALIESAcciónList branch anomalies.
PLANETSCALE_LIST_BRANCH_ANOMALIESAcciónList branch anomalies.
Parámetros de entrada
tostringEnd time for filtering anomalies (ISO 8601 timestamp)
fromstringStart time for filtering anomalies (ISO 8601 timestamp)
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering anomalies
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get bouncer resize requestsPLANETSCALE_LIST_BRANCH_BOUNCER_RESIZE_REQUESTSAcciónGet bouncer resize requests. PostgreSQL databases only.
PLANETSCALE_LIST_BRANCH_BOUNCER_RESIZE_REQUESTSAcciónGet bouncer resize requests. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get branch change requestsPLANETSCALE_LIST_BRANCH_CHANGE_REQUESTSAcciónGet branch change requests. PostgreSQL databases only.
PLANETSCALE_LIST_BRANCH_CHANGE_REQUESTSAcciónGet branch change requests. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List branchesPLANETSCALE_LIST_BRANCHESAcciónList branches.
PLANETSCALE_LIST_BRANCHESAcciónList branches.
Parámetros de entrada
orderstringenumOrder branches by created_at time
ascdescquerystringSearch branches by name
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
productionbooleanFilter branches by production status
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
safe_migrationsbooleanFilter branches by safe migrations (DDL protection)
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List branch queriesPLANETSCALE_LIST_BRANCH_QUERIESAcciónList branch queries.
PLANETSCALE_LIST_BRANCH_QUERIESAcciónList branch queries.
Parámetros de entrada
tostringEnd time for filtering query statistics (ISO 8601 timestamp)
dirstringenumSort direction
ascdescfromstringStart time for filtering query statistics (ISO 8601 timestamp)
sortstringenumField to sort by
keyspacequerylastRuncounterrorCountrowsReadrowsAffectedrowsReturnedrowsReadPerReturnedrowsReadPerQueryrowsReturnedPerQueryrowsAffectedPerQuery+33typestringenumFilter by statement type
SELECTINSERTUPDATEDELETEquerystringSearch query statistics by SQL pattern
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
fieldsstring[]Specific fields to include in the response
periodstringenumTime period for filtering query statistics
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List branch query errorsPLANETSCALE_LIST_BRANCH_QUERY_ERRORSAcciónList branch query errors.
PLANETSCALE_LIST_BRANCH_QUERY_ERRORSAcciónList branch query errors.
Parámetros de entrada
tostringEnd time for filtering query errors (ISO 8601 timestamp)
dirstringenumSort direction
ascdescfromstringStart time for filtering query errors (ISO 8601 timestamp)
sortstringenumField to sort by
errorlastRuncounttotalTimetimePerQueryquerystringSearch query errors by error message
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering query errors
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List query tagsPLANETSCALE_LIST_BRANCH_QUERY_TAGSAcciónList query tags.
PLANETSCALE_LIST_BRANCH_QUERY_TAGSAcciónList query tags.
Parámetros de entrada
tostringEnd time for filtering tags (ISO 8601 timestamp)
fromstringStart time for filtering tags (ISO 8601 timestamp)
querystringSearch tags by name
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period for filtering tags
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringFilter by keyspace
per_pageintegerIf provided, specifies the number of returned results
fingerprintstringFilter to tags on queries with this fingerprint
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
values_limitintegerMaximum number of values returned per tag (1-100)
literal_values_onlybooleanOnly return literal tag values, excluding overflow and collapsed values
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List query statistics grouped by tagPLANETSCALE_LIST_BRANCH_QUERY_TAG_SUMMARIESAcciónList query statistics grouped by tag.
PLANETSCALE_LIST_BRANCH_QUERY_TAG_SUMMARIESAcciónList query statistics grouped by tag.
Parámetros de entrada
tostringEnd time for filtering query statistics (ISO 8601 timestamp)
dirstringenumSort direction
ascdescfromstringStart time for filtering query statistics (ISO 8601 timestamp)
sortstringenumField to sort by
dimensionslastRuncounterrorCountrowsReadrowsAffectedrowsReturnedrowsReadPerReturnedrowsReadPerQueryrowsReturnedPerQueryrowsAffectedPerQuerytotalTime+32tagsstring[]Tag ids returned by the tags list endpoint
typestringenumFilter by statement type
SELECTINSERTUPDATEDELETEquerystringSearch query statistics by SQL pattern
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
fieldsstring[]Specific fields to include in the response
periodstringenumTime period for filtering query statistics
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
tablet_typestringenumFilter by tablet type
primaryreplicardonlyorganizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get branch resize requestsPLANETSCALE_LIST_BRANCH_RESIZE_REQUESTSAcciónGet branch resize requests.
PLANETSCALE_LIST_BRANCH_RESIZE_REQUESTSAcciónGet branch resize requests.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List available cluster sizesPLANETSCALE_LIST_CLUSTER_SIZE_SKUSAcciónList available cluster sizes for an organization.
PLANETSCALE_LIST_CLUSTER_SIZE_SKUSAcciónList available cluster sizes for an organization.
Parámetros de entrada
ratesbooleanWhether to include pricing rates in the response. Defaults to false.
enginestringenumThe database engine to filter by. Defaults to 'mysql'.
mysqlpostgresqlnekiregionstringThe region slug to get rates for. If not specified, uses the organization's default region.
databasestringThe database name to resolve rates for. When specified, database-level custom rates take precedence over organization rates.
externalbooleanWhen true, list cluster sizes for external keyspaces. Defaults to false.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List IP restriction entriesPLANETSCALE_LIST_DATABASE_POSTGRES_CIDRSAcciónList IP restriction entries. PostgreSQL databases only.
PLANETSCALE_LIST_DATABASE_POSTGRES_CIDRSAcciónList IP restriction entries. PostgreSQL databases only.
Parámetros de entrada
databasestringObligatorioThe name of the database
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the database belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List database regionsPLANETSCALE_LIST_DATABASE_REGIONSAcciónList database regions.
PLANETSCALE_LIST_DATABASE_REGIONSAcciónList database regions.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List databasesPLANETSCALE_LIST_DATABASESAcciónList databases.
PLANETSCALE_LIST_DATABASESAcciónList databases.
Parámetros de entrada
querystringSearch term to filter databases by name
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List deploy operationsPLANETSCALE_LIST_DEPLOY_OPERATIONSAcciónList deploy operations for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_DEPLOY_OPERATIONSAcciónList deploy operations for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List deploy request reviewsPLANETSCALE_LIST_DEPLOY_REQUEST_REVIEWSAcciónList deploy request reviews. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_DEPLOY_REQUEST_REVIEWSAcciónList deploy request reviews. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the database the deploy request belongs to
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the deploy request belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List deploy requestsPLANETSCALE_LIST_DEPLOY_REQUESTSAcciónList deploy requests for a database. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_DEPLOY_REQUESTSAcciónList deploy requests for a database. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
statestringFilter by state of the deploy request (open, closed, deployed)
branchstringFilter by the name of the branch the deploy request is created from
databasestringObligatorioThe name of the deploy request's database
per_pageintegerIf provided, specifies the number of returned results
running_atstringFilter deploy requests by the date they were running. (e.g. 2023-01-01T00:00:00Z..2023-01-31T23:59:59Z)
deployed_atstringFilter deploy requests by the date they were deployed. (e.g. 2023-01-01T00:00:00Z..2023-01-31T23:59:59Z)
into_branchstringFilter by the name of the branch the deploy request will be merged into
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List cluster extensionsPLANETSCALE_LIST_EXTENSIONSAcciónList cluster extensions. PostgreSQL databases only.
PLANETSCALE_LIST_EXTENSIONSAcciónList cluster extensions. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List generated query patterns reportsPLANETSCALE_LIST_GENERATED_QUERY_PATTERNS_REPORTSAcciónList generated query patterns reports.
PLANETSCALE_LIST_GENERATED_QUERY_PATTERNS_REPORTSAcciónList generated query patterns reports.
Parámetros de entrada
limitintegerIf provided, specifies the number of returned results (max 100)
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the branch belongs to
ending_beforestringIf provided, returns results before the specified cursor
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Insights agent runsPLANETSCALE_LIST_INSIGHTS_AGENT_RUNSAcciónList Insights agent runs.
PLANETSCALE_LIST_INSIGHTS_AGENT_RUNSAcciónList Insights agent runs.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Insights Agent schedulesPLANETSCALE_LIST_INSIGHTS_AGENT_SCHEDULESAcciónList Insights Agent schedules.
PLANETSCALE_LIST_INSIGHTS_AGENT_SCHEDULESAcciónList Insights Agent schedules.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get invoicesPLANETSCALE_LIST_INVOICESAcciónGet the invoices for an organization.
PLANETSCALE_LIST_INVOICESAcciónGet the invoices for an organization.
Parámetros de entrada
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List maintenance schedulesPLANETSCALE_LIST_MAINTENANCE_SCHEDULESAcciónList maintenance schedules. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_MAINTENANCE_SCHEDULESAcciónList maintenance schedules. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List maintenance windowsPLANETSCALE_LIST_MAINTENANCE_WINDOWSAcciónList maintenance windows. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_MAINTENANCE_WINDOWSAcciónList maintenance windows. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
idstringObligatorioThe ID of the maintenance schedule
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List change requests for a Neki branchPLANETSCALE_LIST_NEKI_CHANGE_REQUESTSAcciónList change requests for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_NEKI_CHANGE_REQUESTSAcciónList change requests for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
statestring[]Filter change requests by state
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
target_idstringFilter change requests by target ID. Requires target_types
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
target_typesstring[]Filter change requests by target type. Must contain one or more of: NekiAdmin, NekiCluster, NekiConfigurationProfile, NekiRouter, or NekiSidecar
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List organization membersPLANETSCALE_LIST_ORGANIZATION_MEMBERSAcciónList organization members.
PLANETSCALE_LIST_ORGANIZATION_MEMBERSAcciónList organization members.
Parámetros de entrada
querystringSearch term to filter members by name or email
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List organizationsPLANETSCALE_LIST_ORGANIZATIONSAcciónWhen using a service token, returns the list of organizations the service token has access to. When using an OAuth token, returns the list of organizations the user has access to.
PLANETSCALE_LIST_ORGANIZATIONSAcciónWhen using a service token, returns the list of organizations the service token has access to. When using an OAuth token, returns the list of organizations the user has access to.
Parámetros de entrada
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List organization SSO domainsPLANETSCALE_LIST_ORGANIZATION_SSO_DOMAINSAcciónList email domains registered for organization SSO.
PLANETSCALE_LIST_ORGANIZATION_SSO_DOMAINSAcciónList email domains registered for organization SSO.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List team membersPLANETSCALE_LIST_ORGANIZATION_TEAM_MEMBERSAcciónList team members.
PLANETSCALE_LIST_ORGANIZATION_TEAM_MEMBERSAcciónList team members.
Parámetros de entrada
teamstringObligatorioThe slug of the team
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List teams in an organizationPLANETSCALE_LIST_ORGANIZATION_TEAMSAcciónList teams in an organization.
PLANETSCALE_LIST_ORGANIZATION_TEAMSAcciónList teams in an organization.
Parámetros de entrada
querystringSearch term to filter teams by name
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List cluster parametersPLANETSCALE_LIST_PARAMETERSAcciónReturns the parameters for a branch. To update the parameters, use the "update_branch_change_request" endpoint. PostgreSQL databases only.
PLANETSCALE_LIST_PARAMETERSAcciónReturns the parameters for a branch. To update the parameters, use the "update_branch_change_request" endpoint. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List passwordsPLANETSCALE_LIST_PASSWORDSAcciónList passwords. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_LIST_PASSWORDSAcciónList passwords. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
querystringSearch passwords by name
branchstringObligatorioThe name of the branch the password belongs to
statusstringFilter passwords by status
databasestringObligatorioThe name of the database the password belongs to
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization the password belongs to
read_only_region_idstringA read-only region of the database branch. If present, the password results will be filtered to only those in the region
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List available Postgres versionsPLANETSCALE_LIST_POSTGRES_VERSIONSAcciónList the published Postgres versions available to the requested engine. PostgreSQL databases only.
PLANETSCALE_LIST_POSTGRES_VERSIONSAcciónList the published Postgres versions available to the requested engine. PostgreSQL databases only.
Parámetros de entrada
enginestringObligatorioThe database engine to list Postgres versions for.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List read-only regionsPLANETSCALE_LIST_READ_ONLY_REGIONSAcciónList read-only regions for the database's default branch.
PLANETSCALE_LIST_READ_ONLY_REGIONSAcciónList read-only regions for the database's default branch.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get read-only replica change requestsPLANETSCALE_LIST_READ_ONLY_REPLICA_CHANGE_REQUESTSAcciónGet read-only replica change requests.
PLANETSCALE_LIST_READ_ONLY_REPLICA_CHANGE_REQUESTSAcciónGet read-only replica change requests.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List read-only replicasPLANETSCALE_LIST_READ_ONLY_REPLICASAcciónList read-only replicas.
PLANETSCALE_LIST_READ_ONLY_REPLICASAcciónList read-only replicas.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List regions for an organizationPLANETSCALE_LIST_REGIONS_FOR_ORGANIZATIONAcciónList regions for an organization.
PLANETSCALE_LIST_REGIONS_FOR_ORGANIZATIONAcciónList regions for an organization.
Parámetros de entrada
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List rolesPLANETSCALE_LIST_ROLESAcciónList roles. PostgreSQL databases only.
PLANETSCALE_LIST_ROLESAcciónList roles. PostgreSQL databases only.
Parámetros de entrada
querystringSearch roles by name or username
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
statusstringFilter roles by status
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List change requests for a Neki routerPLANETSCALE_LIST_ROUTER_CHANGE_REQUESTSAcciónList change requests for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ROUTER_CHANGE_REQUESTSAcciónList change requests for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8drouterstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List parameters for a Neki routerPLANETSCALE_LIST_ROUTER_PARAMETERSAcciónList parameters for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ROUTER_PARAMETERSAcciónList parameters for a Neki router. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List routers for a Neki branchPLANETSCALE_LIST_ROUTERSAcciónList routers for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ROUTERSAcciónList routers for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List router size SKUs for a Neki branchPLANETSCALE_LIST_ROUTER_SIZE_SKUSAcciónList router size SKUs for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_ROUTER_SIZE_SKUSAcciónList router size SKUs for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List schema recommendationsPLANETSCALE_LIST_SCHEMA_RECOMMENDATIONSAcciónList schema recommendations.
PLANETSCALE_LIST_SCHEMA_RECOMMENDATIONSAcciónList schema recommendations.
Parámetros de entrada
statestringenumFilter by recommendation state
opencloseddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List change requests for a Neki shard configuration profilePLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTSAcciónList change requests for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_CHANGE_REQUESTSAcciónList change requests for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List extensions for a Neki shard configuration profilePLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_EXTENSIONSAcciónList extensions for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_EXTENSIONSAcciónList extensions for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List parameters for a Neki shard configuration profilePLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_PARAMETERSAcciónList parameters for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_PARAMETERSAcciónList parameters for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List shard configuration profiles for a Neki branchPLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILESAcciónList shard configuration profiles for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILESAcciónList shard configuration profiles for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List shards for a Neki shard configuration profilePLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónList shards for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARD_CONFIGURATION_PROFILE_SHARDSAcciónList shards for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
querystringSearch shards by name or display name
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List shards for a Neki branchPLANETSCALE_LIST_SHARDSAcciónList shards for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SHARDSAcciónList shards for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
querystringSearch shards by name, display name, or configuration profile
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
exclude_configuration_profilestringExclude shards in this shard configuration profile
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List change requests for a Neki sidecarPLANETSCALE_LIST_SIDECAR_CHANGE_REQUESTSAcciónList change requests for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SIDECAR_CHANGE_REQUESTSAcciónList change requests for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumFilter change requests by named period
15m1h3h6h12h1d2d7d8dsidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
completed_atstringFilter change requests completed between two ISO 8601 timestamps
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List parameters for a Neki sidecarPLANETSCALE_LIST_SIDECAR_PARAMETERSAcciónList parameters for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SIDECAR_PARAMETERSAcciónList parameters for a Neki sidecar. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
sidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List sidecars for a Neki branchPLANETSCALE_LIST_SIDECARSAcciónList sidecars for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_LIST_SIDECARSAcciónList sidecars for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List switchoversPLANETSCALE_LIST_SWITCHOVERSAcciónList switchovers. PostgreSQL databases only.
PLANETSCALE_LIST_SWITCHOVERSAcciónList switchovers. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List traffic budgetsPLANETSCALE_LIST_TRAFFIC_BUDGETSAcciónList traffic budgets. PostgreSQL databases only.
PLANETSCALE_LIST_TRAFFIC_BUDGETSAcciónList traffic budgets. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
periodstringenumTime period filter
15m1h3h6h12h1d2d7d8ddatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
per_pageintegerIf provided, specifies the number of returned results
created_atstringFilter by creation date range (format: 'start..end')
fingerprintstringFilter budgets by query fingerprint
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List traffic budgets affecting a query fingerprintPLANETSCALE_LIST_TRAFFIC_BUDGETS_FOR_QUERYAcciónList traffic budgets affecting a query fingerprint. PostgreSQL databases only.
PLANETSCALE_LIST_TRAFFIC_BUDGETS_FOR_QUERYAcciónList traffic budgets affecting a query fingerprint. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
keyspacestringOptional keyspace filter
per_pageintegerIf provided, specifies the number of returned results
fingerprintstringObligatorioThe query fingerprint
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List webhooksPLANETSCALE_LIST_WEBHOOKSAcciónList webhooks for a database.
PLANETSCALE_LIST_WEBHOOKSAcciónList webhooks for a database.
Parámetros de entrada
databasestringObligatorioThe name of the database
per_pageintegerIf provided, specifies the number of returned results
next_cursorstringContinuation cursor returned by the previous call; omit for the first page.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get OAuth token infoPLANETSCALE_OAUTH_TOKEN_INFOAcciónInspect whether the current OAuth access token is active and return its scopes and expiry.
PLANETSCALE_OAUTH_TOKEN_INFOAcciónInspect whether the current OAuth access token is active and return its scopes and expiry.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Promote a branchPLANETSCALE_PROMOTE_BRANCHAcciónPromotes a branch from development to production. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_PROMOTE_BRANCHAcciónPromotes a branch from development to production. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Queue a deploy requestPLANETSCALE_QUEUE_DEPLOY_REQUESTAcciónQueue a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_QUEUE_DEPLOY_REQUESTAcciónQueue a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
instant_ddlbooleanWhether or not to deploy the request with instant DDL. Defaults to false.
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reassign objects owned by one role to another rolePLANETSCALE_REASSIGN_ROLE_OBJECTSAcciónReassign objects owned by one role to another role. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_REASSIGN_ROLE_OBJECTSAcciónReassign objects owned by one role to another role. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
idstringObligatorioThe ID of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
successorstringObligatorioThe role to reassign ownership to. Accepts the role's ID, or its username with or without the branch ID suffix.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove a member from an organizationPLANETSCALE_REMOVE_ORGANIZATION_MEMBERAcciónRemove a member from an organization. This is destructive: confirm the target before calling.
PLANETSCALE_REMOVE_ORGANIZATION_MEMBERAcciónRemove a member from an organization. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the user
organizationstringObligatorioThe name of the organization
delete_passwordsbooleanWhether to delete all passwords associated with the member. Only available when removing other members (not yourself).
delete_service_tokensbooleanWhether to delete all service tokens associated with the member. Only available when removing other members (not yourself).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove a member from a teamPLANETSCALE_REMOVE_ORGANIZATION_TEAM_MEMBERAcciónRemove a member from a team. This is destructive: confirm the target before calling.
PLANETSCALE_REMOVE_ORGANIZATION_TEAM_MEMBERAcciónRemove a member from a team. This is destructive: confirm the target before calling.
Parámetros de entrada
idstringObligatorioThe ID of the team membership or the ID of the member to remove
teamstringObligatorioThe slug of the team
organizationstringObligatorioThe name of the organization
delete_passwordsbooleanWhether to delete the member's passwords created through this team
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Renew a passwordPLANETSCALE_RENEW_PASSWORDAcciónRenew a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_RENEW_PASSWORDAcciónRenew a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
idstringObligatorioThe ID of the password
branchstringObligatorioThe name of the branch the password belongs to
databasestringObligatorioThe name of the database the password belongs to
organizationstringObligatorioThe name of the organization the password belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Renew role expirationPLANETSCALE_RENEW_ROLEAcciónRenew role expiration. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_RENEW_ROLEAcciónRenew role expiration. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
idstringObligatorioThe ID of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reset default credentialsPLANETSCALE_RESET_DEFAULT_ROLEAcciónReset default credentials. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_RESET_DEFAULT_ROLEAcciónReset default credentials. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reset a role's passwordPLANETSCALE_RESET_ROLEAcciónReset a role's password. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_RESET_ROLEAcciónReset a role's password. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
idstringObligatorioThe ID of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Review a deploy requestPLANETSCALE_REVIEW_DEPLOY_REQUESTAcciónReview a deploy request by either approving or commenting on the deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_REVIEW_DEPLOY_REQUESTAcciónReview a deploy request by either approving or commenting on the deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
bodystringDeploy request review comments
statestringenumWhether the review is a comment or approval. Service tokens must have corresponding access (either `approve_deploy_request` or `review_deploy_request`)
commentedapprovednumberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the database the deploy request belongs to
organizationstringObligatorioThe name of the organization the deploy request belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run maintenance for a Postgres branchPLANETSCALE_RUN_BRANCH_MAINTENANCEAcciónRun maintenance for a Postgres branch. PostgreSQL databases only. This changes operational state and may not be safely reversible.
PLANETSCALE_RUN_BRANCH_MAINTENANCEAcciónRun maintenance for a Postgres branch. PostgreSQL databases only. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
update_postgres_minor_versionbooleanWhether to upgrade the branch to the latest PostgreSQL minor version during maintenance.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run maintenance for a Neki shard configuration profilePLANETSCALE_RUN_SHARD_CONFIGURATION_PROFILE_MAINTENANCEAcciónRun maintenance for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This changes operational state and may not be safely reversible.
PLANETSCALE_RUN_SHARD_CONFIGURATION_PROFILE_MAINTENANCEAcciónRun maintenance for a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run maintenance for selected Neki shard configuration profilesPLANETSCALE_RUN_SHARD_CONFIGURATION_PROFILES_MAINTENANCEAcciónRun maintenance for selected Neki shard configuration profiles. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This changes operational state and may not be safely reversible.
PLANETSCALE_RUN_SHARD_CONFIGURATION_PROFILES_MAINTENANCEAcciónRun maintenance for selected Neki shard configuration profiles. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404. This changes operational state and may not be safely reversible.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profile_namesstring[]ObligatorioThe names of the shard configuration profiles to maintain
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set the default shard configuration profile for a Neki branchPLANETSCALE_SET_DEFAULT_SHARD_CONFIGURATION_PROFILEAcciónSet the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_SET_DEFAULT_SHARD_CONFIGURATION_PROFILEAcciónSet the default shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioThe name of the shard configuration profile to make the default
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Skip revert periodPLANETSCALE_SKIP_REVERT_PERIODAcciónSkips the revert period for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
PLANETSCALE_SKIP_REVERT_PERIODAcciónSkips the revert period for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources. This changes operational state and may not be safely reversible.
Parámetros de entrada
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Test a webhookPLANETSCALE_TEST_WEBHOOKAcciónSends a test event to the webhook. This changes operational state and may not be safely reversible.
PLANETSCALE_TEST_WEBHOOKAcciónSends a test event to the webhook. This changes operational state and may not be safely reversible.
Parámetros de entrada
idstringObligatorioThe ID of the webhook
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update the admin for a Neki branchPLANETSCALE_UPDATE_ADMINAcciónUpdate the admin for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_ADMINAcciónUpdate the admin for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
admin_sizestringThe admin size SKU, e.g. `NKA_0`.
parametersobjectAdmin parameters nested by namespace (e.g., {"admin": {"recovery-poll-interval": "10s"}})
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update auto-apply for deploy requestPLANETSCALE_UPDATE_AUTO_APPLYAcciónEnables or disabled the auto-apply setting for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_AUTO_APPLYAcciónEnables or disabled the auto-apply setting for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
enablebooleanWhether or not to enable auto-apply for the deploy request
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update auto-delete branch for deploy requestPLANETSCALE_UPDATE_AUTO_DELETE_BRANCHAcciónEnables or disabled the auto-delete branch setting for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_AUTO_DELETE_BRANCHAcciónEnables or disabled the auto-delete branch setting for a deploy request. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
enablebooleanWhether or not to enable auto-delete branch for the deploy request
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a backupPLANETSCALE_UPDATE_BACKUPAcciónUpdate a backup.
PLANETSCALE_UPDATE_BACKUPAcciónUpdate a backup.
Parámetros de entrada
idstringObligatorioThe ID of the backup
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
protectedbooleanWhether the backup is protected from deletion or not
organizationstringObligatorioThe name of the organization the branch belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a backup policyPLANETSCALE_UPDATE_BACKUP_POLICYAcciónUpdate a backup policy.
PLANETSCALE_UPDATE_BACKUP_POLICYAcciónUpdate a backup policy.
Parámetros de entrada
idstringObligatorioThe ID of the backup policy
namestringThe name of the backup policy
targetstringenumWhether the policy is for production or development branches
productiondevelopmentdatabasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
schedule_dayintegerDay of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
schedule_timestringThe time of day that the backup is scheduled, in HH:MM format
schedule_weekintegerWeek of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
frequency_unitstringenumThe unit for the frequency of the backup policy
hourdayweekmonthretention_unitstringenumThe unit for the retention period of the backup policy
hourdayweekmonthyearfrequency_valueintegerA number value for the frequency of the backup policy
retention_valueintegerA number value for the retention period of the backup policy
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert a bouncer resize requestPLANETSCALE_UPDATE_BOUNCER_RESIZE_REQUESTAcciónUpsert a bouncer resize request. PostgreSQL databases only.
PLANETSCALE_UPDATE_BOUNCER_RESIZE_REQUESTAcciónUpsert a bouncer resize request. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
targetstringThe type of server the bouncer targets.
bouncerstringObligatorioThe name of the bouncer
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
parametersobjectBouncer configuration parameters nested by namespace (e.g., {"pgbouncer": {"default_pool_size": "100"}}). Use the 'List cluster parameters' endpoint to retrieve available parameters. Only parameters with namespace 'pgbouncer' can be updated.
bouncer_sizestringThe bouncer size SKU name (e.g., 'PGB_5', 'PGB_10', 'PGB_20', 'PGB_40', 'PGB_80', 'PGB_160'). Defaults to 'PGB_5'.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
replicas_per_cellintegerThe number of PgBouncers per availability zone. Defaults to 1.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a branchPLANETSCALE_UPDATE_BRANCHAcciónUpdate a branch.
PLANETSCALE_UPDATE_BRANCHAcciónUpdate a branch.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
new_namestringThe name to update the branch
organizationstringObligatorioThe name of the organization the branch belongs to
deletion_protectedbooleanWhether deletion protection is enabled for the branch
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert a change request for cluster size, replicas, storage, or parametersPLANETSCALE_UPDATE_BRANCH_CHANGE_REQUESTAcciónUpsert a change request for cluster size, replicas, storage, or parameters. PostgreSQL databases only.
PLANETSCALE_UPDATE_BRANCH_CHANGE_REQUESTAcciónUpsert a change request for cluster size, replicas, storage, or parameters. PostgreSQL databases only.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
replicasintegerThe total number of replicas
parametersobjectCluster configuration parameters nested by namespace (e.g., {"pgconf": {"max_connections": "200"}}). Use the 'List cluster parameters' endpoint to retrieve available parameters. Supported namespaces include 'patroni', 'pgconf', and 'pgbouncer'.
cluster_sizestringThe size of the cluster. Available sizes can be found using the 'List cluster sizes' endpoint.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upsert a resize requestPLANETSCALE_UPDATE_BRANCH_RESIZE_REQUESTAcciónUpsert a resize request.
PLANETSCALE_UPDATE_BRANCH_RESIZE_REQUESTAcciónUpsert a resize request.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
vtgate_sizestringThe size of the vtgate cluster: VTG_5, VTG_10,...
organizationstringObligatorioThe name of the organization the branch belongs to
vtgate_countintegerThe number of vtgates in an availability zone
vtgate_max_countintegerThe maximum number of vtgates in an availability zone when autoscaling is enabled
vtgate_autoscalingbooleanIf autoscaling is enabled for the vtgate cluster
vtgate_target_cpu_utilizationintegerThe target CPU utilization for the vtgate cluster when autoscaling is enabled
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update an IP restriction entryPLANETSCALE_UPDATE_DATABASE_POSTGRES_CIDRAcciónUpdate an IP restriction entry. PostgreSQL databases only.
PLANETSCALE_UPDATE_DATABASE_POSTGRES_CIDRAcciónUpdate an IP restriction entry. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the IP restriction entry
rolestringThe PostgreSQL role to restrict access to. Leave empty to allow access for all roles.
cidrsstring[]List of IPv4 CIDR ranges (e.g., ['192.168.1.0/24', '192.168.1.1/32']). Only provided fields will be updated.
schemastringThe PostgreSQL schema to restrict access to. Leave empty to allow access to all schemas.
databasestringObligatorioThe name of the database
descriptionstringAn optional description for the IP restriction rule. Pass an empty string to clear.
organizationstringObligatorioThe name of the organization the database belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update database settingsPLANETSCALE_UPDATE_DATABASE_SETTINGSAcciónUpdate database settings.
PLANETSCALE_UPDATE_DATABASE_SETTINGSAcciónUpdate database settings.
Parámetros de entrada
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
new_namestringThe name to update the database to
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
default_branchstringThe default branch of the database
deletion_protectedbooleanWhether deletion protection is enabled for the database
migration_frameworkstringA migration framework to use on the database. (Vitess only)
allow_data_branchingbooleanWhether or not data branching is allowed on the database. (Vitess only)
automatic_migrationsbooleanWhether or not to copy migration data to new branches and in deploy requests. (Vitess only)
insights_raw_queriesbooleanWhether or not full queries should be collected from the database
migration_table_namestringName of table to use as migration table for the database. (Vitess only)
restrict_branch_regionbooleanWhether or not to limit branch creation to the same region as the one selected during database creation.
require_approval_for_deploybooleanWhether or not deploy requests must be approved by a database administrator other than the request creator
allow_foreign_key_constraintsbooleanWhether or not foreign key constraints are allowed on the database. (Vitess only)
production_branch_web_consolebooleanWhether or not the web console can be used on the production branch of the database
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update database throttler configurationsPLANETSCALE_UPDATE_DATABASE_THROTTLERAcciónUpdate database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_DATABASE_THROTTLERAcciónUpdate database throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
ratiointegerA throttler ratio between 0 and 95 that will apply to all keyspaces in the database. 0 effectively disables throttler, while 95 drastically slows down deploy request migrations
databasestringObligatorioThe name of the database that the throttled deploy requests belong to
organizationstringObligatorioThe name of the organization that the throttled deploy requests belong to
configurationsobject[]If specifying throttler ratios per keyspace, an array of { "keyspace_name": "mykeyspace", "ratio": 10 }, one for each eligible keyspace
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set the data topology for a Neki branchPLANETSCALE_UPDATE_DATA_TOPOLOGYAcciónSet the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_DATA_TOPOLOGYAcciónSet the data topology for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
data_topologyobjectObligatorioThe data topology JSON to set for the branch
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update deploy request throttler configurationsPLANETSCALE_UPDATE_DEPLOY_REQUEST_THROTTLERAcciónUpdate deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_DEPLOY_REQUEST_THROTTLERAcciónUpdate deploy request throttler configurations. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
ratiointegerA throttler ratio between 0 and 95 that will apply to all keyspaces affected by the deploy request. 0 effectively disables throttler, while 95 drastically slows down migrations in the deploy request
numberintegerObligatorioThe number of the deploy request
databasestringObligatorioThe name of the deploy request's database
organizationstringObligatorioThe name of the deploy request's organization
configurationsobject[]If specifying throttler ratios per keyspace, an array of { "keyspace_name": "mykeyspace", "ratio": 10 }, one for each eligible keyspace
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update an Insights Agent schedulePLANETSCALE_UPDATE_INSIGHTS_AGENT_SCHEDULEAcciónUpdate an Insights Agent schedule.
PLANETSCALE_UPDATE_INSIGHTS_AGENT_SCHEDULEAcciónUpdate an Insights Agent schedule.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
enabledbooleanWhether the schedule is enabled
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
run_typestringObligatorioenumThe scheduled run type
review_slow_queriesimplement_schema_recommendationtime_zonestringThe IANA time zone
day_of_weekintegerThe weekday for weekly schedules
day_of_monthintegerThe day of month for monthly schedules
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
schedule_timestringThe local time of day in HH:MM format
frequency_unitstringenumThe cadence unit
dayweekmonth
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update an organizationPLANETSCALE_UPDATE_ORGANIZATIONAcciónUpdate an organization.
PLANETSCALE_UPDATE_ORGANIZATIONAcciónUpdate an organization.
Parámetros de entrada
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
billing_emailstringThe billing email for the organization
idp_managed_rolesbooleanWhether or not the IdP provider is be responsible for managing roles in PlanetScale
invoice_budget_amountintegerThe expected monthly budget for the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update organization member rolePLANETSCALE_UPDATE_ORGANIZATION_MEMBERSHIPAcciónUpdate organization member role.
PLANETSCALE_UPDATE_ORGANIZATION_MEMBERSHIPAcciónUpdate organization member role.
Parámetros de entrada
idstringObligatorioThe ID of the user
rolestringObligatorioThe role to assign to the member (e.g., 'admin', 'member'). Note: Cannot update your own role. Roles managed by IdP cannot be updated via API.
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update an organization teamPLANETSCALE_UPDATE_ORGANIZATION_TEAMAcciónUpdate an organization team.
PLANETSCALE_UPDATE_ORGANIZATION_TEAMAcciónUpdate an organization team.
Parámetros de entrada
namestringThe new name for the team
teamstringObligatorioThe slug of the team
descriptionstringThe new description for the team
organizationstringObligatorioThe name of the organization
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a passwordPLANETSCALE_UPDATE_PASSWORDAcciónUpdate a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_PASSWORDAcciónUpdate a password. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
idstringObligatorioThe ID of the password
namestringThe name for the password
cidrsstring[]List of IP addresses or CIDR ranges that can use this password
branchstringObligatorioThe name of the branch the password belongs to
databasestringObligatorioThe name of the database the password belongs to
organizationstringObligatorioThe name of the organization the password belongs to
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a read-only replicaPLANETSCALE_UPDATE_READ_ONLY_REPLICAAcciónUpdate a read-only replica.
PLANETSCALE_UPDATE_READ_ONLY_REPLICAAcciónUpdate a read-only replica.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
replicasintegerThe number of instances serving reads
parametersobjectConfiguration parameters nested by namespace (e.g., {"pgconf": {"max_connections": "300"}}). Values must be greater than or equal to the primary's.
cluster_sizestringThe cluster size SKU name
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
read_only_replicastringObligatorioThe name of the read-only replica
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update role namePLANETSCALE_UPDATE_ROLEAcciónUpdate role name. PostgreSQL databases only.
PLANETSCALE_UPDATE_ROLEAcciónUpdate role name. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the role
namestringThe new name of the role
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
require_where_on_deletestringRequire WHERE clause on DELETE statements
require_where_on_updatestringRequire WHERE clause on UPDATE statements
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a router for a Neki branchPLANETSCALE_UPDATE_ROUTERAcciónUpdate a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_ROUTERAcciónUpdate a router for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
routerstringObligatorioName from `list_routers`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
parametersobjectRouter parameters nested by namespace (e.g., {"router": {"replication-lag-tolerable-max": "15m"}})
autoscalingbooleanWhether the router scales horizontally within each cell
router_sizestringThe new router size for the router
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
replicas_per_cellintegerThe new number of replicas in each cell
max_replicas_per_cellintegerThe maximum number of replicas in each cell when autoscaling
target_cpu_utilizationintegerThe target average CPU utilization percentage when autoscaling
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update safe migrations for a branchPLANETSCALE_UPDATE_SAFE_MIGRATIONSAcciónUpdate safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
PLANETSCALE_UPDATE_SAFE_MIGRATIONSAcciónUpdate safe migrations for a branch. Vitess/MySQL databases only; PlanetScale returns 405 for PostgreSQL resources.
Parámetros de entrada
branchstringObligatorioThe name of the branch
databasestringObligatorioThe name of the database the branch belongs to
organizationstringObligatorioThe name of the organization the branch belongs to
safe_migrationsbooleanObligatorioWhether safe migrations are enabled
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a shard for a Neki branchPLANETSCALE_UPDATE_SHARDAcciónUpdate a shard for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_SHARDAcciónUpdate a shard for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a shard configuration profile for a Neki branchPLANETSCALE_UPDATE_SHARD_CONFIGURATION_PROFILEAcciónUpdate a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_SHARD_CONFIGURATION_PROFILEAcciónUpdate a shard configuration profile for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
namestringThe new name for the shard configuration profile
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
storageobjectPlanetScale body parameter `storage`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
replicasintegerThe new number of replicas for the shard configuration profile
extensionsstring[]Extensions to enable. This replaces the current set; omit it to leave them unchanged.
parametersobjectConfiguration profile parameters nested by namespace (e.g., {"pgconf": {"max_connections": "200"}}).
cluster_sizestringThe new cluster size for the shard configuration profile
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
postgres_major_versionstringThe PostgreSQL major version for the shard configuration profile
postgres_minor_versionstringThe PostgreSQL minor version for the shard configuration profile. Requires postgres_major_version when specified.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a shard in a Neki shard configuration profilePLANETSCALE_UPDATE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónUpdate a shard in a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_SHARD_CONFIGURATION_PROFILE_SHARDAcciónUpdate a shard in a Neki shard configuration profile. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
idstringObligatorioThe ID of the shard
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
display_namestringThe display name of the shard
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
configuration_profilestringObligatorioName from `list_shard_configuration_profiles`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a sidecar for a Neki branchPLANETSCALE_UPDATE_SIDECARAcciónUpdate a sidecar for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
PLANETSCALE_UPDATE_SIDECARAcciónUpdate a sidecar for a Neki branch. Sharded Neki PostgreSQL databases only; non-sharded branches may return 404.
Parámetros de entrada
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
sidecarstringObligatorioID from `list_sidecars`, or the configuration profile name.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
parametersobjectSidecar parameters nested by namespace (e.g., {"sidecar": {"pool-capacity": "100"}})
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a traffic budgetPLANETSCALE_UPDATE_TRAFFIC_BUDGETAcciónUpdate a traffic budget. PostgreSQL databases only.
PLANETSCALE_UPDATE_TRAFFIC_BUDGETAcciónUpdate a traffic budget. PostgreSQL databases only.
Parámetros de entrada
idstringObligatorioThe ID of the traffic budget
modestringenumThe mode of the traffic budget
enforcewarnoffnamestringName of the traffic budget
rateintegerThe rate at which capacity refills, as a percentage of server resources (0-100). Unlimited when not set.
burstintegerThe maximum capacity a single query can consume, measured as a percentage of seconds of full server usage (0-6000). Unlimited when not set.
rulesstring[]Array of traffic rules to apply to the budget
branchstringObligatorioBranch name from `list_branches`. Example: `main`.
capacityintegerThe maximum capacity that can be banked, measured as a percentage of seconds of full server usage (0-6000). Unlimited when not set.
databasestringObligatorioDatabase name slug from `list_databases`. Example: `app-db`.
concurrencyintegerThe percentage of available worker processes this policy can use (0-100). Unlimited when not set.
organizationstringObligatorioOrganization name slug from `list_organizations`. Example: `acme`.
warning_thresholdintegerA percentage of capacity, burst, or concurrency thresholds to emit warnings for enforced budgets (0-100).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a webhookPLANETSCALE_UPDATE_WEBHOOKAcciónUpdate a webhook.
PLANETSCALE_UPDATE_WEBHOOKAcciónUpdate a webhook.
Parámetros de entrada
idstringObligatorioThe ID of the webhook
urlstringThe URL the webhook will send events to
eventsstring[]The events this webhook should subscribe to
enabledbooleanWhether the webhook should be enabled
databasestringObligatorioThe name of the database
organizationstringObligatorioThe name of the organization
authorization_headerstringThe value to send in the Authorization header
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not