Skip to content

Commit d9218cb

Browse files
PolonaMjustinc1
authored andcommitted
Updated return documentation for v1.2.0
1 parent ee7604f commit d9218cb

37 files changed

+950
-427
lines changed

plugins/modules/api.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,16 @@
163163

164164

165165
RETURN = r"""
166-
records:
166+
record:
167167
description:
168-
- In case of I(action=get), the records from the specified endpoint. Below is example output for I(action=get).
169-
- In case of I(action=post), I(action=patch) or I(action=delete), the task tag, returned from the HyperCore API.
168+
- In case of I(action=get), list of records from the specified endpoint. Exact content depend on called API endpoint.
169+
- In case of I(action=post), I(action=patch) or I(action=delete), usually the task tag dictionary, returned from the HyperCore API.
170+
If task tag is returned, the module internally waits on returned task tag to be finished.
170171
returned: success
171-
type: list
172+
type: dict
172173
sample:
173-
- uuid: 81178af9-fb4c-4e98-9dba-d272adc2cae2
174-
virDomainUUID: 17a23be5-9cf2-4d79-b02f-b2a0cb29a0f7
175-
type: RTL8139
176-
macAddress: 7C:4C:58:18:23:4F
177-
connected: true
178-
ipv4Addresses: []
174+
createdUUID: 51e6d073-7566-4273-9196-58720117bd7f
175+
taskTag: 359
179176
"""
180177

181178

plugins/modules/certificate.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@
4848
- Certificate record.
4949
returned: success
5050
type: dict
51-
sample:
52-
certificate:|
53-
-----BEGIN CERTIFICATE-----
54-
MIIGKzCCBBOgAwIBAgIUWaGzXfgSUuwwPJu3F2Q/Ru/O8JQwDQYJKoZIhvcNAQEL
55-
...
56-
-----END CERTIFICATE-----
51+
contains:
52+
certificate:
53+
description: Cluster SSL certificate
54+
type: str
55+
sample:
56+
-----BEGIN CERTIFICATE-----
57+
MIIGKzCCBBOgAwIBAgIUWaGzXfgSUuwwPJu3F2Q/Ru/O8JQwDQYJKoZIhvcNAQEL
58+
...
59+
-----END CERTIFICATE-----
5760
"""
5861

5962
from ansible.module_utils.basic import AnsibleModule

plugins/modules/cluster_name.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,19 @@
4545
- Updated cluster name.
4646
returned: success
4747
type: dict
48-
sample:
49-
- icos_version: 9.2.11.210763
50-
name: updated_cluster_name
51-
uuid: a5d9148c-37f7-4b43-843c-196751d3c050
48+
contains:
49+
icos_version:
50+
description: HyperCore ICOS version
51+
type: str
52+
sample: 9.2.11.210763
53+
name:
54+
description: Cluster name
55+
type: str
56+
sample: PUB4
57+
uuid:
58+
description: Cluster UUID
59+
type: str
60+
sample: a5d9148c-37f7-4b43-843c-196751d3c050
5261
"""
5362

5463
from ansible.module_utils.basic import AnsibleModule

