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

    Interface WithDroplet_ItemRequestBuilder

    Builds and executes requests for operations under /v2/droplets/{droplet_id}

    interface WithDroplet_ItemRequestBuilder {
        get actions(): ActionsRequestBuilder;
        get backups(): BackupsRequestBuilder;
        get destroy_with_associated_resources(): Destroy_with_associated_resourcesRequestBuilder;
        get firewalls(): FirewallsRequestBuilder;
        get kernels(): KernelsRequestBuilder;
        get neighbors(): NeighborsRequestBuilder;
        get snapshots(): SnapshotsRequestBuilder;
        delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>;
        get(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | WithDroplet_GetResponse>;
        toDeleteRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): WithDroplet_ItemRequestBuilder;
    }

    Hierarchy

    Index

    Accessors

    Methods

    • To delete a Droplet, send a DELETE request to /v2/droplets/$DROPLET_ID.A successful request will receive a 204 status code with no body in response.This indicates that the request was processed successfully.

      Parameters

      • 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 show information about an individual Droplet, send a GET request to/v2/droplets/$DROPLET_ID.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | WithDroplet_GetResponse>

      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 delete a Droplet, send a DELETE request to /v2/droplets/$DROPLET_ID.A successful request will receive a 204 status code with no body in response.This indicates that the request was processed successfully.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • To show information about an individual Droplet, send a GET request to/v2/droplets/$DROPLET_ID.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation