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

    Interface KernelsRequestBuilder

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

    interface KernelsRequestBuilder {
        get(
            requestConfiguration?: RequestConfiguration<
                KernelsRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | KernelsGetResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                KernelsRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        withUrl(rawUrl: string): KernelsRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To retrieve a list of all kernels available to a Droplet, send a GET requestto /v2/droplets/$DROPLET_ID/kernelsThe response will be a JSON object that has a key called kernels. This willbe set to an array of kernel objects, each of which contain the standardkernel attributes.

      Parameters

      Returns Promise<undefined | KernelsGetResponse>

      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 retrieve a list of all kernels available to a Droplet, send a GET requestto /v2/droplets/$DROPLET_ID/kernelsThe response will be a JSON object that has a key called kernels. This willbe set to an array of kernel objects, each of which contain the standardkernel attributes.

      Parameters

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns KernelsRequestBuilder