| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: networks_mqtt_brokers |
| 9 |
short_description: Resource module for networks _mqttbrokers |
| 10 |
description: |
| 11 |
- Manage operation create of the resource networks _mqttbrokers. |
| 12 |
- Add an MQTT broker. |
| 13 |
version_added: '1.0.0' |
| 14 |
extends_documentation_fragment: |
| 15 |
- cisco.meraki.module |
| 16 |
author: Francisco Munoz (@fmunoz) |
| 17 |
options: |
| 18 |
authentication: |
| 19 |
description: Authentication settings of the MQTT broker. |
| 20 |
suboptions: |
| 21 |
password: |
| 22 |
description: Password for the MQTT broker. |
| 23 |
type: str |
| 24 |
username: |
| 25 |
description: Username for the MQTT broker. |
| 26 |
type: str |
| 27 |
type: dict |
| 28 |
host: |
| 29 |
description: Host name/IP address where the MQTT broker runs. |
| 30 |
type: str |
| 31 |
name: |
| 32 |
description: Name of the MQTT broker. |
| 33 |
type: str |
| 34 |
networkId: |
| 35 |
description: NetworkId path parameter. Network ID. |
| 36 |
type: str |
| 37 |
port: |
| 38 |
description: Host port though which the MQTT broker can be reached. |
| 39 |
type: int |
| 40 |
security: |
| 41 |
description: Security settings of the MQTT broker. |
| 42 |
suboptions: |
| 43 |
mode: |
| 44 |
description: Security protocol of the MQTT broker. |
| 45 |
type: str |
| 46 |
tls: |
| 47 |
description: TLS settings of the MQTT broker. |
| 48 |
suboptions: |
| 49 |
caCertificate: |
| 50 |
description: CA Certificate of the MQTT broker. |
| 51 |
type: str |
| 52 |
verifyHostnames: |
| 53 |
description: Whether the TLS hostname verification is enabled for the |
| 54 |
MQTT broker. |
| 55 |
type: bool |
| 56 |
type: dict |
| 57 |
type: dict |
| 58 |
requirements: |
| 59 |
- meraki >= 2.4.9 |
| 60 |
- python >= 3.5 |
| 61 |
seealso: |
| 62 |
- name: Cisco Meraki documentation for networks createNetworkMqttBroker |
| 63 |
description: Complete reference of the createNetworkMqttBroker API. |
| 64 |
link: https://developer.cisco.com/meraki/api-v1/#!create-network-mqtt-broker |
| 65 |
notes: |
| 66 |
- SDK Method used are |
| 67 |
networks.Networks.create_network_mqtt_broker, |
| 68 |
- Paths used are |
| 69 |
post /networks/{networkId}/mqttBrokers, |
| 70 |
""" |
| 71 |
|
| 72 |
EXAMPLES = r""" |
| 73 |
- name: Create |
| 74 |
cisco.meraki.networks_mqtt_brokers: |
| 75 |
meraki_api_key: "{{ meraki_api_key }}" |
| 76 |
meraki_base_url: "{{ meraki_base_url }}" |
| 77 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 78 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 79 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 80 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 81 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 82 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 83 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 84 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 85 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 86 |
meraki_output_log: "{{ meraki_output_log }}" |
| 87 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 88 |
meraki_log_path: "{{ meraki_log_path }}" |
| 89 |
meraki_print_console: "{{ meraki_print_console }}" |
| 90 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 91 |
meraki_simulate: "{{ meraki_simulate }}" |
| 92 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 93 |
meraki_caller: "{{ meraki_caller }}" |
| 94 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 95 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 96 |
authentication: |
| 97 |
password: '*****' |
| 98 |
username: milesmeraki |
| 99 |
host: 1.2.3.4 |
| 100 |
name: MQTT_Broker_1 |
| 101 |
networkId: string |
| 102 |
port: 443 |
| 103 |
security: |
| 104 |
mode: tls |
| 105 |
tls: |
| 106 |
caCertificate: '*****' |
| 107 |
verifyHostnames: true |
| 108 |
""" |
| 109 |
RETURN = r""" |
| 110 |
meraki_response: |
| 111 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 112 |
returned: always |
| 113 |
type: dict |
| 114 |
sample: > |
| 115 |
{ |
| 116 |
"id": "string", |
| 117 |
"name": "string", |
| 118 |
"host": "string", |
| 119 |
"port": 0, |
| 120 |
"security": { |
| 121 |
"mode": "string", |
| 122 |
"tls": { |
| 123 |
"hasCaCertificate": true, |
| 124 |
"verifyHostnames": true |
| 125 |
} |
| 126 |
}, |
| 127 |
"authentication": { |
| 128 |
"username": "string" |
| 129 |
} |
| 130 |
} |
| 131 |
""" |