Solace PubSub+ Ansible Collection

Using Solace PubSub+ Ansible Collection

  • Quickstart for Solace PubSub+ Ansible Collection
  • Installation
  • Tutorials & Projects for Solace PubSub+ Ansible Collection
  • Ansible Version Details

Guides

  • The Basics
  • Best Practices for Ansible-Solace Inventory Files
  • Tips & Tricks

Modules & Roles

  • Fact & General Modules
  • Solace Cloud Modules
  • Solace Configuration & Action Modules
  • Solace Get Object List Modules
    • Module Reference
      • solace_get_acl_client_connect_exceptions – get list of client connect address exceptions on an acl profile
      • solace_get_acl_profiles – get list of acl profiles
      • solace_get_acl_publish_topic_exceptions – get list of publish topic exceptions on an acl profile
      • solace_get_acl_subscribe_share_name_exceptions – get list of subscribe share name exceptions on an acl profile
      • solace_get_acl_subscribe_topic_exceptions – get list of subscribe topic exceptions on an acl profile
      • solace_get_authentication_oauth_providers – get list of oauth providers
      • solace_get_authorization_groups – get list of authorization groups
      • solace_get_available – check if broker semp & spool is available
      • solace_get_bridge_remote_subscriptions – get list of remote subscriptions on a bridge
      • solace_get_bridge_remote_vpns – get list of remote vpns of a bridge
      • solace_get_bridges – get list of bridges
      • solace_get_cert_authorities – get list of cert authorities
      • solace_get_client_cert_authorities – get list of client certificates
      • solace_get_client_cert_authority_ocsp_trusted_cns – get list of ocsp responder trusted common names
      • solace_get_client_profiles – get list of client profiles
      • solace_get_client_usernames – get list of client usernames
      • solace_get_dmr_bridges – get list of dmr bridges
      • solace_get_dmr_cluster_link_remote_addresses – get list of remote addresses on a dmr cluster link
      • solace_get_dmr_cluster_link_trusted_cns – get list of trusted common names on a dmr cluster link
      • solace_get_dmr_cluster_links – get list of links on a dmr cluster
        • Examples
        • Notes
        • See Also
        • Parameters
        • Return Values
      • solace_get_dmr_clusters – get list of dmr clusters
      • solace_get_domain_cert_authorities – get list of domain certificates
      • solace_get_facts – get facts for a broker/vpn
      • solace_get_jndi_connection_factories – get list of JNDI Connection Factories
      • solace_get_jndi_queues – get list of jndi queues
      • solace_get_jndi_topics – get list of jndi topics
      • solace_get_magic_queues – get ‘magic’ queues
      • solace_get_mqtt_session_subscriptions – get list of mqtt session subscriptions
      • solace_get_mqtt_sessions – get list of mqtt sessions
      • solace_get_queue_subscriptions – get list of subscriptions on a queue
      • solace_get_queue_templates – get list of queue-templates
      • solace_get_queues – get list of queues
      • solace_get_rdp_queue_binding_headers – get list of headers on rdp queue binding
      • solace_get_rdp_queue_binding_protected_headers – get list of protected headers on rdp queue binding
      • solace_get_rdp_queue_bindings – get list of rdp queue bindings
      • solace_get_rdp_rest_consumer_trusted_cns – get list of rdp rest consumer trusted common names
      • solace_get_rdp_rest_consumers – get list of rdp rest consumers
      • solace_get_rdps – get list of rdps
      • solace_get_replay_logs – get list of replay logs
      • solace_get_replicated_topics – get list of vpn replicated topics
      • solace_get_service_authentication_ldap_profiles – get ldap profiles
      • solace_get_topic_endpoints – get list of topic endpoints
      • solace_get_vpn_clients – get list of vpn clients
      • solace_get_vpns – get list of vpns
      • solace_get_available – check if broker semp & spool is available
      • solace_get_facts – get facts for a broker/vpn
  • Roles
Solace PubSub+ Ansible Collection
  • Solace Get Object List Modules
  • solace_get_dmr_cluster_links – get list of links on a dmr cluster
  • Edit on GitHub

solace_get_dmr_cluster_links – get list of links on a dmr cluster

Get a list of Links configured on a DMR Cluster object.

Implements the config and monitor API.

Retrieves all objects that match the criteria defined in the ‘where’ clause and returns the fields defined in the ‘select’ parameter.

Examples

