| 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_vlan_profiles_assignments_reassign |
| 9 |
short_description: Resource module for networks _vlanprofiles _assignments _reassign |
| 10 |
description: |
| 11 |
- Manage operation create of the resource networks _vlanprofiles _assignments _reassign. |
| 12 |
- Update the assigned VLAN Profile for devices in a network. |
| 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 |
serials: |
| 22 |
description: Array of Device Serials. |
| 23 |
elements: str |
| 24 |
type: list |
| 25 |
stackIds: |
| 26 |
description: Array of Switch Stack IDs. |
| 27 |
elements: str |
| 28 |
type: list |
| 29 |
vlanProfile: |
| 30 |
description: The VLAN Profile. |
| 31 |
suboptions: |
| 32 |
iname: |
| 33 |
description: IName of the VLAN Profile. |
| 34 |
type: str |
| 35 |
type: dict |
| 36 |
requirements: |
| 37 |
- meraki >= 2.4.9 |
| 38 |
- python >= 3.5 |
| 39 |
seealso: |
| 40 |
- name: Cisco Meraki documentation for networks reassignNetworkVlanProfilesAssignments |
| 41 |
description: Complete reference of the reassignNetworkVlanProfilesAssignments |
| 42 |
API. |
| 43 |
link: https://developer.cisco.com/meraki/api-v1/#!reassign-network-vlan-profiles-assignments |
| 44 |
notes: |
| 45 |
- SDK Method used are |
| 46 |
networks.Networks.reassign_network_vlan_profiles_assignments, |
| 47 |
- Paths used are |
| 48 |
post /networks/{networkId}/vlanProfiles/assignments/reassign, |
| 49 |
""" |
| 50 |
|
| 51 |
EXAMPLES = r""" |
| 52 |
- name: Create |
| 53 |
cisco.meraki.networks_vlan_profiles_assignments_reassign: |
| 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 |
networkId: string |
| 76 |
serials: |
| 77 |
- Q234-ABCD-5678 |
| 78 |
stackIds: |
| 79 |
- '1234' |
| 80 |
vlanProfile: |
| 81 |
iname: Profile1 |
| 82 |
""" |
| 83 |
RETURN = r""" |
| 84 |
meraki_response: |
| 85 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 86 |
returned: always |
| 87 |
type: dict |
| 88 |
sample: > |
| 89 |
{ |
| 90 |
"vlanProfile": { |
| 91 |
"iname": "string", |
| 92 |
"name": "string" |
| 93 |
}, |
| 94 |
"serials": [ |
| 95 |
"string" |
| 96 |
], |
| 97 |
"stackIds": [ |
| 98 |
"string" |
| 99 |
] |
| 100 |
} |
| 101 |
""" |