graphiant.naas.graphiant_local_extranet_info module – Query Graphiant Local Extranet policies, device status, and usage 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_local_extranet_info.
New in graphiant.naas 26.7.0
Synopsis
This module provides query capabilities for Graphiant Local Extranet information.
Returns summary information about Local Extranet policies.
Provides per-device policy rollout status.
Provides LAN segment and NAT pool usage monitoring information.
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” |
|
Whether to get provider view for LAN segment usage monitoring. Only applicable to Choices:
|
|
Graphiant portal password for authentication. Required for password-based login when no valid bearer token is available from |
|
Local Extranet policy name. Required for Optional for |
|
The specific information to query.
Returns policy details including IDs, names, type, shared segment, and target segments count.
Requires
Requires Choices:
|
|
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_local_extranet
Manage Local Extranet policies
Examples
- name: Get Local Extranet policies summary
graphiant.naas.graphiant_local_extranet_info:
query: policies_summary
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
register: policies_summary
- name: Display policies summary
ansible.builtin.debug:
msg: "{{ policies_summary.msg }}"
- name: Get device rollout status for a policy
graphiant.naas.graphiant_local_extranet_info:
query: policy_device_status
policy_name: "le-policy-1"
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
detailed_logs: true
register: device_status
- name: Display device status
ansible.builtin.debug:
msg: "{{ device_status.msg }}"
- name: Get LAN segment usage
graphiant.naas.graphiant_local_extranet_info:
query: lan_segments_usage
policy_name: "le-policy-1"
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
register: lan_segments_usage
- name: Get NAT pool usage
graphiant.naas.graphiant_local_extranet_info:
query: nat_usage
policy_name: "le-policy-1"
host: "{{ graphiant_host }}"
username: "{{ graphiant_username }}"
password: "{{ graphiant_password }}"
register: nat_usage
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: |