hosts: all
gather_facts: no
any_errors_fatal: true
collections:
- solace.pubsub_plus
module_defaults:
  solace_get_dmr_cluster_links:
    host: "{{ sempv2_host }}"
    port: "{{ sempv2_port }}"
    secure_connection: "{{ sempv2_is_secure_connection }}"
    username: "{{ sempv2_username }}"
    password: "{{ sempv2_password }}"
    timeout: "{{ sempv2_timeout }}"
tasks:

- name: get list config
  solace_get_dmr_cluster_links:
    dmr_cluster_name: "{{ dmr_cluster_name }}"
    remote_node_name: "{{ remote_node_name }}"
  register: result

- name: print result
  debug:
    msg:
    - "{{ result.result_list }}"
    - "{{ result.result_list_count }}"

- name: get list monitor
  solace_get_dmr_cluster_links:
    api: monitor
    dmr_cluster_name: "{{ dmr_cluster_name }}"
    remote_node_name: "{{ remote_node_name }}"
  register: result

- name: print result
  debug:
    msg:
    - "{{ result.result_list }}"
    - "{{ result.result_list_count }}"

Notes

Note

  • Module Sempv2 Config: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/dmrCluster/getDmrClusterLinks

  • Module Sempv2 Monitor: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/monitor/index.html#/dmrCluster/getDmrClusterLinks

  • Sempv2 Config Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/

  • Sempv2 Monitor Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/monitor/index.html#/

  • Sempv2 Action Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/action/index.html#/

See Also

See also

  • solace_dmr_cluster_link – link on a dmr cluster

Parameters

api (optional)

The API the query should run against.

type: str
default: config
choices: config, monitor
dmr_cluster_name (required)

The name of the DMR Cluster. Maps to ‘dmrClusterName’ in the API.

type: str
host (optional)

Hostname of Solace Broker.

type: str
default: localhost
page_count (optional)

The number of results to be fetched from broker in single call. Note: always returns the entire result set by following the cursor.

type: int
default: 100
password (optional)

Administrator password for Solace Broker.

type: str
default: admin
port (optional)

Management port of Solace Broker.

type: int
default: 8080
query_params (optional)

The query parameters.

type: dict
default: {}
select (optional)

Include in the response only selected attributes of the object, or exclude from the response selected attributes of the object. See the documentation for the select parameter.

type: list
default: []
where (optional)

Include in the response only objects where certain conditions are true. See the the documentation for the where parameter.

Note: URL encoded automatically, you can safely use ‘/, <, <=, >, >=, != .. ‘

type: list
default: []
reverse_proxy (optional)

Use a reverse proxy / api gateway. Note: Experimental. Not permitted for Solace Cloud API.

type: dict
headers (optional)

Additional headers to add to the http call. Example: ‘apiKey: {my-api-key}’.

type: dict
x-asc-module (optional)

Flag for the module to add the header ‘x-asc-module:{module-name}’ to the http call with it’s module name.

type: bool
default: False
x-asc-module-op (optional)

Flag for the module to add the header ‘x-asc-module-op:{module operation}’ to the http call with the module’s operation.

type: bool
default: False
query_params (optional)

Additional query paramters to add to the URL. Example: ‘apiCode: {my-api-code}’.

type: dict
semp_base_path (optional)

Base path prepended to all SEMP calls. Example: ‘my/base/path’. Resulting URL will be: http(s)://{host}:{port}/{semp_base_path}/{module-semp-call-path}

type: str
use_basic_auth (optional)

Flag to use basic authentication in the http(s) call or not. Uses ‘username’/’password’.

type: bool
default: False
secure_connection (optional)

If true, use https rather than http.

type: bool
default: False
timeout (optional)

Connection timeout in seconds for the http request.

type: int
default: 10
username (optional)

Administrator username for Solace Broker.

type: str
default: admin
validate_certs (optional)

Flag to switch validation of client certificates on/off when using a secure connection.

type: bool
default: True
x_broker (optional)

Custom HTTP header with the broker virtual router id, if using a SEMPv2 Proxy/agent infrastructure.

type: str

Return Values

result_list

The list of objects found containing requested fields. Payload depends on API called.

returned: success
type: list
result_list_count

Number of items in result_list.

returned: success
type: int
rc

Return code. rc=0 on success, rc=1 on error.

returned: always
type: int
sample:
  {
  "error": {
    "rc": 1
  },
  "success": {
    "rc": 0
  }
}
msg

The response from the HTTP call in case of error.

returned: error
type: dict
Previous Next

© Copyright 2022, Solace Corporation, Ricardo Gomez-Ulmke, <ricardo.gomez-ulmke@solace.com>. Last updated on 04 Apr 2023 at 11:46.

Built with Sphinx using a theme provided by Read the Docs.