Debian Codegraph @

ansible_collections/cisco/aci/plugins/doc_fragments/aci.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2017, Dag Wieers (@dagwieers) <[email protected]>
4 # Copyright: (c) 2017, Swetha Chunduri (@schunduri)
5 # Copyright: (c) 2024, Samita Bhattacharjee (@samiib) <[email protected]>
6 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
7
8 from __future__ import absolute_import, division, print_function
9
10 __metaclass__ = type
11
12
13 class ModuleDocFragment(object):
14 # Standard files documentation fragment
15 DOCUMENTATION = r"""
16 options:
17 host:
18 description:
19 - IP Address or hostname of APIC resolvable by Ansible control host.
20 - If the value is not specified in the task, the value of environment variable C(ACI_HOST) will be used instead.
21 type: str
22 aliases: [ hostname ]
23 port:
24 description:
25 - Port number to be used for REST connection.
26 - The default value depends on parameter C(use_ssl).
27 - If the value is not specified in the task, the value of environment variable C(ACI_PORT) will be used instead.
28 type: int
29 username:
30 description:
31 - The username to use for authentication.
32 - If the value is not specified in the task, the value of environment variables C(ACI_USERNAME) or C(ANSIBLE_NET_USERNAME) will be used instead.
33 - The default value is admin.
34 type: str
35 aliases: [ user ]
36 password:
37 description:
38 - The password to use for authentication.
39 - This option is mutual exclusive with C(private_key). If C(private_key) is provided too, it will be used instead.
40 - If the value is not specified in the task, the value of environment variables C(ACI_PASSWORD) or C(ANSIBLE_NET_PASSWORD) will be used instead.
41 type: str
42 private_key:
43 description:
44 - Either a PEM-formatted private key file or the private key content used for signature-based authentication.
45 - This value also influences the default C(certificate_name) that is used.
46 - This option is mutual exclusive with C(password). If C(password) is provided too, it will be ignored.
47 - If the value is not specified in the task, the value of environment variable C(ACI_PRIVATE_KEY) or C(ANSIBLE_NET_SSH_KEYFILE) will be used instead.
48 type: str
49 aliases: [ cert_key ]
50 certificate_name:
51 description:
52 - The X.509 certificate name attached to the APIC AAA user used for signature-based authentication.
53 - If a C(private_key) filename was provided, this defaults to the C(private_key) basename, without extension.
54 - If PEM-formatted content was provided for C(private_key), this defaults to the C(username) value.
55 - If the value is not specified in the task, the value of environment variable C(ACI_CERTIFICATE_NAME) will be used instead.
56 type: str
57 aliases: [ cert_name ]
58 output_level:
59 description:
60 - Influence the output of this ACI module.
61 - C(normal) means the standard output, incl. C(current) dict
62 - C(info) adds informational output, incl. C(previous), C(proposed) and C(sent) dicts
63 - C(debug) adds debugging output, incl. C(filter_string), C(method), C(response), C(status) and C(url) information
64 - If the value is not specified in the task, the value of environment variable C(ACI_OUTPUT_LEVEL) will be used instead.
65 type: str
66 choices: [ debug, info, normal ]
67 default: normal
68 timeout:
69 description:
70 - The socket level timeout in seconds.
71 - If the value is not specified in the task, the value of environment variable C(ACI_TIMEOUT) will be used instead.
72 - The default value is 30.
73 type: int
74 use_proxy:
75 description:
76 - If C(false), it will not use a proxy, even if one is defined in an environment variable on the target hosts.
77 - If the value is not specified in the task, the value of environment variable C(ACI_USE_PROXY) will be used instead.
78 - The default value is true.
79 type: bool
80 use_ssl:
81 description:
82 - If C(false), an HTTP connection will be used instead of the default HTTPS connection.
83 - If the value is not specified in the task, the value of environment variable C(ACI_USE_SSL) will be used instead.
84 - The default value is true when the connection is local.
85 type: bool
86 validate_certs:
87 description:
88 - If C(false), SSL certificates will not be validated.
89 - This should only set to C(false) when used on personally controlled sites using self-signed certificates.
90 - If the value is not specified in the task, the value of environment variable C(ACI_VALIDATE_CERTS) will be used instead.
91 - The default value is true.
92 type: bool
93 output_path:
94 description:
95 - Path to a file that will be used to dump the ACI JSON configuration objects generated by the module.
96 - If the value is not specified in the task, the value of environment variable C(ACI_OUTPUT_PATH) will be used instead.
97 type: str
98 suppress_verification:
99 description:
100 - If C(true), a verifying GET will not be sent after a POST update to APIC.
101 - If the value is not specified in the task, the value of environment variable C(ACI_SUPPRESS_VERIFICATION) will be used instead.
102 - The default value is C(false).
103 - WARNING - This causes the current return value to be set to the proposed value.
104 - The current object including default values will be unverifiable in a single task.
105 type: bool
106 aliases: [ no_verification, no_verify, suppress_verify, ignore_verify, ignore_verification ]
107 suppress_previous:
108 description:
109 - If C(true), a GET to check previous will not be sent before a POST update to APIC.
110 - If the value is not specified in the task, the value of environment variable C(ACI_SUPPRESS_PREVIOUS) will be used instead.
111 - The default value is C(false).
112 - WARNING - This causes the previous return value to be empty.
113 - The previous state of the object will not be checked and the POST update will contain all properties.
114 type: bool
115 aliases: [ no_previous, ignore_previous ]
116 seealso:
117 - ref: aci_guide
118 description: Detailed information on how to manage your ACI infrastructure using Ansible.
119 - ref: aci_dev_guide
120 description: Detailed guide on how to write your own Cisco ACI modules to contribute.
121 """