one_clicks_info

Synopsis

Requirements

  • pydo >= 0.1.3
  • azure-core >= 1.26.1

Parameters

Parameter Choices Default Comments
client_override_options
(dict)
Client override options (developer use). For example, can be used to override the DigitalOcean API endpoint for an internal test suite. If provided, these options will knock out existing options.
module_override_options
(dict)
Module override options (developer use). Can be used to override module options to support experimental or future options. If provided, these options will knock out existing options.
state
(str)
  • present
  • absent
present State of the resource, present to create, absent to destroy.
timeout
(int)
300 Polling timeout in seconds.
token
(str)
DigitalOcean API token. There are several environment variables which can be used to provide this value. DIGITALOCEAN_ACCESS_TOKEN, DIGITALOCEAN_TOKEN, DO_API_TOKEN, DO_API_KEY, DO_OAUTH_TOKEN and OAUTH_TOKEN
type
(str)
  • droplet
  • kubernetes
Limit by type of 1-Click application.

Examples

- name: Get 1-Click applications
  digitalocean.cloud.one_click_info:
    token: "{{ token }}"

- name: Get Droplet 1-Click applications
  digitalocean.cloud.one_click_info:
    token: "{{ token }}"
    type: droplet

- name: Get Kubernetes 1-Click applications
  digitalocean.cloud.one_click_info:
    token: "{{ token }}"
    type: kubernetes

Return Values

Key Returned Description
error
(dict)
failure DigitalOcean API error.

Sample:

{
  "Message": "Informational error message.",
  "Reason": "Unauthorized",
  "Status Code": 401
}
msg
(str)
always 1-Click applications result information.

Sample:

[
  "Current 1-Click applications",
  "Current Droplet 1-Click applications",
  "Current Kubernetes 1-Click applications",
  "Current 1-Click applications not found"
]
one_clicks
(list)
always DigitalOcean account information.

Sample:

[
  {
    "slug": "cpanel-cpanelwhm-7-9",
    "type": "droplet"
  },
  {
    "slug": "npool",
    "type": "droplet"
  },
  {
    "slug": "optimajet-workflowserver-18-04",
    "type": "droplet"
  },
  "...",
  {
    "slug": "netdata",
    "type": "kubernetes"
  },
  {
    "slug": "okteto",
    "type": "kubernetes"
  },
  {
    "slug": "fyipe",
    "type": "kubernetes"
  }
]