From ba3e161b7b9f93934ed4023fe55be28e141fb321 Mon Sep 17 00:00:00 2001 From: Ishan Jain <51803183+ishanjainn@users.noreply.github.com> Date: Wed, 10 Aug 2022 16:28:08 +0530 Subject: [PATCH] Update cloud_plugin_module.rst --- docs/cloud_plugin_module.rst | 561 +++++++++++++++++++++++++++++++++++ 1 file changed, 561 insertions(+) diff --git a/docs/cloud_plugin_module.rst b/docs/cloud_plugin_module.rst index e69de29..a3de52b 100644 --- a/docs/cloud_plugin_module.rst +++ b/docs/cloud_plugin_module.rst @@ -0,0 +1,561 @@ +.. Document meta + +:orphan: + +.. |antsibull-internal-nbsp| unicode:: 0xA0 + :trim: + +.. role:: ansible-attribute-support-label +.. role:: ansible-attribute-support-property +.. role:: ansible-attribute-support-full +.. role:: ansible-attribute-support-partial +.. role:: ansible-attribute-support-none +.. role:: ansible-attribute-support-na +.. role:: ansible-option-type +.. role:: ansible-option-elements +.. role:: ansible-option-required +.. role:: ansible-option-versionadded +.. role:: ansible-option-aliases +.. role:: ansible-option-choices +.. role:: ansible-option-choices-entry +.. role:: ansible-option-default +.. role:: ansible-option-default-bold +.. role:: ansible-option-configuration +.. role:: ansible-option-returned-bold +.. role:: ansible-option-sample-bold + +.. Anchors + +.. _ansible_collections.grafana.grafana.cloud_plugin_module: + +.. Anchors: short name for ansible.builtin + +.. Anchors: aliases + + + +.. Title + +grafana.grafana.cloud_plugin module -- Manage Grafana Cloud Plugins ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +.. Collection note + +.. note:: + This module is part of the `grafana.grafana collection `_ (version 0.0.5). + + You might already have this collection installed if you are using the ``ansible`` package. + It is not included in ``ansible-core``. + To check whether it is installed, run :code:`ansible-galaxy collection list`. + + To install it, use: :code:`ansible-galaxy collection install grafana.grafana`. + + To use it in a playbook, specify: :code:`grafana.grafana.cloud_plugin`. + +.. version_added + +.. versionadded:: 0.0.1 of grafana.grafana + +.. contents:: + :local: + :depth: 1 + +.. Deprecated + + +Synopsis +-------- + +.. Description + +- Create, Update and delete Grafana Cloud stacks using Ansible. + + +.. Aliases + + +.. Requirements + + + + + + +.. Options + +Parameters +---------- + + +.. rst-class:: ansible-option-table + +.. list-table:: + :width: 100% + :widths: auto + :header-rows: 1 + + * - Parameter + - Comments + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__parameter-cloud_api_key: + + .. rst-class:: ansible-option-title + + **cloud_api_key** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` / :ansible-option-required:`required` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + CLoud API Key to authenticate with Grafana Cloud. + + + .. raw:: html + +
+ + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__parameter-name: + + .. rst-class:: ansible-option-title + + **name** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` / :ansible-option-required:`required` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Name of the plugin, e.g. grafana-github-datasource . + + + .. raw:: html + +
+ + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__parameter-stack_slug: + + .. rst-class:: ansible-option-title + + **stack_slug** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` / :ansible-option-required:`required` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Name of the Grafana Cloud stack to which the plugin will be added + + + .. raw:: html + +
+ + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__parameter-state: + + .. rst-class:: ansible-option-title + + **state** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + State for the Grafana CLoud stack. + + + .. rst-class:: ansible-option-line + + :ansible-option-choices:`Choices:` + + - :ansible-option-default-bold:`present` :ansible-option-default:`← (default)` + - :ansible-option-choices-entry:`absent` + + .. raw:: html + +
+ + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__parameter-version: + + .. rst-class:: ansible-option-title + + **version** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Version of the plugin to install. Defaults to latest. + + + .. rst-class:: ansible-option-line + + :ansible-option-default-bold:`Default:` :ansible-option-default:`"latest"` + + .. raw:: html + +
+ + +.. Attributes + + +.. Notes + + +.. Seealso + + +.. Examples + +Examples +-------- + +.. code-block:: yaml+jinja + + + - name: Create/Update a plugin + cloud_plugin: + name: grafana-github-datasource + version: 1.0.14 + stack_slug: "{{ stack_slug }}" + cloud_api_key: "{{ grafana_cloud_api_key }}" + state: present + + - name: Delete a Grafana Cloud stack + cloud_plugin: + name: grafana-github-datasource + stack_slug: "{{ stack_slug }}" + cloud_api_key: "{{ grafana_cloud_api_key }}" + state: absent + + + + +.. Facts + + +.. Return values + +Return Values +------------- +Common return values are documented :ref:`here `, the following are the fields unique to this module: + +.. rst-class:: ansible-option-table + +.. list-table:: + :width: 100% + :widths: auto + :header-rows: 1 + + * - Key + - Description + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__return-current_version: + + .. rst-class:: ansible-option-title + + **current_version** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Current version of the plugin + + + .. rst-class:: ansible-option-line + + :ansible-option-returned-bold:`Returned:` On success + + + .. raw:: html + +
+ + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__return-latest_version: + + .. rst-class:: ansible-option-title + + **latest_version** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Latest version available for the plugin + + + .. rst-class:: ansible-option-line + + :ansible-option-returned-bold:`Returned:` On success + + + .. raw:: html + +
+ + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__return-pluginid: + + .. rst-class:: ansible-option-title + + **pluginId** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`integer` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Id for the Plugin + + + .. rst-class:: ansible-option-line + + :ansible-option-returned-bold:`Returned:` On success + + + .. raw:: html + +
+ + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__return-pluginname: + + .. rst-class:: ansible-option-title + + **pluginName** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Name of the plugin + + + .. rst-class:: ansible-option-line + + :ansible-option-returned-bold:`Returned:` On success + + + .. raw:: html + +
+ + + * - .. raw:: html + +
+
+ + .. _ansible_collections.grafana.grafana.cloud_plugin_module__return-pluginslug: + + .. rst-class:: ansible-option-title + + **pluginSlug** + + .. raw:: html + + + + .. rst-class:: ansible-option-type-line + + :ansible-option-type:`string` + + .. raw:: html + +
+ + - .. raw:: html + +
+ + Slug for the Plugin + + + .. rst-class:: ansible-option-line + + :ansible-option-returned-bold:`Returned:` On success + + + .. raw:: html + +
+ + + +.. Status (Presently only deprecated) + + +.. Authors + +Authors +~~~~~~~ + +- Ishan Jain (@ishanjainn) + + + +.. Extra links + +Collection links +~~~~~~~~~~~~~~~~ + +.. raw:: html + + + +.. Parsing errors