Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_split.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: networks_split
9 short_description: Resource module for networks _split
10 description:
11 - Manage operation create of the resource networks _split.
12 - Split a combined network into individual networks for each type of device.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 networkId:
19 description: NetworkId path parameter. Network ID.
20 type: str
21 requirements:
22 - meraki >= 2.4.9
23 - python >= 3.5
24 seealso:
25 - name: Cisco Meraki documentation for networks splitNetwork
26 description: Complete reference of the splitNetwork API.
27 link: https://developer.cisco.com/meraki/api-v1/#!split-network
28 notes:
29 - SDK Method used are
30 networks.Networks.split_network,
31 - Paths used are
32 post /networks/{networkId}/split,
33 """
34
35 EXAMPLES = r"""
36 - name: Create
37 cisco.meraki.networks_split:
38 meraki_api_key: "{{ meraki_api_key }}"
39 meraki_base_url: "{{ meraki_base_url }}"
40 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
41 meraki_certificate_path: "{{ meraki_certificate_path }}"
42 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
43 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
44 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
45 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
46 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
47 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
48 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
49 meraki_output_log: "{{ meraki_output_log }}"
50 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
51 meraki_log_path: "{{ meraki_log_path }}"
52 meraki_print_console: "{{ meraki_print_console }}"
53 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
54 meraki_simulate: "{{ meraki_simulate }}"
55 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
56 meraki_caller: "{{ meraki_caller }}"
57 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
58 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
59 networkId: string
60 """
61 RETURN = r"""
62 meraki_response:
63 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
64 returned: always
65 type: dict
66 sample: >
67 {
68 "resultingNetworks": [
69 {
70 "id": "string",
71 "organizationId": "string",
72 "name": "string",
73 "productTypes": [
74 "string"
75 ],
76 "timeZone": "string",
77 "tags": [
78 "string"
79 ],
80 "enrollmentString": "string",
81 "url": "string",
82 "notes": "string",
83 "isBoundToConfigTemplate": true
84 }
85 ]
86 }
87 """