community / community.digitalocean / 1.26.0 / module / digital_ocean_balance_info Display DigitalOcean customer balance | "added in version" 1.2.0 of community.digitalocean" Authors: Mark Mercado (@mamercad)community.digitalocean.digital_ocean_balance_info (1.26.0) — module
Install with ansible-galaxy collection install community.digitalocean:==1.26.0
collections: - name: community.digitalocean version: 1.26.0
This module can be used to display the DigitalOcean customer balance.
- name: Display DigitalOcean customer balance community.digitalocean.digital_ocean_balance_info: oauth_token: "{{ oauth_token }}"
baseurl: default: https://api.digitalocean.com/v2 description: - DigitalOcean API base url. type: str timeout: default: 30 description: - The timeout in seconds used for polling DigitalOcean's API. type: int oauth_token: aliases: - api_token description: - DigitalOcean OAuth token. - There are several other environment variables which can be used to provide this value. - i.e., - C(DO_API_TOKEN), C(DO_API_KEY), C(DO_OAUTH_TOKEN) and C(OAUTH_TOKEN). type: str validate_certs: default: true description: - If set to C(no), the SSL certificates will not be validated. - This should only set to C(no) used on personally controlled sites using self-signed certificates. type: bool
data: description: DigitalOcean customer balance returned: success sample: account_balance: '-27.52' generated_at: '2021-04-11T05:08:24Z' month_to_date_balance: '-27.40' month_to_date_usage: '0.00' type: dict