CF-Changes Basin Pipelines, Basin - Pipelines Sink credentials can now be updated

Cloudflare Reporting - Product Changelog

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
4,460
You can now replace the credentials of a Basin Pipelines sink. Previously, an expired or revoked token meant deleting and recreating the sink.

Pipelines keep the sink's earlier credentials until you update them. Updating a failed pipeline automatically restarts it.

A failed pipeline's page with the reason it failed, the sink that changed, and the Update pipeline button

Dashboard​

https://developers.cloudflare.com/changelog/rss/#dashboard
  • Update credentials — On a sink's page, in Destination. Create a new API token, or enter the credentials of a token you created.
  • Update pipeline — On a pipeline's page, when a stream or sink it uses has changed.
Go to Sinks ↗
The Update credentials dialog with two options: create a new API token, or enter credentials

API​

https://developers.cloudflare.com/changelog/rss/#api

Both requests need an API token with Basin Pipelines Edit permission.

First, update the sink. The following is an example of updating credentials of an R2 sink.


Code:
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pipelines/v1/sinks/$SINK_ID" \
  --request PATCH \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --json '{
    "config": {
      "credentials": {
        "access_key_id": "<ACCESS_KEY_ID>",
        "secret_access_key": "<SECRET_ACCESS_KEY>"
      }
    }
  }'

Then update each pipeline that uses it:


Code:
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pipelines/v1/pipelines/$PIPELINE_ID/update_tables" \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

For more information, refer to Update sink credentials and Update a pipeline.

Continue reading...
 
Back
Top