-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathappfwprofile_appfwconfidfield_binding.py
146 lines (127 loc) · 3.43 KB
/
appfwprofile_appfwconfidfield_binding.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2023 Cloud Software Group, Inc.
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}
DOCUMENTATION = r"""
---
module: appfwprofile_appfwconfidfield_binding
short_description: Binding Resource definition for describing association between
appfwprofile and appfwconfidfield resources
description: Binding Resource definition for describing association between appfwprofile
and appfwconfidfield resources
version_added: 2.0.0
author:
- Sumanth Lingappa (@sumanth-lingappa)
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
options:
state:
choices:
- present
- absent
default: present
description:
- The state of the resource being configured by the module on the NetScaler
ADC node.
- When C(present), the resource will be added/updated configured according to
the module's parameters.
- When C(absent), the resource will be deleted from the NetScaler ADC node.
type: str
alertonly:
type: str
choices:
- 'ON'
- 'OFF'
description:
- Send SNMP alert?
cffield_url:
type: str
description:
- URL of the web page that contains the web form.
comment:
type: str
description:
- Any comments about the purpose of profile, or other useful information about
the profile.
confidfield:
type: str
description:
- Name of the form field to designate as confidential.
isautodeployed:
type: str
choices:
- AUTODEPLOYED
- NOTAUTODEPLOYED
description:
- Is the rule auto deployed by dynamic profile ?
isregex_cffield:
type: str
choices:
- REGEX
- NOTREGEX
description:
- Is Fake Account Detection field name regular expression?
name:
type: str
description:
- Name of the profile to which to bind an exemption or rule.
resourceid:
type: str
description:
- A "id" that identifies the rule.
ruletype:
type: str
choices:
- ALLOW
- DENY
description:
- Specifies rule type of binding
extends_documentation_fragment: netscaler.adc.netscaler_adc
"""
EXAMPLES = r"""
"""
RETURN = r"""
---
changed:
description: Indicates if any change is made by the module
returned: always
type: bool
sample: true
diff:
description: Dictionary of before and after changes
returned: always
type: dict
sample: {'before': {'key1': 'xyz'}, 'after': {'key2': 'pqr'}, 'prepared': 'changes
done'}
diff_list:
description: List of differences between the actual configured object and the configuration
specified in the module
returned: when changed
type: list
sample: ["Attribute `key1` differs. Desired: (<class 'str'>) XYZ. Existing: (<class
'str'>) PQR"]
failed:
description: Indicates if the module failed or not
returned: always
type: bool
sample: false
loglines:
description: list of logged messages by the module
returned: always
type: list
sample: ['message 1', 'message 2']
"""
import os
from ..module_utils.module_executor import ModuleExecutor
RESOURCE_NAME = os.path.basename(__file__).replace(".py", "")
def main():
executor = ModuleExecutor(RESOURCE_NAME)
executor.main()
if __name__ == "__main__":
main()