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

    Interface SizesRequestBuilder

    Builds and executes requests for operations under /v2/sizes

    interface SizesRequestBuilder {
        get(
            requestConfiguration?: RequestConfiguration<
                SizesRequestBuilderGetQueryParameters,
            >,
        ): Promise<undefined | SizesGetResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<
                SizesRequestBuilderGetQueryParameters,
            >,
        ): RequestInformation;
        withUrl(rawUrl: string): SizesRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To list all of available Droplet sizes, send a GET request to /v2/sizes.The response will be a JSON object with a key called sizes. The value of this will be an array of size objects each of which contain the standard size attributes.

      Parameters

      Returns Promise<undefined | SizesGetResponse>

      error when the service returns a 401 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 list all of available Droplet sizes, send a GET request to /v2/sizes.The response will be a JSON object with a key called sizes. The value of this will be an array of size objects each of which contain the standard size attributes.

      Parameters

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns SizesRequestBuilder