graphiant.naas.graphiant_public_vif_info module – Query Graphiant gateway Public VIF (local data exchange) service information
Note
This module is part of the graphiant.naas collection (version 26.10.0).
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 ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install graphiant.naas.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: graphiant.naas.graphiant_public_vif_info.
New in graphiant.naas 26.8.0
Synopsis
This module provides query capabilities for Graphiant gateway Public VIF service information.
Returns summary information about Public VIF services.
Provides detailed configuration for a specific Public VIF service.
All operations return read-only information and never modify the system.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.7
graphiant-sdk >= 26.10.0
tabulate
Parameters
Parameter |
Comments |
|---|---|
Bearer token for API authentication (for example, from If not passed as a module argument, the collection reads When a bearer token is present (module argument or environment), it takes precedence over If no valid token is available, the module authenticates with |
|
Enable detailed logging output for troubleshooting and monitoring. When enabled, provides comprehensive logs of all query operations. Logs are captured and included in the Choices:
|
|
Graphiant portal host URL for API connectivity. Example: “https://api.graphiant.com” |
|
Graphiant portal password for authentication. Required for password-based login when no valid bearer token is available from |
|
The specific information to query.
Returns service details including IDs, names, creator, and last-updated time.
Requires Choices:
|
|
Public VIF service name. Required for |
|
Graphiant portal username for authentication. Required for password-based login when no valid bearer token is available from |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Supports check mode (always read-only). |
Notes
Note
This is a read-only module that queries information only.
All operations return tabulated output for easy reading, where applicable.
See Also
See also
- graphiant.naas.graphiant_public_vif
Manage Public VIF services
Examples
- name: Get Public VIF services summary
graphiant.naas.graphiant_public_vif_info:
query: services_summary
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
register: services_summary
- name: Display services summary
ansible.builtin.debug:
msg: "{{ services_summary.msg }}"
- name: Get details for a specific service
graphiant.naas.graphiant_public_vif_info:
query: service_details
service_name: "pvif-service-1"
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
detailed_logs: true
register: service_details
- name: Display service details
ansible.builtin.debug:
msg: "{{ service_details.result_data }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Result message from the query operation, including detailed logs when Returned: always Sample: |
|
The query that was performed. One of Returned: always Sample: |
|
Result data from the query operation, including structured data for the requested query. Returned: always Sample: |