Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Iddigitalocean.oneclick.applications

Fields

The following fields are returned by SELECT queries:

A JSON object with a key of 1_clicks.

NameDatatypeDescription
slugstringThe slug identifier for the 1-Click application. (title: slug, example: monitoring)
typestringThe type of the 1-Click application. (title: type, example: kubernetes)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
one_clicks_listselecttypeTo list all available 1-Click applications, send a GET request to /v2/1-clicks. The type may
be provided as query paramater in order to restrict results to a certain type of 1-Click, for
example: /v2/1-clicks?type=droplet. Current supported types are kubernetes and droplet.

The response will be a JSON object with a key called 1_clicks. This will be set to an array of
1-Click application data, each of which will contain the the slug and type for the 1-Click.
one_clicks_install_kubernetesinsertdata__addon_slugs, data__cluster_uuidTo install a Kubernetes 1-Click application on a cluster, send a POST request to
/v2/1-clicks/kubernetes. The addon_slugs and cluster_uuid must be provided as body
parameter in order to specify which 1-Click application(s) to install. To list all available
1-Click Kubernetes applications, send a request to /v2/1-clicks?type=kubernetes.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
typestringRestrict results to a certain type of 1-Click. (example: kubernetes)

SELECT examples

To list all available 1-Click applications, send a GET request to /v2/1-clicks. The type may
be provided as query paramater in order to restrict results to a certain type of 1-Click, for
example: /v2/1-clicks?type=droplet. Current supported types are kubernetes and droplet.

The response will be a JSON object with a key called 1_clicks. This will be set to an array of
1-Click application data, each of which will contain the the slug and type for the 1-Click.

SELECT
slug,
type
FROM digitalocean.oneclick.applications
WHERE type = '{{ type }}';

INSERT examples

To install a Kubernetes 1-Click application on a cluster, send a POST request to
/v2/1-clicks/kubernetes. The addon_slugs and cluster_uuid must be provided as body
parameter in order to specify which 1-Click application(s) to install. To list all available
1-Click Kubernetes applications, send a request to /v2/1-clicks?type=kubernetes.

INSERT INTO digitalocean.oneclick.applications (
data__addon_slugs,
data__cluster_uuid
)
SELECT
'{{ addon_slugs }}' --required,
'{{ cluster_uuid }}' --required
RETURNING
message
;