plugins/modules/dns_config.py

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,27 +77,39 @@
7777
- Output from modifying entries of the DNS configuration on HyperCore API.
7878
returned: success
7979
type: dict
80-
sample:
81-
uuid: "dnsconfig_guid"
80+
contains:
81+
uuid:
82+
description: Unique identifer
83+
type: str
84+
sample: dnsconfig_guid
8285
server_ips:
83-
- "1.1.1.1"
84-
- "1.0.0.1"
85-
search_domains: []
86+
description: IP address or hostname of DNS servers
87+
type: list
88+
elements: str
89+
sample: 1.1.1.1
90+
search_domains:
91+
description: Domain search list used to resolve fully qualified domain names
92+
type: list
93+
elements: str
94+
sample: example.domain1.com
8695
latest_task_tag:
87-
completed: 1673966351
88-
created: 1673966345
89-
descriptionParameters: []
90-
formattedDescription: "DNSConfig Update"
91-
formattedMessage: ""
92-
messageParameters: []
93-
modified: 1673966351
94-
nodeUUIDs:
95-
- "32c5012d-7d7b-49b4-9201-70e02b0d8758"
96-
objectUUID: "dnsconfig_guid"
97-
progressPercent: 100
98-
sessionID: "b8c45c35-3349-49e0-9474-0edfa73a2162"
99-
state: "COMPLETE"
100-
taskTag: "396"
96+
description: Latest Task Tag
97+
type: dict
98+
sample:
99+
completed: 1673946776
100+
created: 1673946770
101+
descriptionParameters: []
102+
formattedDescription: "DNSConfig Update"
103+
formattedMessage: ""
104+
messageParameters: []
105+
modified: 1673946776
106+
nodeUUIDs:
107+
- "32c5012d-7d7b-49b4-9201-70e02b0d8758"
108+
objectUUID: "dnsconfig_guid"
109+
progressPercent: 100
110+
sessionID: "775155cc-bc4e-445c-9efa-a304f4f66c82"
111+
state: "COMPLETE"
112+
taskTag: "359"
101113
"""
102114

103115

plugins/modules/dns_config_info.py

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,39 @@
3737
- DNS configuration record.
3838
returned: success
3939
type: dict
40-
sample:
41-
uuid: "dnsconfig_guid"
40+
contains:
41+
uuid:
42+
description: Unique identifer
43+
type: str
44+
sample: dnsconfig_guid
4245
server_ips:
43-
- "1.1.1.1"
44-
- "1.0.0.1"
45-
search_domains: []
46+
description: IP address or hostname of DNS servers
47+
type: list
48+
elements: str
49+
sample: 1.1.1.1
50+
search_domains:
51+
description: Domain search list used to resolve fully qualified domain names
52+
type: list
53+
elements: str
54+
sample: example.domain1.com
4655
latest_task_tag:
47-
completed: 1673946776
48-
created: 1673946770
49-
descriptionParameters: []
50-
formattedDescription: "DNSConfig Update"
51-
formattedMessage: ""
52-
messageParameters: []
53-
modified: 1673946776
54-
nodeUUIDs:
55-
- "32c5012d-7d7b-49b4-9201-70e02b0d8758"
56-
objectUUID: "dnsconfig_guid"
57-
progressPercent: 100
58-
sessionID: "775155cc-bc4e-445c-9efa-a304f4f66c82"
59-
state: "COMPLETE"
60-
taskTag: "359"
56+
description: Latest Task Tag
57+
type: dict
58+
sample:
59+
completed: 1673946776
60+
created: 1673946770
61+
descriptionParameters: []
62+
formattedDescription: "DNSConfig Update"
63+
formattedMessage: ""
64+
messageParameters: []
65+
modified: 1673946776
66+
nodeUUIDs:
67+
- "32c5012d-7d7b-49b4-9201-70e02b0d8758"
68+
objectUUID: "dnsconfig_guid"
69+
progressPercent: 100
70+
sessionID: "775155cc-bc4e-445c-9efa-a304f4f66c82"
71+
state: "COMPLETE"
72+
taskTag: "359"
6173
"""
6274

6375

plugins/modules/email_alert.py

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,44 @@
7979
- Output from modifying entries of the Email Alert Recipients on HyperCore API.
8080
returned: success
8181
type: dict
82-
sample:
83-
alert_tag_uuid: 0
84-
email: sample@sample.com
82+
contains:
83+
alert_tag_uuid:
84+
description: Unique identifier for an AlertTag
85+
type: str
86+
sample: 0
87+
email:
88+
description: Email address of the alert recipient
89+
type: str
90+
sample: sample@sample.com
8591
latest_task_tag:
86-
completed: 1675680830
87-
created: 1675680830
88-
descriptionParameters: []
89-
formattedDescription: Create Alert Email Target
90-
formattedMessage: ""
91-
messageParameters: []
92-
modified: 1675680830
93-
nodeUUIDs: []
94-
objectUUID: 8664ed18-c354-4bab-be96-78dae5f6377f
95-
progressPercent: 100
96-
sessionID: 2bed8c34-1ef3-4366-8895-360f4f786afe
97-
state: COMPLETE
98-
taskTag: 813
99-
resend_delay: 86400
100-
silent_period: 900
101-
uuid: 8664ed18-c354-4bab-be96-78dae5f6377f
92+
description: Latest Task Tag
93+
type: dict
94+
sample:
95+
completed: 1675680830
96+
created: 1675680830
97+
descriptionParameters: []
98+
formattedDescription: Create Alert Email Target
99+
formattedMessage: ""
100+
messageParameters: []
101+
modified: 1675680830
102+
nodeUUIDs: []
103+
objectUUID: 8664ed18-c354-4bab-be96-78dae5f6377f
104+
progressPercent: 100
105+
sessionID: 2bed8c34-1ef3-4366-8895-360f4f786afe
106+
state: COMPLETE
107+
taskTag: 813
108+
resend_delay:
109+
description: Alert resend delay in seconds
110+
type: int
111+
sample: 86400
112+
silent_period:
113+
description: Alerts will not resend if there are additional event triggers within this time in seconds
114+
type: int
115+
sample: 900
116+
uuid:
117+
description: Unique identifer
118+
type: str
119+
sample: default-target
102120
"""
103121

104122

plugins/modules/email_alert_info.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,19 @@
3737
- A list of Email Alert Recipient records.
3838
returned: success
3939
type: list
40-
sample:
41-
- alert_tag_uuid: 0
42-
email: sample@sample.com
43-
latest_task_tag:
40+
contains:
41+
alert_tag_uuid:
42+
description: Unique identifier for an AlertTag
43+
type: str
44+
sample: 0
45+
email:
46+
description: Email address of the alert recipient
47+
type: str
48+
sample: sample@sample.com
49+
latest_task_tag:
50+
description: Latest Task Tag
51+
type: dict
52+
sample:
4453
completed: 1675680830
4554
created: 1675680830
4655
descriptionParameters: []
@@ -54,9 +63,18 @@
5463
sessionID: 2bed8c34-1ef3-4366-8895-360f4f786afe
5564
state: COMPLETE
5665
taskTag: 813
57-
resend_delay: 86400
58-
silent_period: 900
59-
uuid: 8664ed18-c354-4bab-be96-78dae5f6377f
66+
resend_delay:
67+
description: Alert resend delay in seconds
68+
type: int
69+
sample: 86400
70+
silent_period:
71+
description: Alerts will not resend if there are additional event triggers within this time in seconds
72+
type: int
73+
sample: 900
74+
uuid:
75+
description: Unique identifer
76+
type: str
77+
sample: default-target
6078
"""
6179

