Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_networks_moves.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_moves
9 short_description: Resource module for organizations _networks _moves
10 description:
11 - Manage operation create of the resource organizations _networks _moves.
12 - >
13 Move networks from one organization to another. For more information and caveats around network move
14 limitations see the Network Portability documentation.
15 version_added: '1.0.0'
16 extends_documentation_fragment:
17 - cisco.meraki.module
18 author: Francisco Munoz (@fmunoz)
19 options:
20 network:
21 description: Network to be moved.
22 suboptions:
23 id:
24 description: ID of the network to move.
25 type: str
26 type: dict
27 organizationId:
28 description: OrganizationId path parameter. Organization ID.
29 type: str
30 organizations:
31 description: Organizations involved in the network move.
32 suboptions:
33 target:
34 description: The organization to which the network is moving.
35 suboptions:
36 id:
37 description: ID of the organization to which the network is moving.
38 type: str
39 type: dict
40 type: dict
41 simulate:
42 description: If true, simulates the network move and validates the operation without
43 committing changes. The network will remain in the source organization.
44 type: bool
45 requirements:
46 - meraki >= 2.4.9
47 - python >= 3.5
48 seealso:
49 - name: Cisco Meraki documentation for organizations createNetworkMove
50 description: Complete reference of the createNetworkMove API.
51 link: https://developer.cisco.com/meraki/api-v1/#!create-network-move
52 notes:
53 - SDK Method used are
54 organizations.Organizations.create_network_move,
55
56 - Paths used are
57 post /organizations/{organizationId}/networks/moves,
58 """
59
60 EXAMPLES = r"""
61 - name: Create
62 cisco.meraki.organizations_networks_moves:
63 meraki_api_key: "{{ meraki_api_key }}"
64 meraki_base_url: "{{ meraki_base_url }}"
65 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
66 meraki_certificate_path: "{{ meraki_certificate_path }}"
67 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
68 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
69 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
70 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
71 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
72 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
73 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
74 meraki_output_log: "{{ meraki_output_log }}"
75 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
76 meraki_log_path: "{{ meraki_log_path }}"
77 meraki_print_console: "{{ meraki_print_console }}"
78 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
79 meraki_simulate: "{{ meraki_simulate }}"
80 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
81 meraki_caller: "{{ meraki_caller }}"
82 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
83 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
84 state: present
85
86 network:
87 id: N_569142402909112097
88 organizationId: string
89 organizations:
90 target:
91 id: '146308'
92 simulate: false
93 """
94 RETURN = r"""
95 meraki_response:
96 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
97 returned: always
98 type: dict
99 sample: >
100 {
101 "moveId": "string",
102 "initiator": {
103 "admin": {
104 "id": "string"
105 }
106 },
107 "organizations": {
108 "source": {
109 "id": "string"
110 },
111 "target": {
112 "id": "string"
113 }
114 },
115 "network": {
116 "id": "string"
117 },
118 "createdAt": "string",
119 "lastUpdatedAt": "string",
120 "result": {
121 "status": "string",
122 "reason": "string"
123 }
124 }
125 """