Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_camera_roles.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_camera_roles
9 short_description: Resource module for organizations _camera _roles
10 description:
11 - Manage operations create, update and delete of the resource organizations _camera
12 _roles.
13 - Creates new role for this organization.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module
17 author: Francisco Munoz (@fmunoz)
18 options:
19 appliedOnDevices:
20 description: Device tag on which this specified permission is applied.
21 elements: dict
22 suboptions:
23 id:
24 description: Device id.
25 type: str
26 inNetworksWithId:
27 description: Network id scope.
28 type: str
29 inNetworksWithTag:
30 description: Network tag scope.
31 type: str
32 permissionScopeId:
33 description: Permission scope id.
34 type: str
35 tag:
36 description: Device tag.
37 type: str
38 type: list
39 appliedOnNetworks:
40 description: Network tag on which this specified permission is applied.
41 elements: dict
42 suboptions:
43 id:
44 description: Network id.
45 type: str
46 permissionScopeId:
47 description: Permission scope id.
48 type: str
49 tag:
50 description: Network tag.
51 type: str
52 type: list
53 appliedOrgWide:
54 description: Permissions to be applied org wide.
55 elements: dict
56 suboptions:
57 permissionScopeId:
58 description: Permission scope id.
59 type: str
60 type: list
61 name:
62 description: The name of the new role. Must be unique. This parameter is required.
63 type: str
64 organizationId:
65 description: OrganizationId path parameter. Organization ID.
66 type: str
67 requirements:
68 - meraki >= 2.4.9
69 - python >= 3.5
70 seealso:
71 - name: Cisco Meraki documentation for camera createOrganizationCameraRole
72 description: Complete reference of the createOrganizationCameraRole API.
73 link: https://developer.cisco.com/meraki/api-v1/#!create-organization-camera-role
74 notes:
75 - SDK Method used are
76 camera.Camera.create_organization_camera_role,
77 - Paths used are
78 post /organizations/{organizationId}/camera/roles,
79 """
80
81 EXAMPLES = r"""
82 - name: Create
83 cisco.meraki.organizations_camera_roles:
84 meraki_api_key: "{{ meraki_api_key }}"
85 meraki_base_url: "{{ meraki_base_url }}"
86 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
87 meraki_certificate_path: "{{ meraki_certificate_path }}"
88 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
89 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
90 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
91 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
92 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
93 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
94 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
95 meraki_output_log: "{{ meraki_output_log }}"
96 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
97 meraki_log_path: "{{ meraki_log_path }}"
98 meraki_print_console: "{{ meraki_print_console }}"
99 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
100 meraki_simulate: "{{ meraki_simulate }}"
101 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
102 meraki_caller: "{{ meraki_caller }}"
103 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
104 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
105 state: present
106 appliedOnDevices:
107 - id: ''
108 permissionScopeId: '1'
109 tag: reception-desk
110 appliedOnNetworks:
111 - id: ''
112 permissionScopeId: '2'
113 tag: building-a
114 appliedOrgWide:
115 - id: ''
116 permissionScopeId: '2'
117 tag: building-a
118 name: Security_Guard
119 organizationId: string
120 """
121 RETURN = r"""
122 meraki_response:
123 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
124 returned: always
125 type: dict
126 sample: >
127 {
128 "name": "string",
129 "appliedOnDevices": [
130 {
131 "tag": "string",
132 "id": "string",
133 "permissionScopeId": "string",
134 "permissionScope": "string",
135 "permissionLevel": "string"
136 }
137 ],
138 "appliedOnNetworks": [
139 {
140 "tag": "string",
141 "id": "string",
142 "permissionScopeId": "string",
143 "permissionScope": "string",
144 "permissionLevel": "string"
145 }
146 ],
147 "appliedOrgWide": [
148 {
149 "tag": "string",
150 "permissionScopeId": "string",
151 "permissionScope": "string",
152 "permissionLevel": "string"
153 }
154 ]
155 }
156 """