6280

plugins/modules/iso_info.py

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,37 @@
5353
- If I(name) is not specified, all ISO images will be returned
5454
returned: success
5555
type: list
56-
sample:
57-
- mounts: []
58-
name: SW_DVD9_Win_Server_STD_CORE_2022_2108.11_64Bit_English_DC_STD_MLF_X23-17134.ISO
59-
ready_for_insert: true
60-
size: 5110759424
61-
uuid: 51e6d073-7566-4273-9196-58720117bd7f
56+
elements: dict
57+
contains:
58+
mounts:
59+
description: VMs this image is attached to
60+
type: list
61+
elements: dict
62+
sample:
63+
vm_uuid: 51e6d073-7566-4273-9196-58720117bd7f
64+
vm_name: xlab
65+
name:
66+
description: Filename of the image
67+
type: str
68+
sample: SW_DVD9_Win_Server_STD_CORE_2022_2108.11_64Bit_English_DC_STD_MLF_X23-17134.ISO
69+
path:
70+
description: Storage device used in conjunction with VirDomainBlockDevice.path
71+
type: str
72+
sample: scribe/171afce9-2452-4294-9bc4-6e8ae49f7e4c
73+
ready_for_insert:
74+
description:
75+
- The flag indicates the ISO image content is fully uploaded, and image is ready to be used.
76+
- Flag is `false` only for images that are in middle of upload, or where upload was terminated in middle.
77+
type: bool
78+
sample: true
79+
size:
80+
description: Size of the ISO file, in bytes
81+
type: int
82+
sample: 5110759424
83+
uuid:
84+
description: Unique identifier
85+
type: str
86+
sample: 171afce9-2452-4294-9bc4-6e8ae49f7e4c
6287
"""
6388

6489

plugins/modules/node_info.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,24 @@
3535
- A list of node records.
3636
returned: success
3737
type: list
38-
sample:
39-
- node_uuid: "51e6d073-7566-4273-9196-58720117bd7f"
40-
backplane_ip: "10.0.0.1"
41-
lan_ip: "10.0.0.1"
42-
peer_id: 1
38+
elements: dict
39+
contains:
40+
node_uuid:
41+
description: Unique identifier
42+
type: str
43+
sample: 51e6d073-7566-4273-9196-58720117bd7f
44+
backplane_ip:
45+
description: IP address on the backplane network
46+
type: str
47+
sample: 10.0.0.1
48+
lan_ip:
49+
description: IP address on the LAN network
50+
type: str
51+
sample: 10.0.0.2
52+
peer_id:
53+
description: Cluster map peer identifier
54+
type: str
55+
sample: 1
4356
"""
4457

4558
from ansible.module_utils.basic import AnsibleModule

plugins/modules/oidc_config.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,19 @@
6666
- OIDC config record.
6767
returned: success
6868
type: dict
69-
sample:
70-
client_id: 12345
71-
config_url: https://login.microsoftonline.com/your_uuid/v2.0/.well-known/openid-configuration
72-
scopes: "openid+profile"
69+
contains:
70+
client_id:
71+
description: Provided by authentication server when configuring a new client
72+
type: str
73+
sample: d2298ec0-0596-49d2-9554-840a2fe20603
74+
config_url:
75+
description: The OpenID Connect Provider Configuration Information endpoint
76+
type: str
77+
sample: https://login.microsoftonline.com/your_uuid/v2.0/.well-known/openid-configuration
78+
scopes:
79+
description: Scopes required to obtain necessary claims
80+
type: str
81+
sample: openid+profile
7382
"""
7483

7584
from ansible.module_utils.basic import AnsibleModule

0 commit comments

Comments
 (0)