Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_static_routes_info.py

raw symbols SCIP
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 ---
9 module: networks_appliance_static_routes_info
10 short_description: Information module for networks _appliance _static _routes
11 description:
12 - Get all networks _appliance _static _routes.
13 - Get networks _appliance _static _routes by id.
14 - List the static routes for an MX or teleworker network.
15 - Return a static route for an MX or teleworker network.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 author: Francisco Munoz (@fmunoz)
20 options:
21 headers:
22 description: Additional headers.
23 type: dict
24 networkId:
25 description:
26 - NetworkId path parameter. Network ID.
27 type: str
28 staticRouteId:
29 description:
30 - StaticRouteId path parameter. Static route ID.
31 type: str
32 requirements:
33 - meraki >= 2.4.9
34 - python >= 3.5
35 seealso:
36 - name: Cisco Meraki documentation for appliance getNetworkApplianceStaticRoute
37 description: Complete reference of the getNetworkApplianceStaticRoute API.
38 link: https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-static-route
39 - name: Cisco Meraki documentation for appliance getNetworkApplianceStaticRoutes
40 description: Complete reference of the getNetworkApplianceStaticRoutes API.
41 link: https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-static-routes
42 notes:
43 - SDK Method used are
44 appliance.Appliance.get_network_appliance_static_route,
45 appliance.Appliance.get_network_appliance_static_routes,
46
47 - Paths used are
48 get /networks/{networkId}/appliance/staticRoutes,
49 get /networks/{networkId}/appliance/staticRoutes/{staticRouteId},
50 """
51
52 EXAMPLES = r"""
53 - name: Get all networks _appliance _static _routes
54 cisco.meraki.networks_appliance_static_routes_info:
55 meraki_api_key: "{{ meraki_api_key }}"
56 meraki_base_url: "{{ meraki_base_url }}"
57 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
58 meraki_certificate_path: "{{ meraki_certificate_path }}"
59 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
60 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
61 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
62 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
63 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
64 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
65 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
66 meraki_output_log: "{{ meraki_output_log }}"
67 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
68 meraki_log_path: "{{ meraki_log_path }}"
69 meraki_print_console: "{{ meraki_print_console }}"
70 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
71 meraki_simulate: "{{ meraki_simulate }}"
72 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
73 meraki_caller: "{{ meraki_caller }}"
74 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
75 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
76 networkId: string
77 register: result
78
79 - name: Get networks _appliance _static _routes by id
80 cisco.meraki.networks_appliance_static_routes_info:
81 meraki_api_key: "{{ meraki_api_key }}"
82 meraki_base_url: "{{ meraki_base_url }}"
83 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
84 meraki_certificate_path: "{{ meraki_certificate_path }}"
85 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
86 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
87 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
88 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
89 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
90 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
91 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
92 meraki_output_log: "{{ meraki_output_log }}"
93 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
94 meraki_log_path: "{{ meraki_log_path }}"
95 meraki_print_console: "{{ meraki_print_console }}"
96 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
97 meraki_simulate: "{{ meraki_simulate }}"
98 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
99 meraki_caller: "{{ meraki_caller }}"
100 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
101 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
102 networkId: string
103 staticRouteId: string
104 register: result
105
106 """
107 RETURN = r"""
108 meraki_response:
109 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
110 returned: always
111 type: dict
112 sample: >
113 {
114 "id": "string",
115 "ipVersion": 0,
116 "networkId": "string",
117 "enabled": true,
118 "name": "string",
119 "subnet": "string",
120 "gatewayIp": "string",
121 "fixedIpAssignments": {},
122 "reservedIpRanges": [
123 {
124 "start": "string",
125 "end": "string",
126 "comment": "string"
127 }
128 ],
129 "gatewayVlanId": 0
130 }
131 """