gcore / gcore.cloud / 1.0.1 / module / loadbalancer_listener_info Gather infos about all GCore loadbalancer listeners. Authors: GCore (@GCore)gcore.cloud.loadbalancer_listener_info (1.0.1) — module
Install with ansible-galaxy collection install gcore.cloud:==1.0.1
collections: - name: gcore.cloud version: 1.0.1
Gather infos about all GCore loadbalancer listeners.
- name: Gather gcore loadbalancer listener infos gcore.cloud.loadbalancer_listener_info: api_key: "{{ api_key }}" region_id: "{{ region_id }}" project_id: "{{ project_id }}"
- name: Gather gcore specific loadbalancer listener info gcore.cloud.loadbalancer_listener_info: api_key: "{{ api_key }}" region_id: "{{ region_id }}" project_id: "{{ project_id }}" loadbalancer_listener_id: "{{ loadbalancer_listener_id }}"
- name: Gather info about all listeners for specif loadbalancer gcore.cloud.loadbalancer_listener_info: api_key: "{{ api_key }}" region_id: "{{ region_id }}" project_id: "{{ project_id }}" loadbalancer_id: "{{ loadbalancer_id }}"
api_key: description: - GCore API auth key - Can be passed as I(CLOUD_API_KEY) environment variable. type: str api_host: default: https://api.gcore.com/cloud description: - GCore API base host - Can be passed as I(CLOUD_API_HOST) environment variable. type: str region_id: description: - GCore API region ID - Required if I(region_name) is not passed - Can be passed as I(CLOUD_REGION_ID) environment variable. type: int project_id: description: - GCore API project ID - Required if I(project_name) is not passed - Can be passed as I(CLOUD_PROJECT_ID) environment variable. type: int show_stats: description: - Show statistics. required: false type: bool api_timeout: default: 30 description: - Timeout in seconds to polling GCore API type: int region_name: description: - GCore API region name - Required if I(region_id) is not passed - Can be passed as I(CLOUD_REGION_NAME) environment variable. type: str project_name: description: - GCore API project name - Required if I(project_id) is not passed - Can be passed as I(CLOUD_PROJECT_NAME) environment variable. type: str loadbalancer_id: description: - Loadbalancer ID. required: false type: str loadbalancer_listener_id: description: - The ID of loadbalancer listener you want to get. - The module will fail if the provided ID is invalid. required: false type: str
loadbalancer_listener_info: contains: allowed_cidrs: description: Network CIDRs from which service will be accessible elements: str returned: always sample: [] type: list creator_task_id: description: Task that created this entity returned: always sample: d2d871da-d7ce-4c2b-bedc-5900c37880e6 type: str id: description: Load balancer listener ID returned: always sample: 43658ea9-54bd-4807-90b1-925921c9a0d1 type: str insert_headers: description: - Dictionary of additional header insertion into HTTP headers. - Only used with HTTP and TERMINATED_HTTPS protocols. returned: always sample: {} type: dict name: description: Load balancer listener name returned: always sample: lbaas_test_listener type: str operating_status: description: Listener operating status returned: always sample: ONLINE type: str pool_count: description: Number of pools returned: always sample: 0 type: int protocol: description: Load balancer protocol returned: always sample: TCP type: dict protocol_port: description: Protocol port returned: always sample: 80 type: int provisioning_status: description: Listener lifecycle status returned: always sample: ACTIVE type: str secret_id: description: ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS load balancer returned: always sample: eddd2336-0e38-4efc-86d7-e8b3801e83e0 type: str sni_secret_id: description: - List of secret's ID containing PKCS12 format certificate/key bundles for TERMINATED_HTTPS listeners. elements: str returned: if available sample: - e76a3f17-f5a1-4efa-8917-c6c2e8eb157c type: list stats: description: Statistic of the listener. It is available only in get functions by a flag. returned: if available sample: active_connections: 0 bytes_in: 34942398609 bytes_out: 304777113641 request_errors: 4 total_connections: 21095970 type: dict task_id: description: Active task. If None, action has been performed immediately in the request itself. returned: always sample: c593da0c-1fa4-4882-8d0c-c5179fbcfc71 type: str description: - When I(loadbalancer_listener_id) is passed, it is a dict of resource. - Otherwise it is a list of dictionaries. returned: always type: complex