m1yag1.globus.globus_search module – Manage Globus Search indexes
Note
This module is part of the m1yag1.globus collection (version 0.6.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install m1yag1.globus.
To use it in a playbook, specify: m1yag1.globus.globus_search.
New in m1yag1.globus 0.4.0
Synopsis
Create, update, or delete Globus Search indexes
Free tier accounts are limited to 3 trial indexes (1 MB each, 30-day auto-deletion)
Contact support@globus.org for subscription upgrades
Parameters
Parameter |
Comments |
|---|---|
Authentication method to use. If not specified, auto-detects based on available credentials. When Otherwise falls back to Choices:
|
|
Globus Auth client ID for client_credentials authentication. Can also be set via the |
|
Globus Auth client secret for client_credentials authentication. Can also be set via the |
|
Description of the search index Will be updated if changed on an existing index |
|
Display name of the search index Used to find existing indexes (not a unique identifier) |
|
Desired state of the search index Choices:
|
Notes
Note
Trial indexes are limited to 1 MB and automatically deleted after 30 days
Free tier accounts can have up to 3 trial indexes
To upgrade an index or get more than 3 indexes, contact support@globus.org
Deleting an index is irreversible and removes all indexed data
Authentication is required for all Globus API operations.
For
client_credentialsauth, register a confidential client at https://developers.globus.org.For
cliauth, runglobus loginfirst to cache tokens.The
climethod reads tokens from~/.globus/cli/storage.db.For
cliauth with multiple profiles, setGLOBUS_PROFILEenvironment variable.Set
GLOBUS_SDK_ENVIRONMENTtosandboxortestfor non-production environments.
See Also
See also
- Globus Auth Documentation
Official Globus authentication documentation
- Globus CLI
Command-line interface for Globus
Examples
- name: Create a Globus Search index
globus_search:
name: "research-publications"
description: "Index for research publications metadata"
client_id: "{{ globus_client_id }}"
client_secret: "{{ globus_client_secret }}"
state: present
- name: Update an existing search index description
globus_search:
name: "research-publications"
description: "Updated description for publications index"
client_id: "{{ globus_client_id }}"
client_secret: "{{ globus_client_secret }}"
state: present
- name: Delete a search index
globus_search:
name: "old-index"
client_id: "{{ globus_client_id }}"
client_secret: "{{ globus_client_secret }}"
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the index was changed Returned: always Sample: |
|
Description of the index Returned: when state=present Sample: |
|
UUID of the created/managed search index Returned: when state=present Sample: |
|
Whether this is a trial index (limited to 1 MB, 30-day lifetime) Returned: when state=present Sample: |
|
Display name of the index Returned: always Sample: |
|
Number of trial indexes currently owned (out of 3 maximum) Returned: when creating a trial index Sample: |