Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_saml.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_saml
9 short_description: Resource module for organizations _saml
10 description:
11 - Manage operation update of the resource organizations _saml.
12 - Updates the SAML SSO enabled settings for an organization.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 enabled:
19 description: Boolean for updating SAML SSO enabled settings.
20 type: bool
21 organizationId:
22 description: OrganizationId path parameter. Organization ID.
23 type: str
24 spInitiated:
25 description: SP-Initiated SSO settings.
26 suboptions:
27 idpId:
28 description: SAML IdP ID for SP-Initiated SSO Authentication.
29 type: str
30 subdomain:
31 description: Organization's unique SSO identifier.
32 type: str
33 type: dict
34 requirements:
35 - meraki >= 2.4.9
36 - python >= 3.5
37 seealso:
38 - name: Cisco Meraki documentation for organizations updateOrganizationSaml
39 description: Complete reference of the updateOrganizationSaml API.
40 link: https://developer.cisco.com/meraki/api-v1/#!update-organization-saml
41 notes:
42 - SDK Method used are
43 organizations.Organizations.update_organization_saml,
44 - Paths used are
45 put /organizations/{organizationId}/saml,
46 """
47
48 EXAMPLES = r"""
49 - name: Update all
50 cisco.meraki.organizations_saml:
51 meraki_api_key: "{{ meraki_api_key }}"
52 meraki_base_url: "{{ meraki_base_url }}"
53 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
54 meraki_certificate_path: "{{ meraki_certificate_path }}"
55 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
56 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
57 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
58 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
59 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
60 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
61 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
62 meraki_output_log: "{{ meraki_output_log }}"
63 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
64 meraki_log_path: "{{ meraki_log_path }}"
65 meraki_print_console: "{{ meraki_print_console }}"
66 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
67 meraki_simulate: "{{ meraki_simulate }}"
68 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
69 meraki_caller: "{{ meraki_caller }}"
70 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
71 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
72 state: present
73 enabled: true
74 organizationId: string
75 spInitiated:
76 idpId: uu3H_bx28Nnd
77 subdomain: example_subdomain
78 """
79 RETURN = r"""
80 meraki_response:
81 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
82 returned: always
83 type: dict
84 sample: >
85 {
86 "enabled": true,
87 "spInitiated": {
88 "subdomain": "string",
89 "idpId": "string"
90 }
91 }
92 """