Debian Codegraph @

ansible_collections/microsoft/iis/plugins/modules/virtual_directory_info.yml

raw symbols SCIP
1 ---
2 # Copyright: (c) 2024, Hen Yaish <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 DOCUMENTATION:
6 module: virtual_directory_info
7 short_description: Retrive information on a virtual directory in IIS
8 description:
9 - Retrive information on a virtual directory in IIS.
10 requirements:
11 - IISAdministration PowerShell module
12 options:
13 application:
14 description:
15 - The name of the IIS web application to retrieve the virtual
16 directories from. If unset, all website virtual directories will be
17 returned.
18 type: str
19 name:
20 description:
21 - The name of the virtual directory to get the information for. If
22 unset, all virtual directories will be returned.
23 type: str
24 site:
25 description:
26 - The name of the IIS website to retrieve the virtual directories from.
27 If unset, all website virtual directories will be returned.
28 type: str
29 extends_documentation_fragment:
30 - ansible.builtin.action_common_attributes
31 attributes:
32 check_mode:
33 support: full
34 diff_mode:
35 support: none
36 platform:
37 platforms:
38 - windows
39 seealso:
40 - module: microsoft.iis.virtual_directory
41 author:
42 - Hen Yaish (@hyaish)
43
44 EXAMPLES: |
45 - name: Get information for all virtual directories
46 microsoft.iis.virtual_directory_info:
47 register: vdir_info
48
49 - name: Get information for virtual directory on a specific site
50 microsoft.iis.virtual_directory_info:
51 site: somesite
52 name: somedirectory
53 register: vdir_info
54
55 - name: Get information for virtual directory on a specific site and application
56 microsoft.iis.virtual_directory_info:
57 site: somesite
58 name: somedirectory
59 application: someapplication
60 register: vdir_info
61
62 RETURN:
63 exists:
64 description:
65 - Whether any virtual directories were found.
66 returned: success
67 type: bool
68 sample: true
69 directories:
70 description:
71 - List of virtual directories found.
72 returned: success
73 type: list
74 elements: dict
75 sample: '[
76 {
77 "name": "somedirectory",
78 "site": "Test Site",
79 "physical_path": "C:\\Users\\ansibleAdmin\\AppData\\Local\\Temp\\ansible.sgivydkm.qid.test",
80 "application": null,
81 "username": ""
82 }
83 ]'
84 contains:
85 name:
86 description:
87 - Name of the virtual directory.
88 type: str
89 sample: somedirectory
90 site:
91 description:
92 - Site name where the virtual directory exists.
93 type: str
94 sample: Test Site
95 physical_path:
96 description:
97 - Physical path of the virtual directory.
98 type: str
99 sample: C:\Users\ansibleAdmin\AppData\Local\Temp\ansible.sgivydkm.qid.test
100 application:
101 description:
102 - Application name under which the virtual directory exists.
103 type: str
104 sample: null
105 username:
106 description:
107 - Username for the virtual directory when using specific user authentication.
108 type: str
109 sample: ""