Debian Codegraph @

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

raw
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 module: organizations_uplinks_statuses_info
9 short_description: Information module for organizations _uplinks _statuses
10 description:
11 - Information module for Organizations Uplinks Statuses Info.
12 - Get all organizations _uplinks _statuses.
13 - List the uplink status of every Meraki MX, MG and Z series devices in the organization.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 - cisco.meraki.module_info_pagination
18 author: Francisco Munoz (@fmunoz)
19 options:
20 headers:
21 description: Additional headers.
22 type: dict
23 organizationId:
24 description:
25 - Information module for Organizations Uplinks Statuses Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Uplinks Statuses Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 1000. Default is 1000.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Organizations Uplinks Statuses Info.
37 - >
38 StartingAfter query parameter. A token used by the server to indicate the
39 start of the page. Often this is a timestamp or an ID but it is not limited
40 to those. This parameter should not be defined by client applications. The
41 link for the first, last, prev, or next page in the HTTP Link header should
42 define it.
43 type: str
44 endingBefore:
45 description:
46 - Information module for Organizations Uplinks Statuses Info.
47 - >
48 EndingBefore query parameter. A token used by the server to indicate the end
49 of the page. Often this is a timestamp or an ID but it is not limited to those.
50 This parameter should not be defined by client applications. The link for
51 the first, last, prev, or next page in the HTTP Link header should define
52 it.
53 type: str
54 networkIds:
55 description:
56 - Information module for Organizations Uplinks Statuses Info.
57 - >
58 NetworkIds query parameter. A list of network IDs. The returned devices will
59 be filtered to only include these networks.
60 elements: str
61 type: list
62 serials:
63 description:
64 - Information module for Organizations Uplinks Statuses Info.
65 - >
66 Serials query parameter. A list of serial numbers. The returned devices will
67 be filtered to only include these serials.
68 elements: str
69 type: list
70 iccids:
71 description:
72 - Information module for Organizations Uplinks Statuses Info.
73 - Iccids query parameter. A list of ICCIDs. The returned devices will be filtered
74 to only include these ICCIDs.
75 elements: str
76 type: list
77 requirements:
78 - meraki >= 2.4.9
79 - python >= 3.5
80 seealso:
81 - name: Cisco Meraki documentation for organizations getOrganizationUplinksStatuses
82 description: Complete reference of the getOrganizationUplinksStatuses API.
83 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-uplinks-statuses
84 notes:
85 - SDK Method used are
86 organizations.Organizations.get_organization_uplinks_statuses,
87 - Paths used are
88 get /organizations/{organizationId}/uplinks/statuses,
89 """
90
91 EXAMPLES = r"""
92 - name: Get all organizations _uplinks _statuses
93 cisco.meraki.organizations_uplinks_statuses_info:
94 meraki_api_key: "{{ meraki_api_key }}"
95 meraki_base_url: "{{ meraki_base_url }}"
96 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
97 meraki_certificate_path: "{{ meraki_certificate_path }}"
98 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
99 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
100 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
101 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
102 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
103 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
104 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
105 meraki_output_log: "{{ meraki_output_log }}"
106 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
107 meraki_log_path: "{{ meraki_log_path }}"
108 meraki_print_console: "{{ meraki_print_console }}"
109 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
110 meraki_simulate: "{{ meraki_simulate }}"
111 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
112 meraki_caller: "{{ meraki_caller }}"
113 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
114 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
115 perPage: 0
116 startingAfter: string
117 endingBefore: string
118 networkIds: []
119 serials: []
120 iccids: []
121 organizationId: string
122 total_pages: -1
123 direction: next
124 register: result
125 """
126 RETURN = r"""
127 meraki_response:
128 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
129 returned: always
130 type: list
131 elements: dict
132 sample: >
133 [
134 {
135 "networkId": "string",
136 "serial": "string",
137 "model": "string",
138 "lastReportedAt": "string",
139 "highAvailability": {
140 "enabled": true,
141 "role": "string"
142 },
143 "uplinks": [
144 {
145 "interface": "string",
146 "status": "string",
147 "ip": "string",
148 "gateway": "string",
149 "publicIp": "string",
150 "primaryDns": "string",
151 "secondaryDns": "string",
152 "ipAssignedBy": "string",
153 "provider": "string",
154 "signalStat": {
155 "rsrp": "string",
156 "rsrq": "string"
157 },
158 "mcc": "string",
159 "mnc": "string",
160 "roaming": {
161 "status": "string"
162 },
163 "connectionType": "string",
164 "apn": "string",
165 "dns1": "string",
166 "dns2": "string",
167 "signalType": "string",
168 "mtu": 0,
169 "iccid": "string",
170 "imsi": "string",
171 "msisdn": "string"
172 }
173 ]
174 }
175 ]
176 """