List Custom Domains of Bucket
GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom
Gets a list of all custom domains registered with an existing R2 bucket.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Path Parameters
List Custom Domains of Bucket
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/r2/buckets/$BUCKET_NAME/domains/custom \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"domains": [
{
"domain": "prefix.example-domain.one.com",
"enabled": false,
"status": {
"ownership": "deactivated",
"ssl": "pending"
},
"ciphers": [
"string"
],
"minTLS": "1.0",
"zoneId": "36ca64a6d92827b8a6b90be344bb1bfd",
"zoneName": "example-domain.one.com"
},
{
"domain": "prefix.example-domain.two.com",
"enabled": true,
"status": {
"ownership": "active",
"ssl": "active"
},
"ciphers": [
"string"
],
"minTLS": "1.0",
"zoneId": "d9d28585d5f8f5b0f857b055bf574f19",
"zoneName": "zoneName"
}
]
},
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"result": {
"domains": [
{
"domain": "prefix.example-domain.one.com",
"enabled": false,
"status": {
"ownership": "deactivated",
"ssl": "pending"
},
"ciphers": [
"string"
],
"minTLS": "1.0",
"zoneId": "36ca64a6d92827b8a6b90be344bb1bfd",
"zoneName": "example-domain.one.com"
},
{
"domain": "prefix.example-domain.two.com",
"enabled": true,
"status": {
"ownership": "active",
"ssl": "active"
},
"ciphers": [
"string"
],
"minTLS": "1.0",
"zoneId": "d9d28585d5f8f5b0f857b055bf574f19",
"zoneName": "zoneName"
}
]
},
"success": true
}