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

    Builds and executes requests for operations under /v2/reserved_ips/{reserved_ip}/actions

    interface ActionsRequestBuilder {
        byAction_id(action_id: number): WithAction_ItemRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ActionsGetResponse>;
        post(
            body: Reserved_ip_action_assign | Reserved_ip_action_unassign,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ActionsPostResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        toPostRequestInformation(
            body: Reserved_ip_action_assign | Reserved_ip_action_unassign,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): ActionsRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To retrieve all actions that have been executed on a reserved IP, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | ActionsGetResponse>

      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

    post

    • post(
          body: Reserved_ip_action_assign | Reserved_ip_action_unassign,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ActionsPostResponse>

      To initiate an action on a reserved IP send a POST request to/v2/reserved_ips/$RESERVED_IP/actions. In the JSON body to the request,set the type attribute to on of the supported action types:| Action | Details|------------|--------| assign | Assigns a reserved IP to a Droplet| unassign | Unassign a reserved IP from a Droplet

      Parameters

      • body: Reserved_ip_action_assign | Reserved_ip_action_unassign

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | ActionsPostResponse>

      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 all actions that have been executed on a reserved IP, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • To initiate an action on a reserved IP send a POST request to/v2/reserved_ips/$RESERVED_IP/actions. In the JSON body to the request,set the type attribute to on of the supported action types:| Action | Details|------------|--------| assign | Assigns a reserved IP to a Droplet| unassign | Unassign a reserved IP from a Droplet

      Parameters

      • body: Reserved_ip_action_assign | Reserved_ip_action_unassign

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns ActionsRequestBuilder