Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_policy_objects_groups_info.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_policy_objects_groups_info
9 short_description: Information module for organizations _policyobjects _groups
10 description:
11 - Information module for Organizations Policyobjects Groups Info.
12 - Get all organizations _policyobjects _groups.
13 - Get organizations _policyobjects _groups by id.
14 - Lists Policy Object Groups belonging to the organization.
15 - Shows details of a Policy Object Group.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 - cisco.meraki.module_info_pagination
20 author: Francisco Munoz (@fmunoz)
21 options:
22 headers:
23 description: Additional headers.
24 type: dict
25 organizationId:
26 description:
27 - Information module for Organizations Policyobjects Groups Info.
28 - OrganizationId path parameter. Organization ID.
29 type: str
30 perPage:
31 description:
32 - Information module for Organizations Policyobjects Groups Info.
33 - PerPage query parameter. The number of entries per page returned. Acceptable
34 range is 10 - 1000. Default is 1000.
35 type: int
36 startingAfter:
37 description:
38 - Information module for Organizations Policyobjects Groups Info.
39 - >
40 StartingAfter query parameter. A token used by the server to indicate the
41 start of the page. Often this is a timestamp or an ID but it is not limited
42 to those. This parameter should not be defined by client applications. The
43 link for the first, last, prev, or next page in the HTTP Link header should
44 define it.
45 type: str
46 endingBefore:
47 description:
48 - Information module for Organizations Policyobjects Groups Info.
49 - >
50 EndingBefore query parameter. A token used by the server to indicate the end
51 of the page. Often this is a timestamp or an ID but it is not limited to those.
52 This parameter should not be defined by client applications. The link for
53 the first, last, prev, or next page in the HTTP Link header should define
54 it.
55 type: str
56 policyObjectGroupId:
57 description:
58 - Information module for Organizations Policyobjects Groups Info.
59 - PolicyObjectGroupId path parameter. Policy object group ID.
60 type: str
61 requirements:
62 - meraki >= 2.4.9
63 - python >= 3.5
64 seealso:
65 - name: Cisco Meraki documentation for organizations getOrganizationPolicyObjectsGroup
66 description: Complete reference of the getOrganizationPolicyObjectsGroup API.
67 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-policy-objects-group
68 - name: Cisco Meraki documentation for organizations getOrganizationPolicyObjectsGroups
69 description: Complete reference of the getOrganizationPolicyObjectsGroups API.
70 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-policy-objects-groups
71 notes:
72 - SDK Method used are
73 organizations.Organizations.get_organization_policy_objects_group,
74 organizations.Organizations.get_organization_policy_objects_groups,
75 - Paths used are
76 get /organizations/{organizationId}/policyObjects/groups,
77 get /organizations/{organizationId}/policyObjects/groups/{policyObjectGroupId},
78 """
79
80 EXAMPLES = r"""
81 - name: Get all organizations _policyobjects _groups
82 cisco.meraki.organizations_policy_objects_groups_info:
83 meraki_api_key: "{{ meraki_api_key }}"
84 meraki_base_url: "{{ meraki_base_url }}"
85 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
86 meraki_certificate_path: "{{ meraki_certificate_path }}"
87 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
88 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
89 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
90 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
91 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
92 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
93 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
94 meraki_output_log: "{{ meraki_output_log }}"
95 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
96 meraki_log_path: "{{ meraki_log_path }}"
97 meraki_print_console: "{{ meraki_print_console }}"
98 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
99 meraki_simulate: "{{ meraki_simulate }}"
100 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
101 meraki_caller: "{{ meraki_caller }}"
102 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
103 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
104 perPage: 0
105 startingAfter: string
106 endingBefore: string
107 organizationId: string
108 total_pages: -1
109 direction: next
110 register: result
111 - name: Get organizations _policyobjects _groups by id
112 cisco.meraki.organizations_policy_objects_groups_info:
113 meraki_api_key: "{{ meraki_api_key }}"
114 meraki_base_url: "{{ meraki_base_url }}"
115 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
116 meraki_certificate_path: "{{ meraki_certificate_path }}"
117 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
118 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
119 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
120 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
121 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
122 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
123 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
124 meraki_output_log: "{{ meraki_output_log }}"
125 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
126 meraki_log_path: "{{ meraki_log_path }}"
127 meraki_print_console: "{{ meraki_print_console }}"
128 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
129 meraki_simulate: "{{ meraki_simulate }}"
130 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
131 meraki_caller: "{{ meraki_caller }}"
132 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
133 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
134 organizationId: string
135 policyObjectGroupId: string
136 register: result
137 """
138 RETURN = r"""
139 meraki_response:
140 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
141 returned: always
142 type: dict
143 sample: >
144 {
145 "id": "string",
146 "name": "string",
147 "category": "string",
148 "createdAt": "string",
149 "updatedAt": "string",
150 "objectIds": [
151 0
152 ],
153 "networkIds": [
154 "string"
155 ]
156 }
157 """