R2 Bucket

Gets properties of an existing R2 bucket.

get/r2/buckets/{bucket_name}

Request

  • Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /cdn-cgi/local/explorer/api/r2/buckets/{bucket_name}
  • Auth: none declared

Path parameters

bucket_namestring required

Name of the bucket.

Example:example-bucket

Response

Get Bucket response.

messagesstring[] required
successtrue required

Whether the API call was successful.

Example response

{
  "result": {
    "name": "example-bucket"
  }
}

Changes