Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_networks_combine.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_networks_combine
9 short_description: Resource module for organizations _networks _combine
10 description:
11 - Manage operation create of the resource organizations _networks _combine.
12 - Combine multiple networks into a single network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 enrollmentString:
19 description: A unique identifier which can be used for device enrollment or easy
20 access through the Meraki SM Registration page or the Self Service Portal. Please
21 note that changing this field may cause existing bookmarks to break. All networks
22 that are part of this combined network will have their enrollment string appended
23 by '-network_type'. If left empty, all exisitng enrollment strings will be deleted.
24 type: str
25 name:
26 description: The name of the combined network.
27 type: str
28 networkIds:
29 description: A list of the network IDs that will be combined. If an ID of a combined
30 network is included in this list, the other networks in the list will be grouped
31 into that network.
32 elements: str
33 type: list
34 organizationId:
35 description: OrganizationId path parameter. Organization ID.
36 type: str
37 requirements:
38 - meraki >= 2.4.9
39 - python >= 3.5
40 seealso:
41 - name: Cisco Meraki documentation for organizations combineOrganizationNetworks
42 description: Complete reference of the combineOrganizationNetworks API.
43 link: https://developer.cisco.com/meraki/api-v1/#!combine-organization-networks
44 notes:
45 - SDK Method used are
46 organizations.Organizations.combine_organization_networks,
47 - Paths used are
48 post /organizations/{organizationId}/networks/combine,
49 """
50
51 EXAMPLES = r"""
52 - name: Create
53 cisco.meraki.organizations_networks_combine:
54 meraki_api_key: "{{ meraki_api_key }}"
55 meraki_base_url: "{{ meraki_base_url }}"
56 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
57 meraki_certificate_path: "{{ meraki_certificate_path }}"
58 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
59 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
60 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
61 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
62 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
63 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
64 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
65 meraki_output_log: "{{ meraki_output_log }}"
66 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
67 meraki_log_path: "{{ meraki_log_path }}"
68 meraki_print_console: "{{ meraki_print_console }}"
69 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
70 meraki_simulate: "{{ meraki_simulate }}"
71 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
72 meraki_caller: "{{ meraki_caller }}"
73 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
74 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
75 enrollmentString: my-enrollment-string
76 name: Long Island Office
77 networkIds:
78 - N_1234
79 - N_5678
80 organizationId: string
81 """
82 RETURN = r"""
83 meraki_response:
84 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
85 returned: always
86 type: dict
87 sample: >
88 {
89 "resultingNetwork": {
90 "id": "string",
91 "organizationId": "string",
92 "name": "string",
93 "productTypes": [
94 "string"
95 ],
96 "timeZone": "string",
97 "tags": [
98 "string"
99 ],
100 "enrollmentString": "string",
101 "url": "string",
102 "notes": "string",
103 "isBoundToConfigTemplate": true
104 }
105 }
106 """