Enable Sippy
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/sippy
Configures and enables Sippy on-demand migration for an R2 bucket. When a requested object is missing from R2, Sippy serves it from the configured source storage provider and copies it to R2.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Path Parameters
Enable Sippy
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/r2/buckets/$BUCKET_NAME/sippy \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{}'{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"destination": {
"accessKeyId": "accessKeyId",
"account": "account",
"bucket": "bucket",
"provider": "r2"
},
"enabled": true,
"source": {
"bucket": "bucket",
"bucketUrl": "bucketUrl",
"container": "container",
"provider": "aws",
"region": "region"
}
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"destination": {
"accessKeyId": "accessKeyId",
"account": "account",
"bucket": "bucket",
"provider": "r2"
},
"enabled": true,
"source": {
"bucket": "bucket",
"bucketUrl": "bucketUrl",
"container": "container",
"provider": "aws",
"region": "region"
}
},
"success": true
}