Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_action_batches_info.py

raw symbols SCIP
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_action_batches_info
9 short_description: Information module for organizations _actionbatches
10 description:
11 - Information module for Organizations Actionbatches Info.
12 - Get all organizations _actionbatches.
13 - Get organizations _actionbatches by id.
14 - Return an action batch.
15 - Return the list of action batches in the organization.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 author: Francisco Munoz (@fmunoz)
20 options:
21 headers:
22 description: Additional headers.
23 type: dict
24 organizationId:
25 description:
26 - Information module for Organizations Actionbatches Info.
27 - OrganizationId path parameter. Organization ID.
28 type: str
29 status:
30 description:
31 - Information module for Organizations Actionbatches Info.
32 - Status query parameter. Filter batches by status. Valid types are pending,
33 completed, and failed.
34 type: str
35 actionBatchId:
36 description:
37 - Information module for Organizations Actionbatches Info.
38 - ActionBatchId path parameter. Action batch ID.
39 type: str
40 requirements:
41 - meraki >= 2.4.9
42 - python >= 3.5
43 seealso:
44 - name: Cisco Meraki documentation for organizations getOrganizationActionBatch
45 description: Complete reference of the getOrganizationActionBatch API.
46 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-action-batch
47 - name: Cisco Meraki documentation for organizations getOrganizationActionBatches
48 description: Complete reference of the getOrganizationActionBatches API.
49 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-action-batches
50 notes:
51 - SDK Method used are
52 organizations.Organizations.get_organization_action_batch,
53 organizations.Organizations.get_organization_action_batches,
54 - Paths used are
55 get /organizations/{organizationId}/actionBatches,
56 get /organizations/{organizationId}/actionBatches/{actionBatchId},
57 """
58
59 EXAMPLES = r"""
60 - name: Get all organizations _actionbatches
61 cisco.meraki.organizations_action_batches_info:
62 meraki_api_key: "{{ meraki_api_key }}"
63 meraki_base_url: "{{ meraki_base_url }}"
64 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
65 meraki_certificate_path: "{{ meraki_certificate_path }}"
66 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
67 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
68 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
69 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
70 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
71 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
72 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
73 meraki_output_log: "{{ meraki_output_log }}"
74 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
75 meraki_log_path: "{{ meraki_log_path }}"
76 meraki_print_console: "{{ meraki_print_console }}"
77 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
78 meraki_simulate: "{{ meraki_simulate }}"
79 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
80 meraki_caller: "{{ meraki_caller }}"
81 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
82 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
83 status: string
84 organizationId: string
85 register: result
86 - name: Get organizations _actionbatches by id
87 cisco.meraki.organizations_action_batches_info:
88 meraki_api_key: "{{ meraki_api_key }}"
89 meraki_base_url: "{{ meraki_base_url }}"
90 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
91 meraki_certificate_path: "{{ meraki_certificate_path }}"
92 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
93 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
94 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
95 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
96 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
97 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
98 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
99 meraki_output_log: "{{ meraki_output_log }}"
100 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
101 meraki_log_path: "{{ meraki_log_path }}"
102 meraki_print_console: "{{ meraki_print_console }}"
103 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
104 meraki_simulate: "{{ meraki_simulate }}"
105 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
106 meraki_caller: "{{ meraki_caller }}"
107 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
108 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
109 organizationId: string
110 actionBatchId: string
111 register: result
112 """
113 RETURN = r"""
114 meraki_response:
115 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
116 returned: always
117 type: dict
118 sample: >
119 {
120 "id": "string",
121 "organizationId": "string",
122 "confirmed": true,
123 "synchronous": true,
124 "status": {
125 "completed": true,
126 "failed": true,
127 "errors": [
128 "string"
129 ],
130 "createdResources": [
131 {
132 "id": "string",
133 "uri": "string"
134 }
135 ]
136 },
137 "actions": [
138 {
139 "resource": "string",
140 "operation": "string",
141 "body": {}
142 }
143 ],
144 "callback": {
145 "id": "string",
146 "url": "string",
147 "status": "string"
148 }
149 }
150 """