.. _grafana.grafana.folder_module:
.. Title
grafana.grafana.folder module -- Manage Folders in Grafana
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Version Added:: 0.0.1
.. contents::
:local:
:depth: 1
Synopsis
--------
- Create, Update and delete Folders via Ansible.
Parameters
----------
.. raw:: html
CLoud API Key to authenticate with Grafana Cloud.
.. raw:: html
* - .. raw:: html
Set to false if you dont want to overwrite existing folder with newer version.
.. rst-class:: ansible-option-line
:ansible-option-default-bold:`Default:` :ansible-option-default:`"yes"`
.. 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
The title of the folder.
.. raw:: html
* - .. raw:: html
unique identifier for your folder.
.. raw:: html
.. Attributes
.. Notes
.. Seealso
.. Examples
Examples
--------
.. code-block:: yaml+jinja
- name: Create/Update a Folder in Grafana
folder:
title: folder_name
uid: folder_name
overwrite: true
stack_slug: "{{ stack_slug }}"
cloud_api_key: "{{ grafana_cloud_api_key }}"
state: present
- name: Delete a Folder in Grafana
folder:
uid: folder_name
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.folder_module__return-output:
.. rst-class:: ansible-option-title
**output**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`dictionary`
.. raw:: html
- .. raw:: html
Dict object containing folder information
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` On success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/canadmin:
.. rst-class:: ansible-option-title
**canAdmin**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Boolean value specifying if current user can admin in folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/candelete:
.. rst-class:: ansible-option-title
**canDelete**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Boolean value specifying if current user can delete the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/canedit:
.. rst-class:: ansible-option-title
**canEdit**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Boolean value specifying if current user can edit in folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/cansave:
.. rst-class:: ansible-option-title
**canSave**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Boolean value specifying if current user can save in folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/created:
.. rst-class:: ansible-option-title
**created**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The date when folder was created
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/createdby:
.. rst-class:: ansible-option-title
**createdBy**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The name of the user who created the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/hasacl:
.. rst-class:: ansible-option-title
**hasAcl**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Boolean value specifying if folder has acl
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/id:
.. rst-class:: ansible-option-title
**id**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`integer`
.. raw:: html
- .. raw:: html
The ID for the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/message:
.. rst-class:: ansible-option-title
**message**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The message returned after the operation on the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is absent and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/title:
.. rst-class:: ansible-option-title
**title**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The name of the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/uid:
.. rst-class:: ansible-option-title
**uid**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The UID for the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/updated:
.. rst-class:: ansible-option-title
**updated**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The date when the folder was last updated
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/updatedby:
.. rst-class:: ansible-option-title
**updatedBy**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The name of the user who last updated the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/url:
.. rst-class:: ansible-option-title
**url**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The URl for the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
* - .. raw:: html
.. _ansible_collections.grafana.grafana.folder_module__return-output/version:
.. rst-class:: ansible-option-title
**version**
.. raw:: html
.. rst-class:: ansible-option-type-line
:ansible-option-type:`integer`
.. raw:: html
- .. raw:: html
The version of the folder
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` state is present and on success
.. raw:: html
.. Status (Presently only deprecated)
.. Authors
Authors
~~~~~~~
- Ishan Jain (@ishanjainn)
.. Extra links
Collection links
~~~~~~~~~~~~~~~~
.. raw:: html
Issue Tracker
Repository (Sources)
.. Parsing errors