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

    Interface LogsinkRequestBuilder

    Builds and executes requests for operations under /v2/databases/{database_cluster_uuid}/logsink

    interface LogsinkRequestBuilder {
        byLogsink_id(logsink_id: string): WithLogsink_ItemRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | LogsinkGetResponse>;
        post(
            body: Logsink_create,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | LogsinkPostResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        toPostRequestInformation(
            body: Logsink_create,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): LogsinkRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To list logsinks for a database cluster, send a GET request to/v2/databases/$DATABASE_ID/logsink.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | LogsinkGetResponse>

      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: Logsink_create,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | LogsinkPostResponse>

      To create logsink for a database cluster, send a POST request to/v2/databases/$DATABASE_ID/logsink.

      Parameters

      • body: Logsink_create

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | LogsinkPostResponse>

      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 list logsinks for a database cluster, send a GET request to/v2/databases/$DATABASE_ID/logsink.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • To create logsink for a database cluster, send a POST request to/v2/databases/$DATABASE_ID/logsink.

      Parameters

      • body: Logsink_create

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns LogsinkRequestBuilder