Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_sm_target_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: networks_sm_target_groups_info
9 short_description: Information module for networks _sm _targetgroups
10 description:
11 - Information module for Networks Sm Targetgroups Info.
12 - Get all networks _sm _targetgroups.
13 - Get networks _sm _targetgroups by id.
14 - List the target groups in this network.
15 - Return a target group.
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 networkId:
25 description:
26 - Information module for Networks Sm Targetgroups Info.
27 - NetworkId path parameter. Network ID.
28 type: str
29 withDetails:
30 description:
31 - Information module for Networks Sm Targetgroups Info.
32 - >
33 WithDetails query parameter. Boolean indicating if the the ids of the devices
34 or users scoped by the target group should be included in the response.
35 type: bool
36 targetGroupId:
37 description:
38 - Information module for Networks Sm Targetgroups Info.
39 - TargetGroupId path parameter. Target group ID.
40 type: str
41 requirements:
42 - meraki >= 2.4.9
43 - python >= 3.5
44 seealso:
45 - name: Cisco Meraki documentation for sm getNetworkSmTargetGroup
46 description: Complete reference of the getNetworkSmTargetGroup API.
47 link: https://developer.cisco.com/meraki/api-v1/#!get-network-sm-target-group
48 - name: Cisco Meraki documentation for sm getNetworkSmTargetGroups
49 description: Complete reference of the getNetworkSmTargetGroups API.
50 link: https://developer.cisco.com/meraki/api-v1/#!get-network-sm-target-groups
51 notes:
52 - SDK Method used are
53 sm.Sm.get_network_sm_target_group,
54 sm.Sm.get_network_sm_target_groups,
55 - Paths used are
56 get /networks/{networkId}/sm/targetGroups,
57 get /networks/{networkId}/sm/targetGroups/{targetGroupId},
58 """
59
60 EXAMPLES = r"""
61 - name: Get all networks _sm _targetgroups
62 cisco.meraki.networks_sm_target_groups_info:
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 withDetails: true
85 networkId: string
86 register: result
87 - name: Get networks _sm _targetgroups by id
88 cisco.meraki.networks_sm_target_groups_info:
89 meraki_api_key: "{{ meraki_api_key }}"
90 meraki_base_url: "{{ meraki_base_url }}"
91 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
92 meraki_certificate_path: "{{ meraki_certificate_path }}"
93 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
94 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
95 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
96 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
97 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
98 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
99 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
100 meraki_output_log: "{{ meraki_output_log }}"
101 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
102 meraki_log_path: "{{ meraki_log_path }}"
103 meraki_print_console: "{{ meraki_print_console }}"
104 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
105 meraki_simulate: "{{ meraki_simulate }}"
106 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
107 meraki_caller: "{{ meraki_caller }}"
108 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
109 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
110 withDetails: true
111 networkId: string
112 targetGroupId: string
113 register: result
114 """
115 RETURN = r"""
116 meraki_response:
117 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
118 returned: always
119 type: dict
120 sample: >
121 {
122 "id": "string",
123 "name": "string",
124 "scope": "string",
125 "tags": [
126 "string"
127 ]
128 }
129 """