damex.cloudflare.cloudflare_r2_bucket_info module – Ensure Cloudflare R2 bucket information is gathered
Note
This module is part of the damex.cloudflare collection (version 1.2.3).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install damex.cloudflare.
To use it in a playbook, specify: damex.cloudflare.cloudflare_r2_bucket_info.
Synopsis
Gathers information about Cloudflare R2 buckets.
Returns information about all buckets or a specific bucket.
Parameters
Parameter |
Comments |
|---|---|
Cloudflare account API key. Required together with |
|
Cloudflare account email. Required together with |
|
Cloudflare account identifier. Required if |
|
Cloudflare account name. Required if Resolved to account identifier via the Cloudflare API. |
|
Cloudflare API token. Required if Can be specified in |
|
Bucket name to query. If not specified, all buckets are returned. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Supports check mode. |
|
Support: none |
Does not support diff mode. |
Examples
- name: Ensure R2 bucket information is gathered
damex.cloudflare.cloudflare_r2_bucket_info:
account_name: damex
api_token: "{{ cloudflare_api_token }}"
register: cloudflare_r2_bucket_information
- name: Ensure specific R2 bucket information is gathered
damex.cloudflare.cloudflare_r2_bucket_info:
name: my-bucket
account_name: damex
api_token: "{{ cloudflare_api_token }}"
register: cloudflare_r2_bucket_information
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
R2 bucket information. Returned: always |
|
Bucket creation timestamp. Returned: always |
|
Bucket location. Returned: always |
|
Bucket name. Returned: always |
|
Default storage class. Returned: always |