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

    Interface WithVpc_peering_ItemRequestBuilder

    Builds and executes requests for operations under /v2/vpcs/{vpc_id}/peerings/{vpc_peering_id}

    interface WithVpc_peering_ItemRequestBuilder {
        patch(
            body: WithVpc_peering_PatchRequestBody,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | WithVpc_peering_PatchResponse>;
        toPatchRequestInformation(
            body: WithVpc_peering_PatchRequestBody,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): WithVpc_peering_ItemRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To update the name of a VPC peering in a particular VPC, send a PATCH request to /v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID with the new name in the request body.

      Parameters

      • body: WithVpc_peering_PatchRequestBody

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | WithVpc_peering_PatchResponse>

      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 update the name of a VPC peering in a particular VPC, send a PATCH request to /v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID with the new name in the request body.

      Parameters

      • body: WithVpc_peering_PatchRequestBody

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation