Managed Database for PostgreSQL and MySQL API.

This API allows you to manage your Managed Databases for PostgreSQL and MySQL.

Hierarchy

  • API
    • API

Constructors

Properties

LOCALITIES: Region[] = ...

Lists the available regions of the API.

Methods

  • Clone a Database Instance. Clone a given Database Instance, specified by the region and instance_id parameters. The clone feature allows you to create a new Database Instance from an existing one. The clone includes all existing databases, users and permissions. You can create a clone on a Database Instance bigger than your current one.

    Parameters

    Returns Promise<RDB.v1.Instance>

    A Promise of Instance

  • Create a new Database Instance from a snapshot. Restore a snapshot. When you restore a snapshot, a new Instance is created and billed to your account. Note that is possible to select a larger node type for your new Database Instance. However, the Block volume size will be the same as the size of the restored snapshot. All Instance settings will be restored if you chose a node type with the same or more memory size than the initial Instance. Settings will be reset to the default if your node type has less memory.

    Returns Promise<RDB.v1.Instance>

    A Promise of Instance

  • Delete a Database Instance endpoint. Delete the endpoint of a Database Instance. You must specify the region and endpoint_id parameters of the endpoint you want to delete. Note that might need to update any environment configurations that point to the deleted endpoint.

    Parameters

    Returns Promise<void>

  • List Database Instances. List all Database Instances in the specified region, for a given Scaleway Organization or Scaleway Project. By default, the Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as tags and name. For the name parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.

    Parameters

    Returns Promise<RDB.v1.ListInstancesResponse> & {
        [asyncIterator]: (() => AsyncGenerator<RDB.v1.Instance[], void, void>);
        all: (() => Promise<RDB.v1.Instance[]>);
    }

    A Promise of ListInstancesResponse