@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/databases/{database_cluster_uuid}/maintenance

    interface MaintenanceRequestBuilder {
        put(
            body: Database_maintenance_window,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<void>;
        toPutRequestInformation(
            body: Database_maintenance_window,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): MaintenanceRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to /v2/databases/$DATABASE_ID/maintenance.A successful request will receive a 204 No Content status code with no body in response.

      Parameters

      • body: Database_maintenance_window

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<void>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to /v2/databases/$DATABASE_ID/maintenance.A successful request will receive a 204 No Content status code with no body in response.

      Parameters

      • body: Database_maintenance_window

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation