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.
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.
Then update each pipeline that uses it:
For more information, refer to Update sink credentials and Update a pipeline.
Continue reading...
Pipelines keep the sink's earlier credentials until you update them. Updating a failed pipeline automatically restarts it.
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.
API
https://developers.cloudflare.com/changelog/rss/#apiBoth 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...