Debian Codegraph @

ansible_collections/dellemc/powerflex/plugins/modules/info_v2.py

raw symbols SCIP
1 # !/usr/bin/python
2
3 # Copyright: (c) 2025, Dell Technologies
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 """Ansible module for Gathering information about Dell Technologies (Dell) PowerFlex"""
7
8 from __future__ import absolute_import, division, print_function
9
10 __metaclass__ = type
11
12 DOCUMENTATION = r'''
13 ---
14 module: info_v2
15
16 version_added: '3.0.0'
17
18 short_description: Gathering information about Dell PowerFlex
19
20 description:
21 - Gathering information about Dell PowerFlex storage system includes
22 getting the api details, list of devices, NVMe host,
23 protection domains, SDCs, SDT, snapshot policies, storage pools, volumes.
24 - Gathering information about Dell PowerFlex Manager includes getting the
25 list of deployments, firmware repository, managed devices, service templates.
26 - Support only for Powerflex 5.0 versions and above.
27
28 author:
29 - Tao He (@taohe1012) <[email protected]>
30
31 extends_documentation_fragment:
32 - dellemc.powerflex.powerflex_v2
33
34 options:
35 gather_subset:
36 description:
37 - List of string variables to specify the PowerFlex storage system
38 entities for which information is required.
39 - Devices - C(device).
40 - Deployments - C(deployment).
41 - FirmwareRepository - C(firmware_repository).
42 - Managed devices - C(managed_device).
43 - NVMe host - C(nvme_host)
44 - NVMe Storage Data Target - C(sdt).
45 - Protection domains - C(protection_domain).
46 - SDCs - C(sdc).
47 - Service templates - C(service_template).
48 - Snapshot policies - C(snapshot_policy).
49 - Storage pools - C(storage_pool).
50 - Volumes - C(vol).
51 choices: [deployment, device, firmware_repository, managed_device,
52 nvme_host, protection_domain, sdc, sdt, service_template,
53 snapshot_policy, storage_pool, vol]
54 type: list
55 elements: str
56 filters:
57 description:
58 - List of filters to support filtered output for storage entities.
59 - Each filter is a dictionary with keys I(filter_key), I(filter_operator), I(filter_value).
60 - Supports passing of multiple filters.
61 type: list
62 elements: dict
63 suboptions:
64 filter_key:
65 description:
66 - Name identifier of the filter.
67 type: str
68 required: true
69 filter_operator:
70 description:
71 - Operation to be performed on filter key.
72 - Choice C(contains) is supported for I(gather_subset) keys C(service_template), C(managed_device),
73 C(deployment), C(firmware_repository).
74 type: str
75 choices: [equal, contains]
76 required: true
77 filter_value:
78 description:
79 - Value of the filter key.
80 type: str
81 required: true
82 limit:
83 description:
84 - Page limit.
85 - Supported for I(gather_subset) keys C(service_template), C(managed_device), C(deployment), C(firmware_repository).
86 type: int
87 default: 50
88 offset:
89 description:
90 - Pagination offset.
91 - Supported for I(gather_subset) keys C(service_template), C(managed_device), C(deployment), C(firmware_repository).
92 type: int
93 default: 0
94 sort:
95 description:
96 - Sort the returned components based on specified field.
97 - Supported for I(gather_subset) keys C(service_template), C(managed_device), C(deployment), C(firmware_repository).
98 - The supported sort keys for the I(gather_subset) can be referred from PowerFlex Manager API documentation in U(https://developer.dell.com).
99 type: str
100 include_devices:
101 description:
102 - Include devices in response.
103 - Applicable when I(gather_subset) is C(deployment).
104 type: bool
105 default: true
106 include_template:
107 description:
108 - Include service templates in response.
109 - Applicable when I(gather_subset) is C(deployment).
110 type: bool
111 default: true
112 full:
113 description:
114 - Specify if response is full or brief.
115 - Applicable when I(gather_subset) is C(deployment), C(service_template).
116 - For C(deployment) specify to use full templates including resources in response.
117 type: bool
118 default: false
119 include_attachments:
120 description:
121 - Include attachments.
122 - Applicable when I(gather_subset) is C(service_template).
123 type: bool
124 default: true
125 include_bundles:
126 description:
127 - Include software bundle entities.
128 - Applicable when I(gather_subset) is C(firmware_repository).
129 type: bool
130 default: false
131 notes:
132 - The supported filter keys for the I(gather_subset) can be referred from PowerFlex Manager API documentation in U(https://developer.dell.com).
133 - The I(filter), I(sort), I(limit) and I(offset) options will be ignored when more than one I(gather_subset) is specified along with
134 C(deployment), C(firmware_repository), C(managed_device) or C(service_template).
135 '''
136
137 EXAMPLES = r'''
138 - name: Get detailed list of PowerFlex entities
139 dellemc.powerflex.info_v2:
140 hostname: "{{ hostname }}"
141 username: "{{ username }}"
142 password: "{{ password }}"
143 validate_certs: "{{ validate_certs }}"
144 gather_subset:
145 - vol
146 - storage_pool
147 - protection_domain
148 - sdc
149 - snapshot_policy
150 - device
151 - nvme_host
152 - sdt
153
154 - name: Get specific volume details
155 dellemc.powerflex.info_v2:
156 hostname: "{{ hostname }}"
157 username: "{{ username }}"
158 password: "{{ password }}"
159 validate_certs: "{{ validate_certs }}"
160 gather_subset:
161 - vol
162 filters:
163 - filter_key: "name"
164 filter_operator: "equal"
165 filter_value: "ansible_test"
166
167 - name: Get specific NVMe hosts details
168 dellemc.powerflex.info_v2:
169 hostname: "{{ hostname }}"
170 username: "{{ username }}"
171 password: "{{ password }}"
172 validate_certs: "{{ validate_certs }}"
173 gather_subset:
174 - nvme_host
175 filters:
176 - filter_key: "name"
177 filter_operator: "equal"
178 filter_value: "ansible_test"
179
180 - name: Get deployment and resource provisioning info
181 dellemc.powerflex.info_v2:
182 hostname: "{{ hostname }}"
183 username: "{{ username }}"
184 password: "{{ password }}"
185 validate_certs: "{{ validate_certs }}"
186 gather_subset:
187 - managed_device
188 - deployment
189 - service_template
190
191 - name: Get deployment with filter, sort, pagination
192 dellemc.powerflex.info_v2:
193 hostname: "{{ hostname }}"
194 username: "{{ username }}"
195 password: "{{ password }}"
196 validate_certs: "{{ validate_certs }}"
197 gather_subset:
198 - deployment
199 filters:
200 - filter_key: "name"
201 filter_operator: "contains"
202 filter_value: "partial"
203 sort: name
204 limit: 10
205 offset: 10
206 include_devices: true
207 include_template: true
208
209 - name: Get the list of firmware repository.
210 dellemc.powerflex.info_v2:
211 hostname: "{{ hostname }}"
212 username: "{{ username }}"
213 password: "{{ password }}"
214 validate_certs: "{{ validate_certs }}"
215 gather_subset:
216 - firmware_repository
217
218 - name: Get the list of firmware repository
219 dellemc.powerflex.info_v2:
220 hostname: "{{ hostname }}"
221 username: "{{ username }}"
222 password: "{{ password }}"
223 validate_certs: "{{ validate_certs }}"
224 gather_subset:
225 - firmware_repository
226 include_bundles: true
227
228 - name: Get the list of firmware repository with filter
229 dellemc.powerflex.info_v2:
230 hostname: "{{ hostname }}"
231 username: "{{ username }}"
232 password: "{{ password }}"
233 validate_certs: "{{ validate_certs }}"
234 gather_subset:
235 - firmware_repository
236 filters:
237 - filter_key: "createdBy"
238 filter_operator: "equal"
239 filter_value: "admin"
240 sort: createdDate
241 limit: 10
242 include_bundles: true
243 register: result_repository_out
244
245 - name: Get the list of available firmware repository
246 ansible.builtin.debug:
247 msg: "{{ result_repository_out.FirmwareRepository | selectattr('state', 'equalto', 'available') }}"
248
249 - name: Get the list of software components in the firmware repository
250 ansible.builtin.debug:
251 msg: "{{ result_repository_out.FirmwareRepository |
252 selectattr('id', 'equalto', '8aaa80788b7') | map(attribute='softwareComponents') | flatten }}"
253
254 - name: Get the list of software bundles in the firmware repository
255 ansible.builtin.debug:
256 msg: "{{ result_repository_out.FirmwareRepository |
257 selectattr('id', 'equalto', '8aaa80788b7') | map(attribute='softwareBundles') | flatten }}"
258 '''
259
260 RETURN = r'''
261 changed:
262 description: Whether or not the resource has changed.
263 returned: always
264 type: bool
265 sample: 'false'
266 Array_Details:
267 description: System entities of PowerFlex storage array.
268 returned: always
269 type: dict
270 contains:
271 addressSpaceUsage:
272 description: Address space usage.
273 type: str
274 authenticationMethod:
275 description: Authentication method.
276 type: str
277 capacityAlertCriticalThresholdPercent:
278 description: Capacity alert critical threshold percentage.
279 type: int
280 capacityAlertHighThresholdPercent:
281 description: Capacity alert high threshold percentage.
282 type: int
283 capacityTimeLeftInDays:
284 description: Capacity time left in days.
285 type: str
286 cliPasswordAllowed:
287 description: CLI password allowed.
288 type: bool
289 daysInstalled:
290 description: Days installed.
291 type: int
292 defragmentationEnabled:
293 description: Defragmentation enabled.
294 type: bool
295 enterpriseFeaturesEnabled:
296 description: Enterprise features enabled.
297 type: bool
298 id:
299 description: The ID of the system.
300 type: str
301 installId:
302 description: installation Id.
303 type: str
304 isInitialLicense:
305 description: Initial license.
306 type: bool
307 lastUpgradeTime:
308 description: Last upgrade time.
309 type: int
310 managementClientSecureCommunicationEnabled:
311 description: Management client secure communication enabled.
312 type: bool
313 maxCapacityInGb:
314 description: Maximum capacity in GB.
315 type: str
316 mdmCluster:
317 description: MDM cluster details.
318 type: dict
319 contains:
320 clusterMode:
321 description: Cluster mode.
322 type: str
323 clusterState:
324 description: Cluster state.
325 type: str
326 goodNodesNum:
327 description: Number of good nodes.
328 type: int
329 goodReplicasNum:
330 description: Number of good replicas.
331 type: int
332 id:
333 description: Cluster ID.
334 type: str
335 master:
336 description: Master MDM node details.
337 type: dict
338 contains:
339 id:
340 description: Node ID.
341 type: str
342 ips:
343 description: List of IP addresses.
344 type: list
345 elements: str
346 managementIPs:
347 description: List of management IP addresses.
348 type: list
349 elements: str
350 opensslVersion:
351 description: OpenSSL version.
352 type: str
353 port:
354 description: Communication port.
355 type: int
356 role:
357 description: Node role.
358 type: str
359 status:
360 description: Node status.
361 type: str
362 versionInfo:
363 description: Version information.
364 type: str
365 virtualInterfaces:
366 description: List of virtual interfaces.
367 type: list
368 elements: str
369 slaves:
370 description: Slave MDM nodes.
371 type: list
372 elements: dict
373 contains:
374 id:
375 description: Node ID.
376 type: str
377 ips:
378 description: List of IP addresses.
379 type: list
380 elements: str
381 managementIPs:
382 description: List of management IP addresses.
383 type: list
384 elements: str
385 opensslVersion:
386 description: OpenSSL version.
387 type: str
388 port:
389 description: Communication port.
390 type: int
391 role:
392 description: Node role.
393 type: str
394 status:
395 description: Node status.
396 type: str
397 versionInfo:
398 description: Version information.
399 type: str
400 virtualInterfaces:
401 description: List of virtual interfaces.
402 type: list
403 elements: str
404 standbyMDMs:
405 description: Standby MDM nodes.
406 type: list
407 elements: dict
408 contains:
409 id:
410 description: Node ID.
411 type: str
412 ips:
413 description: List of IP addresses.
414 type: list
415 elements: str
416 managementIPs:
417 description: List of management IP addresses.
418 type: list
419 elements: str
420 opensslVersion:
421 description: OpenSSL version.
422 type: str
423 port:
424 description: Communication port.
425 type: int
426 role:
427 description: Node role.
428 type: str
429 virtualInterfaces:
430 description: List of virtual interfaces.
431 type: list
432 elements: str
433 tieBreakers:
434 description: Tie-breaker nodes.
435 type: list
436 elements: dict
437 contains:
438 id:
439 description: Node ID.
440 type: str
441 ips:
442 description: List of IP addresses.
443 type: list
444 elements: str
445 managementIPs:
446 description: List of management IP addresses.
447 type: list
448 elements: str
449 opensslVersion:
450 description: OpenSSL version.
451 type: str
452 port:
453 description: Communication port.
454 type: int
455 role:
456 description: Node role.
457 type: str
458 status:
459 description: Node status.
460 type: str
461 versionInfo:
462 description: Version information.
463 type: str
464 mdmExternalPort:
465 description: MDM external port.
466 type: int
467 mdmManagementPort:
468 description: MDM management port.
469 type: int
470 mdmSecurityPolicy:
471 description: MDM security policy.
472 type: str
473 showGuid:
474 description: Show guid.
475 type: bool
476 swid:
477 description: SWID.
478 type: str
479 systemVersionName:
480 description: System version and name.
481 type: str
482 tlsVersion:
483 description: TLS version.
484 type: str
485 upgradeState:
486 description: Upgrade state.
487 type: str
488 sample: {
489 "addressSpaceUsage": "Normal",
490 "authenticationMethod": "Mno",
491 "capacityAlertCriticalThresholdPercent": 90,
492 "capacityAlertHighThresholdPercent": 80,
493 "capacityTimeLeftInDays": "78",
494 "cliPasswordAllowed": true,
495 "daysInstalled": 12,
496 "defragmentationEnabled": true,
497 "enterpriseFeaturesEnabled": true,
498 "id": "815945c41cd8460f",
499 "installId": "0076d6af044b5481",
500 "isInitialLicense": true,
501 "lastUpgradeTime": 0,
502 "managementClientSecureCommunicationEnabled": true,
503 "maxCapacityInGb": "Unlimited",
504 "mdmCluster": {
505 "clusterMode": "ThreeNodes",
506 "clusterState": "ClusteredNormal",
507 "goodNodesNum": 3,
508 "goodReplicasNum": 2,
509 "id": "-9126186461289757169",
510 "master": {
511 "id": "2d5f17673e35a101",
512 "ips": [
513 "10.225.106.68"
514 ],
515 "managementIPs": [
516 "10.225.106.68"
517 ],
518 "opensslVersion": "OpenSSL 3.1.4 24 Oct 2023",
519 "port": 9011,
520 "role": "Manager",
521 "status": "Normal",
522 "versionInfo": "R5_0.0.0",
523 "virtualInterfaces": ["ens160"]
524 },
525 "slaves": [
526 {
527 "id": "5c613b076fb30100",
528 "ips": [
529 "10.225.106.67"
530 ],
531 "managementIPs": [
532 "10.225.106.67"
533 ],
534 "opensslVersion": "OpenSSL 3.1.4 24 Oct 2023",
535 "port": 9011,
536 "role": "Manager",
537 "status": "Normal",
538 "versionInfo": "R5_0.0.0",
539 "virtualInterfaces": ["ens160"]
540 }
541 ],
542 "standbyMDMs": [
543 {
544 "id": "1ef63c213b382503",
545 "ips": [
546 "10.225.106.48"
547 ],
548 "managementIPs": [
549 "10.225.106.48"
550 ],
551 "opensslVersion": "N/A",
552 "port": 9011,
553 "role": "Manager",
554 "virtualInterfaces": []
555 }
556 ],
557 "tieBreakers": [
558 {
559 "id": "6b5ae1c7248e0c02",
560 "ips": [
561 "10.225.106.69"
562 ],
563 "managementIPs": [
564 "10.225.106.69"
565 ],
566 "opensslVersion": "N/A",
567 "port": 9011,
568 "role": "TieBreaker",
569 "status": "Normal",
570 "versionInfo": "R5_0.0.0"
571 }
572 ]
573 },
574 "mdmExternalPort": 7611,
575 "mdmManagementPort": 8611,
576 "mdmSecurityPolicy": "Authentication",
577 "showGuid": true,
578 "swid": "",
579 "systemVersionName": "DellEMC PowerFlex Version: R5_0.0.937",
580 "tlsVersion": "TLSv1.2",
581 "upgradeState": "NoUpgrade"
582 }
583 API_Version:
584 description: API version of PowerFlex API Gateway.
585 returned: always
586 type: str
587 sample: "5.0"
588 Protection_Domains:
589 description: Details of all protection domains.
590 returned: always
591 type: list
592 elements: dict
593 contains:
594 id:
595 description: protection domain id.
596 type: str
597 name:
598 description: protection domain name.
599 type: str
600 bandwidthLimitBgDevScanner:
601 description: Bandwidth limit for background device scanner.
602 type: int
603 bandwidthLimitDoublyImpactedRebuild:
604 description: Bandwidth limit for doubly impacted rebuild operations.
605 type: int
606 bandwidthLimitNodeNetwork:
607 description: Bandwidth limit for node network.
608 type: int
609 bandwidthLimitOther:
610 description: Bandwidth limit for other I/O operations.
611 type: int
612 bandwidthLimitOverallIos:
613 description: Overall bandwidth limit for all I/O operations.
614 type: int
615 bandwidthLimitRebalance:
616 description: Bandwidth limit for rebalance operations.
617 type: int
618 bandwidthLimitSinglyImpactedRebuild:
619 description: Bandwidth limit for singly impacted rebuild operations.
620 type: int
621 fglDefaultMetadataCacheSize:
622 description: Default metadata cache size for fine-grained logging.
623 type: int
624 fglDefaultNumConcurrentWrites:
625 description: Default number of concurrent writes for fine-grained logging.
626 type: int
627 fglMetadataCacheEnabled:
628 description: Whether metadata cache is enabled for fine-grained logging.
629 type: bool
630 genType:
631 description: Generation type of the protection domain (e.g., EC for Erasure Coding).
632 type: str
633 links:
634 description: Hypermedia links related to the protection domain.
635 type: list
636 elements: dict
637 contains:
638 href:
639 description: The URI reference.
640 type: str
641 rel:
642 description: The relation type of the link.
643 type: str
644 mdmSdsNetworkDisconnectionsCounterParameters:
645 description: MDM-SDS network disconnection counter thresholds.
646 type: dict
647 contains:
648 longWindow:
649 description: Long time window threshold settings.
650 type: dict
651 contains:
652 threshold:
653 description: Disconnection threshold count.
654 type: int
655 windowSizeInSec:
656 description: Time window size in seconds.
657 type: int
658 mediumWindow:
659 description: Medium time window threshold settings.
660 type: dict
661 contains:
662 threshold:
663 description: Disconnection threshold count.
664 type: int
665 windowSizeInSec:
666 description: Time window size in seconds.
667 type: int
668 shortWindow:
669 description: Short time window threshold settings.
670 type: dict
671 contains:
672 threshold:
673 description: Disconnection threshold count.
674 type: int
675 windowSizeInSec:
676 description: Time window size in seconds.
677 type: int
678 overallConcurrentIoLimit:
679 description: Overall concurrent I/O limit for the protection domain.
680 type: int
681 overallIoNetworkThrottlingEnabled:
682 description: Whether overall I/O network throttling is enabled.
683 type: bool
684 protectedMaintenanceModeNetworkThrottlingEnabled:
685 description: Whether network throttling is enabled in protected maintenance mode.
686 type: bool
687 protectionDomainState:
688 description: Current state of the protection domain (e.g., Active).
689 type: str
690 rebalanceEnabled:
691 description: Whether rebalance operations are enabled.
692 type: bool
693 rebalanceNetworkThrottlingEnabled:
694 description: Whether network throttling is enabled for rebalance operations.
695 type: bool
696 rebuildEnabled:
697 description: Whether rebuild operations are enabled.
698 type: bool
699 rebuildNetworkThrottlingEnabled:
700 description: Whether network throttling is enabled for rebuild operations.
701 type: bool
702 rfcacheEnabled:
703 description: Whether RF-Cache is enabled.
704 type: bool
705 rfcacheMaxIoSizeKb:
706 description: Maximum I/O size in KB for RF-Cache.
707 type: int
708 rfcacheOpertionalMode:
709 description: Operational mode of RF-Cache (e.g., WriteMiss).
710 type: str
711 rfcachePageSizeKb:
712 description: Page size in KB used by RF-Cache.
713 type: int
714 rplCapAlertLevel:
715 description: Replication capacity alert level.
716 type: str
717 sdrSdsConnectivityInfo:
718 description: Connectivity information between SDR client and SDS server.
719 type: dict
720 contains:
721 clientServerConnStatus:
722 description: Status of client-server connection.
723 type: str
724 disconnectedClientId:
725 description: ID of disconnected client (null if connected).
726 type: str
727 disconnectedClientName:
728 description: Name of disconnected client (null if connected).
729 type: str
730 disconnectedServerId:
731 description: ID of disconnected server (null if connected).
732 type: str
733 disconnectedServerIp:
734 description: IP of disconnected server (null if connected).
735 type: str
736 disconnectedServerName:
737 description: Name of disconnected server (null if connected).
738 type: str
739 sdsConfigurationFailureCounterParameters:
740 description: SDS configuration failure counter thresholds.
741 type: dict
742 contains:
743 longWindow:
744 description: Long time window threshold settings.
745 type: dict
746 contains:
747 threshold:
748 description: Failure threshold count.
749 type: int
750 windowSizeInSec:
751 description: Time window size in seconds.
752 type: int
753 mediumWindow:
754 description: Medium time window threshold settings.
755 type: dict
756 contains:
757 threshold:
758 description: Failure threshold count.
759 type: int
760 windowSizeInSec:
761 description: Time window size in seconds.
762 type: int
763 shortWindow:
764 description: Short time window threshold settings.
765 type: dict
766 contains:
767 threshold:
768 description: Failure threshold count.
769 type: int
770 windowSizeInSec:
771 description: Time window size in seconds.
772 type: int
773 sdsDecoupledCounterParameters:
774 description: SDS decoupled state counter thresholds.
775 type: dict
776 contains:
777 longWindow:
778 description: Long time window threshold settings.
779 type: dict
780 contains:
781 threshold:
782 description: Decoupled threshold count.
783 type: int
784 windowSizeInSec:
785 description: Time window size in seconds.
786 type: int
787 mediumWindow:
788 description: Medium time window threshold settings.
789 type: dict
790 contains:
791 threshold:
792 description: Decoupled threshold count.
793 type: int
794 windowSizeInSec:
795 description: Time window size in seconds.
796 type: int
797 shortWindow:
798 description: Short time window threshold settings.
799 type: dict
800 contains:
801 threshold:
802 description: Decoupled threshold count.
803 type: int
804 windowSizeInSec:
805 description: Time window size in seconds.
806 type: int
807 sdsReceiveBufferAllocationFailuresCounterParameters:
808 description: SDS receive buffer allocation failure counter thresholds.
809 type: dict
810 contains:
811 longWindow:
812 description: Long time window threshold settings.
813 type: dict
814 contains:
815 threshold:
816 description: Buffer allocation failure threshold.
817 type: int
818 windowSizeInSec:
819 description: Time window size in seconds.
820 type: int
821 mediumWindow:
822 description: Medium time window threshold settings.
823 type: dict
824 contains:
825 threshold:
826 description: Buffer allocation failure threshold.
827 type: int
828 windowSizeInSec:
829 description: Time window size in seconds.
830 type: int
831 shortWindow:
832 description: Short time window threshold settings.
833 type: dict
834 contains:
835 threshold:
836 description: Buffer allocation failure threshold.
837 type: int
838 windowSizeInSec:
839 description: Time window size in seconds.
840 type: int
841 sdsSdsNetworkDisconnectionsCounterParameters:
842 description: SDS-SDS network disconnection counter thresholds.
843 type: dict
844 contains:
845 longWindow:
846 description: Long time window threshold settings.
847 type: dict
848 contains:
849 threshold:
850 description: Disconnection threshold count.
851 type: int
852 windowSizeInSec:
853 description: Time window size in seconds.
854 type: int
855 mediumWindow:
856 description: Medium time window threshold settings.
857 type: dict
858 contains:
859 threshold:
860 description: Disconnection threshold count.
861 type: int
862 windowSizeInSec:
863 description: Time window size in seconds.
864 type: int
865 shortWindow:
866 description: Short time window threshold settings.
867 type: dict
868 contains:
869 threshold:
870 description: Disconnection threshold count.
871 type: int
872 windowSizeInSec:
873 description: Time window size in seconds.
874 type: int
875 sdtSdsConnectivityInfo:
876 description: Connectivity information between SDT and SDS.
877 type: dict
878 contains:
879 clientServerConnStatus:
880 description: Status of client-server connection.
881 type: str
882 disconnectedClientId:
883 description: ID of disconnected client (null if connected).
884 type: str
885 disconnectedClientName:
886 description: Name of disconnected client (null if connected).
887 type: str
888 disconnectedServerId:
889 description: ID of disconnected server (null if connected).
890 type: str
891 disconnectedServerIp:
892 description: IP of disconnected server (null if connected).
893 type: str
894 disconnectedServerName:
895 description: Name of disconnected server (null if connected).
896 type: str
897 systemId:
898 description: ID of the associated storage system.
899 type: str
900 vtreeMigrationNetworkThrottlingEnabled:
901 description: Whether network throttling is enabled for vTree migration.
902 type: bool
903 sample: [
904 {
905 "bandwidthLimitBgDevScanner": 15,
906 "bandwidthLimitDoublyImpactedRebuild": 400,
907 "bandwidthLimitNodeNetwork": 30,
908 "bandwidthLimitOther": 10,
909 "bandwidthLimitOverallIos": 500,
910 "bandwidthLimitRebalance": 50,
911 "bandwidthLimitSinglyImpactedRebuild": 500,
912 "fglDefaultMetadataCacheSize": 0,
913 "fglDefaultNumConcurrentWrites": 0,
914 "fglMetadataCacheEnabled": false,
915 "genType": "EC",
916 "id": "e597f3dd00000000",
917 "links": [
918 {
919 "href": "/api/instances/ProtectionDomain::e597f3dd00000000",
920 "rel": "self"
921 }
922 ],
923 "mdmSdsNetworkDisconnectionsCounterParameters": {
924 "longWindow": {
925 "threshold": 700,
926 "windowSizeInSec": 86400
927 },
928 "mediumWindow": {
929 "threshold": 500,
930 "windowSizeInSec": 3600
931 },
932 "shortWindow": {
933 "threshold": 300,
934 "windowSizeInSec": 60
935 }
936 },
937 "name": "PD_EC",
938 "overallConcurrentIoLimit": 5,
939 "overallIoNetworkThrottlingEnabled": false,
940 "overallIoNetworkThrottlingInKbps": null,
941 "protectedMaintenanceModeNetworkThrottlingEnabled": false,
942 "protectedMaintenanceModeNetworkThrottlingInKbps": null,
943 "protectionDomainState": "Active",
944 "rebalanceEnabled": true,
945 "rebalanceNetworkThrottlingEnabled": false,
946 "rebalanceNetworkThrottlingInKbps": null,
947 "rebuildEnabled": true,
948 "rebuildNetworkThrottlingEnabled": false,
949 "rebuildNetworkThrottlingInKbps": null,
950 "rfcacheAccpId": null,
951 "rfcacheEnabled": true,
952 "rfcacheMaxIoSizeKb": 0,
953 "rfcacheOpertionalMode": "WriteMiss",
954 "rfcachePageSizeKb": 0,
955 "rplCapAlertLevel": "invalid",
956 "sdrSdsConnectivityInfo": {
957 "clientServerConnStatus": "CLIENT_SERVER_CONN_STATUS_ALL_CONNECTED",
958 "disconnectedClientId": null,
959 "disconnectedClientName": null,
960 "disconnectedServerId": null,
961 "disconnectedServerIp": null,
962 "disconnectedServerName": null
963 },
964 "sdsConfigurationFailureCounterParameters": {
965 "longWindow": {
966 "threshold": 700,
967 "windowSizeInSec": 86400
968 },
969 "mediumWindow": {
970 "threshold": 500,
971 "windowSizeInSec": 3600
972 },
973 "shortWindow": {
974 "threshold": 300,
975 "windowSizeInSec": 60
976 }
977 },
978 "sdsDecoupledCounterParameters": {
979 "longWindow": {
980 "threshold": 700,
981 "windowSizeInSec": 86400
982 },
983 "mediumWindow": {
984 "threshold": 500,
985 "windowSizeInSec": 3600
986 },
987 "shortWindow": {
988 "threshold": 300,
989 "windowSizeInSec": 60
990 }
991 },
992 "sdsReceiveBufferAllocationFailuresCounterParameters": {
993 "longWindow": {
994 "threshold": 2000000,
995 "windowSizeInSec": 86400
996 },
997 "mediumWindow": {
998 "threshold": 200000,
999 "windowSizeInSec": 3600
1000 },
1001 "shortWindow": {
1002 "threshold": 20000,
1003 "windowSizeInSec": 60
1004 }
1005 },
1006 "sdsSdsNetworkDisconnectionsCounterParameters": {
1007 "longWindow": {
1008 "threshold": 700,
1009 "windowSizeInSec": 86400
1010 },
1011 "mediumWindow": {
1012 "threshold": 500,
1013 "windowSizeInSec": 3600
1014 },
1015 "shortWindow": {
1016 "threshold": 300,
1017 "windowSizeInSec": 60
1018 }
1019 },
1020 "sdtSdsConnectivityInfo": {
1021 "clientServerConnStatus": "CLIENT_SERVER_CONN_STATUS_ALL_CONNECTED",
1022 "disconnectedClientId": null,
1023 "disconnectedClientName": null,
1024 "disconnectedServerId": null,
1025 "disconnectedServerIp": null,
1026 "disconnectedServerName": null
1027 },
1028 "systemId": "815945c41cd8460f",
1029 "vtreeMigrationNetworkThrottlingEnabled": false,
1030 "vtreeMigrationNetworkThrottlingInKbps": null
1031 }
1032 ]
1033 SDCs:
1034 description: Details of storage data clients.
1035 returned: always
1036 type: list
1037 contains:
1038 id:
1039 description: storage data client id.
1040 type: str
1041 name:
1042 description: storage data client name.
1043 type: str
1044 hostOsFullType:
1045 description: Full operating system type of the storage data client.
1046 type: str
1047 hostType:
1048 description: Host type of the storage data client.
1049 type: str
1050 installedSoftwareVersionInfo:
1051 description: Installed software version information on the SDC.
1052 type: str
1053 kernelBuildNumber:
1054 description: Kernel build number of the SDC's operating system.
1055 type: str
1056 kernelVersion:
1057 description: Kernel version of the SDC's operating system.
1058 type: str
1059 links:
1060 description: List of hypermedia links related to the SDC.
1061 type: list
1062 contains:
1063 href:
1064 description: The URI of the resource.
1065 type: str
1066 rel:
1067 description: The relation type of the link.
1068 type: str
1069 maxNumPaths:
1070 description: Maximum number of paths allowed for the SDC.
1071 type: str
1072 maxNumSysPorts:
1073 description: Maximum number of system ports allowed for the SDC.
1074 type: str
1075 mdmConnectionState:
1076 description: Current MDM (Management Domain Manager) connection state of the SDC.
1077 type: str
1078 mdmIpAddressesCurrent:
1079 description: Indicates whether the MDM IP addresses are current.
1080 type: bool
1081 memoryAllocationFailure:
1082 description: Indicates if there was a memory allocation failure on the SDC.
1083 type: str
1084 nqn:
1085 description: NVMe Qualified Name used for NVMe-o-Fabrics connectivity.
1086 type: str
1087 osType:
1088 description: Operating system type of the SDC.
1089 type: str
1090 peerMdmId:
1091 description: Identifier of the peer MDM that the SDC is connected to.
1092 type: str
1093 perfProfile:
1094 description: Performance profile configured for the SDC.
1095 type: str
1096 sdcAgentActive:
1097 description: Indicates whether the SDC agent is currently active.
1098 type: bool
1099 sdcApproved:
1100 description: Indicates whether the SDC is approved to connect to the system.
1101 type: bool
1102 sdcApprovedIps:
1103 description: List of approved IP addresses for the SDC.
1104 type: list
1105 sdcGuid:
1106 description: Globally unique identifier for the SDC.
1107 type: str
1108 sdcIp:
1109 description: Primary IP address of the SDC.
1110 type: str
1111 sdcIps:
1112 description: List of all IP addresses associated with the SDC.
1113 type: list
1114 elements: str
1115 sdcType:
1116 description: Type of the SDC (e.g., AppSdc).
1117 type: str
1118 sdrId:
1119 description: Identifier of the SDR (Storage Data Resilience) associated with the SDC.
1120 type: str
1121 sdtId:
1122 description: Identifier of the SDT (Storage Data Tunnel) associated with the SDC.
1123 type: str
1124 socketAllocationFailure:
1125 description: Indicates if there was a socket allocation failure on the SDC.
1126 type: str
1127 softwareVersionInfo:
1128 description: Current software version running on the SDC.
1129 type: str
1130 systemId:
1131 description: Identifier of the system to which the SDC belongs.
1132 type: str
1133 versionInfo:
1134 description: Version information of the SDC software.
1135 type: str
1136 sample: [
1137 {
1138 "hostOsFullType": null,
1139 "hostType": "SdcHost",
1140 "id": "fdc050eb00000000",
1141 "installedSoftwareVersionInfo": "R5_0.0.0",
1142 "kernelBuildNumber": null,
1143 "kernelVersion": "6.4.0",
1144 "links": [
1145 {
1146 "href": "/api/instances/Sdc::fdc050eb00000000",
1147 "rel": "self"
1148 }
1149 ],
1150 "maxNumPaths": null,
1151 "maxNumSysPorts": null,
1152 "mdmConnectionState": "Connected",
1153 "mdmIpAddressesCurrent": false,
1154 "memoryAllocationFailure": null,
1155 "name": "SDC3",
1156 "nqn": null,
1157 "osType": "Linux",
1158 "peerMdmId": null,
1159 "perfProfile": "HighPerformance",
1160 "sdcAgentActive": false,
1161 "sdcApproved": true,
1162 "sdcApprovedIps": null,
1163 "sdcGuid": "89843E55-2B2A-42F7-A970-505467F81981",
1164 "sdcIp": "10.225.106.69",
1165 "sdcIps": [
1166 "10.225.106.69"
1167 ],
1168 "sdcType": "AppSdc",
1169 "sdrId": null,
1170 "sdtId": null,
1171 "socketAllocationFailure": null,
1172 "softwareVersionInfo": "R5_0.0.0",
1173 "systemId": "815945c41cd8460f",
1174 "versionInfo": "R5_0.0.0"
1175 }
1176 ]
1177 Snapshot_Policies:
1178 description: Details of snapshot policies.
1179 returned: always
1180 type: list
1181 contains:
1182 id:
1183 description: snapshot policy id.
1184 type: str
1185 name:
1186 description: snapshot policy name.
1187 type: str
1188 autoSnapshotCreationCadenceInMin:
1189 description: Interval in minutes between automatic snapshot creations.
1190 type: int
1191 isLastAutoSnapshotDataTimeAccurate:
1192 description: Indicates whether the timestamp of the last auto-snapshot data is accurate.
1193 type: str
1194 lastAutoSnapshotCreationFailureReason:
1195 description: Reason code for the last automatic snapshot creation failure.
1196 type: str
1197 lastAutoSnapshotDataTime:
1198 description: Timestamp of the last auto-snapshot data creation.
1199 type: str
1200 lastAutoSnapshotFailureInFirstLevel:
1201 description: Indicates if the last automatic snapshot failed at the first level.
1202 type: bool
1203 links:
1204 description: List of hypermedia links related to the snapshot policy.
1205 type: list
1206 contains:
1207 href:
1208 description: The URI of the linked resource.
1209 type: str
1210 rel:
1211 description: The relation type of the link.
1212 type: str
1213 maxVTreeAutoSnapshots:
1214 description: Maximum number of automatic snapshots allowed per VTree.
1215 type: int
1216 nextAutoSnapshotCreationTime:
1217 description: Timestamp (in seconds) of the next scheduled automatic snapshot.
1218 type: int
1219 numOfAutoSnapshots:
1220 description: Total number of automatic snapshots created under this policy.
1221 type: int
1222 numOfCreationFailures:
1223 description: Number of failed automatic snapshot creation attempts.
1224 type: int
1225 numOfExpiredButLockedSnapshots:
1226 description: Number of snapshots that have expired but are still locked.
1227 type: int
1228 numOfLockedSnapshots:
1229 description: Total number of snapshots currently locked.
1230 type: int
1231 numOfRetainedSnapshotsPerLevel:
1232 description: Number of snapshots retained per storage level.
1233 type: list
1234 elements: int
1235 numOfSourceVolumes:
1236 description: Number of source volumes associated with this snapshot policy.
1237 type: int
1238 rcgId:
1239 description: Identifier of the replication consistency group (RCG) associated with the policy.
1240 type: str
1241 rcgName:
1242 description: Name of the replication consistency group (RCG) associated with the policy.
1243 type: str
1244 secureSnapshots:
1245 description: Indicates whether snapshots are secure (immutable).
1246 type: bool
1247 snapshotAccessMode:
1248 description: Access mode of the created snapshots (e.g., ReadOnly).
1249 type: str
1250 snapshotPolicyState:
1251 description: Current state of the snapshot policy (e.g., Paused, Active).
1252 type: str
1253 systemId:
1254 description: Identifier of the system to which the snapshot policy belongs.
1255 type: str
1256 timeOfLastAutoSnapshot:
1257 description: Timestamp (in seconds) of the last successfully created automatic snapshot.
1258 type: int
1259 timeOfLastAutoSnapshotCreationFailure:
1260 description: Timestamp (in seconds) of the last automatic snapshot creation failure.
1261 type: int
1262 sample: [
1263 {
1264 "autoSnapshotCreationCadenceInMin": 5,
1265 "id": "dc095e4d00000000",
1266 "isLastAutoSnapshotDataTimeAccurate": null,
1267 "lastAutoSnapshotCreationFailureReason": "NR",
1268 "lastAutoSnapshotDataTime": null,
1269 "lastAutoSnapshotFailureInFirstLevel": false,
1270 "links": [
1271 {
1272 "href": "/api/instances/SnapshotPolicy::dc095e4d00000000",
1273 "rel": "self"
1274 }
1275 ],
1276 "maxVTreeAutoSnapshots": 1,
1277 "name": "Sample_snap_policy_Ray",
1278 "nextAutoSnapshotCreationTime": 0,
1279 "numOfAutoSnapshots": 0,
1280 "numOfCreationFailures": 0,
1281 "numOfExpiredButLockedSnapshots": 0,
1282 "numOfLockedSnapshots": 0,
1283 "numOfRetainedSnapshotsPerLevel": [
1284 1
1285 ],
1286 "numOfSourceVolumes": 0,
1287 "rcgId": null,
1288 "rcgName": null,
1289 "secureSnapshots": false,
1290 "snapshotAccessMode": "ReadOnly",
1291 "snapshotPolicyState": "Paused",
1292 "systemId": "815945c41cd8460f",
1293 "timeOfLastAutoSnapshot": 0,
1294 "timeOfLastAutoSnapshotCreationFailure": 0
1295 }
1296 ]
1297 Storage_Pools:
1298 description: Details of storage pools.
1299 returned: always
1300 type: list
1301 contains:
1302 mediaType:
1303 description: Type of devices in the storage pool.
1304 type: str
1305 useRfcache:
1306 description: Enable/Disable RFcache on a specific storage pool.
1307 type: bool
1308 useRmcache:
1309 description: Enable/Disable RMcache on a specific storage pool.
1310 type: bool
1311 id:
1312 description: ID of the storage pool under protection domain.
1313 type: str
1314 name:
1315 description: Name of the storage pool under protection domain.
1316 type: str
1317 protectionDomainId:
1318 description: ID of the protection domain in which pool resides.
1319 type: str
1320 addressSpaceUsage:
1321 description: Address space usage level of the storage pool.
1322 type: str
1323 addressSpaceUsageType:
1324 description: Type of address space usage (e.g., hard limit or soft limit).
1325 type: str
1326 backgroundScannerBWLimitKBps:
1327 description: Bandwidth limit in KBps for background scanner operations.
1328 type: int
1329 backgroundScannerMode:
1330 description: Mode of the background scanner (e.g., disabled, full, etc.).
1331 type: str
1332 bgScannerCompareErrorAction:
1333 description: Action to take when a compare error is detected during background scanning.
1334 type: str
1335 bgScannerReadErrorAction:
1336 description: Action to take when a read error is detected during background scanning.
1337 type: str
1338 capacityAlertCriticalThreshold:
1339 description: Threshold percentage for triggering critical capacity alerts.
1340 type: int
1341 capacityAlertHighThreshold:
1342 description: Threshold percentage for triggering high capacity alerts.
1343 type: int
1344 capacityUsageState:
1345 description: Current state of capacity usage (e.g., Normal, Critical).
1346 type: str
1347 capacityUsageType:
1348 description: Type of capacity usage metric being reported.
1349 type: str
1350 checksumEnabled:
1351 description: Indicates whether checksum is enabled for data integrity.
1352 type: bool
1353 compressionMethod:
1354 description: Compression method used in the storage pool.
1355 type: str
1356 dataLayout:
1357 description: Data layout scheme used in the storage pool (e.g., ErasureCoding).
1358 type: str
1359 deviceGroupId:
1360 description: ID of the device group associated with the storage pool.
1361 type: str
1362 externalAccelerationType:
1363 description: Type of external acceleration used.
1364 type: str
1365 fglAccpId:
1366 description: Acceleration policy ID for FlashGuard Log (FGL) if applicable.
1367 type: str
1368 fglExtraCapacity:
1369 description: Extra capacity allocated for FlashGuard Log.
1370 type: int
1371 fglMaxCompressionRatio:
1372 description: Maximum compression ratio allowed for FlashGuard Log.
1373 type: int
1374 fglMetadataSizeXx100:
1375 description: Metadata size for FlashGuard Log as a percentage (multiplied by 100).
1376 type: int
1377 fglNvdimmMetadataAmortizationX100:
1378 description: NVDIMM metadata amortization factor for FlashGuard Log (multiplied by 100).
1379 type: int
1380 fglNvdimmWriteCacheSizeInMb:
1381 description: Write cache size in MB for NVDIMM in FlashGuard Log.
1382 type: int
1383 fglOverProvisioningFactor:
1384 description: Over-provisioning factor for FlashGuard Log.
1385 type: int
1386 fglPerfProfile:
1387 description: Performance profile setting for FlashGuard Log.
1388 type: str
1389 fglWriteAtomicitySize:
1390 description: Write atomicity size for FlashGuard Log.
1391 type: int
1392 fragmentationEnabled:
1393 description: Indicates whether fragmentation is enabled in the storage pool.
1394 type: bool
1395 genType:
1396 description: Generation type of the storage pool (e.g., EC for Erasure Coding).
1397 type: str
1398 links:
1399 description: HATEOAS links related to the storage pool.
1400 type: list
1401 contains:
1402 href:
1403 description: URL reference for the link.
1404 type: str
1405 rel:
1406 description: Relation type of the link (e.g., self).
1407 type: str
1408 numOfParallelRebuildRebalanceJobsPerDevice:
1409 description: Number of parallel rebuild and rebalance jobs allowed per device.
1410 type: int
1411 overProvisioningFactor:
1412 description: Over-provisioning factor applied to the storage pool.
1413 type: int
1414 persistentChecksumBuilderLimitKb:
1415 description: Limit in KB for persistent checksum builder operations.
1416 type: int
1417 persistentChecksumEnabled:
1418 description: Indicates whether persistent checksum is enabled.
1419 type: bool
1420 persistentChecksumState:
1421 description: Current state of persistent checksum (e.g., StateInvalid, Valid).
1422 type: str
1423 persistentChecksumValidateOnRead:
1424 description: Whether to validate persistent checksum on read operations.
1425 type: bool
1426 physicalSizeGB:
1427 description: Physical size of the storage pool in gigabytes.
1428 type: int
1429 protectedMaintenanceModeIoPriorityAppBwPerDeviceThresholdInKbps:
1430 description: Application bandwidth threshold per device in Kbps during protected maintenance mode.
1431 type: int
1432 protectedMaintenanceModeIoPriorityAppIopsPerDeviceThreshold:
1433 description: Application IOPS threshold per device during protected maintenance mode.
1434 type: int
1435 protectedMaintenanceModeIoPriorityBwLimitPerDeviceInKbps:
1436 description: Bandwidth limit per device in Kbps during protected maintenance mode.
1437 type: int
1438 protectedMaintenanceModeIoPriorityNumOfConcurrentIosPerDevice:
1439 description: Maximum number of concurrent IOs per device during protected maintenance mode.
1440 type: int
1441 protectedMaintenanceModeIoPriorityPolicy:
1442 description: IO priority policy during protected maintenance mode.
1443 type: str
1444 protectedMaintenanceModeIoPriorityQuietPeriodInMsec:
1445 description: Quiet period in milliseconds during protected maintenance mode.
1446 type: int
1447 protectionDomainName:
1448 description: Name of the protection domain in which pool resides.
1449 type: str
1450 protectionScheme:
1451 description: Data protection scheme used (e.g., TwoPlusTwo).
1452 type: str
1453 rawSizeGB:
1454 description: Raw (unformatted) size of the storage pool in gigabytes.
1455 type: int
1456 rebalanceEnabled:
1457 description: Indicates whether rebalancing is enabled for the storage pool.
1458 type: bool
1459 rebalanceIoPriorityAppBwPerDeviceThresholdInKbps:
1460 description: Application bandwidth threshold per device in Kbps during rebalance.
1461 type: int
1462 rebalanceIoPriorityAppIopsPerDeviceThreshold:
1463 description: Application IOPS threshold per device during rebalance.
1464 type: int
1465 rebalanceIoPriorityBwLimitPerDeviceInKbps:
1466 description: Bandwidth limit per device in Kbps during rebalance.
1467 type: int
1468 rebalanceIoPriorityNumOfConcurrentIosPerDevice:
1469 description: Maximum number of concurrent IOs per device during rebalance.
1470 type: int
1471 rebalanceIoPriorityPolicy:
1472 description: IO priority policy during rebalance operations.
1473 type: str
1474 rebalanceIoPriorityQuietPeriodInMsec:
1475 description: Quiet period in milliseconds during rebalance operations.
1476 type: int
1477 rebuildEnabled:
1478 description: Indicates whether rebuilding is enabled for the storage pool.
1479 type: bool
1480 rebuildIoPriorityAppBwPerDeviceThresholdInKbps:
1481 description: Application bandwidth threshold per device in Kbps during rebuild.
1482 type: int
1483 rebuildIoPriorityAppIopsPerDeviceThreshold:
1484 description: Application IOPS threshold per device during rebuild.
1485 type: int
1486 rebuildIoPriorityBwLimitPerDeviceInKbps:
1487 description: Bandwidth limit per device in Kbps during rebuild.
1488 type: int
1489 rebuildIoPriorityNumOfConcurrentIosPerDevice:
1490 description: Maximum number of concurrent IOs per device during rebuild.
1491 type: int
1492 rebuildIoPriorityPolicy:
1493 description: IO priority policy during rebuild operations.
1494 type: str
1495 rebuildIoPriorityQuietPeriodInMsec:
1496 description: Quiet period in milliseconds during rebuild operations.
1497 type: int
1498 replicationCapacityMaxRatio:
1499 description: Maximum replication capacity ratio allowed.
1500 type: int
1501 rmcacheWriteHandlingMode:
1502 description: Write handling mode for RMcache.
1503 type: str
1504 spClass:
1505 description: Storage pool class (e.g., Default).
1506 type: str
1507 spHealthState:
1508 description: Health state of the storage pool (e.g., Protected).
1509 type: str
1510 sparePercentage:
1511 description: Percentage of spare capacity reserved in the storage pool.
1512 type: int
1513 vtreeMigrationIoPriorityAppBwPerDeviceThresholdInKbps:
1514 description: Application bandwidth threshold per device in Kbps during vTree migration.
1515 type: int
1516 vtreeMigrationIoPriorityAppIopsPerDeviceThreshold:
1517 description: Application IOPS threshold per device during vTree migration.
1518 type: int
1519 vtreeMigrationIoPriorityBwLimitPerDeviceInKbps:
1520 description: Bandwidth limit per device in Kbps during vTree migration.
1521 type: int
1522 vtreeMigrationIoPriorityNumOfConcurrentIosPerDevice:
1523 description: Maximum number of concurrent IOs per device during vTree migration.
1524 type: int
1525 vtreeMigrationIoPriorityPolicy:
1526 description: IO priority policy during vTree migration.
1527 type: str
1528 vtreeMigrationIoPriorityQuietPeriodInMsec:
1529 description: Quiet period in milliseconds during vTree migration.
1530 type: int
1531 wrcDeviceGroupId:
1532 description: Write Reduction Cache (WRC) device group ID.
1533 type: str
1534 zeroPaddingEnabled:
1535 description: Indicates whether zero padding is enabled for the storage pool.
1536 type: bool
1537 statistics:
1538 description: List of performance and capacity statistics for the storage pool.
1539 type: list
1540 elements: dict
1541 contains:
1542 name:
1543 description: Name of the statistic (e.g., avg_host_read_latency).
1544 type: str
1545 values:
1546 description: Values for the statistic.
1547 type: list
1548 sample: [
1549 {
1550 "addressSpaceUsage": "Normal",
1551 "addressSpaceUsageType": "TypeHardLimit",
1552 "backgroundScannerBWLimitKBps": null,
1553 "backgroundScannerMode": null,
1554 "bgScannerCompareErrorAction": "Invalid",
1555 "bgScannerReadErrorAction": "Invalid",
1556 "capacityAlertCriticalThreshold": 90,
1557 "capacityAlertHighThreshold": 80,
1558 "capacityUsageState": "Normal",
1559 "capacityUsageType": "NetCapacity",
1560 "checksumEnabled": false,
1561 "compressionMethod": "Normal",
1562 "dataLayout": "ErasureCoding",
1563 "deviceGroupId": "d291d60100000000",
1564 "externalAccelerationType": "None",
1565 "fglAccpId": null,
1566 "fglExtraCapacity": null,
1567 "fglMaxCompressionRatio": null,
1568 "fglMetadataSizeXx100": null,
1569 "fglNvdimmMetadataAmortizationX100": null,
1570 "fglNvdimmWriteCacheSizeInMb": null,
1571 "fglOverProvisioningFactor": null,
1572 "fglPerfProfile": null,
1573 "fglWriteAtomicitySize": null,
1574 "fragmentationEnabled": false,
1575 "genType": "EC",
1576 "id": "372743fc00000000",
1577 "links": [
1578 {
1579 "href": "/api/instances/StoragePool::372743fc00000000",
1580 "rel": "self"
1581 }
1582 ],
1583 "statistics": [
1584 {"name": "avg_host_read_latency", "values": [0]},
1585 {"name": "raw_used", "values": [13190918307840]},
1586 {"name": "logical_used", "values": [0]},
1587 {"name": "host_write_bandwidth", "values": [0]},
1588 {"name": "host_write_iops", "values": [0]},
1589 {"name": "storage_fe_write_bandwidth", "values": [0]},
1590 {"name": "storage_fe_write_iops", "values": [0]},
1591 {"name": "avg_fe_write_io_size", "values": [0]},
1592 {"name": "storage_fe_read_bandwidth", "values": [0]},
1593 {"name": "storage_fe_read_iops", "values": [0]},
1594 {"name": "avg_fe_read_io_size", "values": [0]},
1595 {"name": "utilization_ratio", "values": [0.008140671]},
1596 {"name": "compression_reducible_ratio", "values": [0.0]},
1597 {"name": "host_read_bandwidth", "values": [0]},
1598 {"name": "host_read_iops", "values": [0]},
1599 {"name": "data_reduction_ratio", "values": [0.0]},
1600 {"name": "thin_provisioning_ratio", "values": ["0.8"]},
1601 {"name": "avg_wrc_write_latency", "values": [0]},
1602 {"name": "unreducible_data", "values": [0]},
1603 {"name": "avg_wrc_read_latency", "values": [0]},
1604 {"name": "storage_fe_read_latency", "values": [0]},
1605 {"name": "over_provisioning_limit", "values": [4611686017353646080]},
1606 {"name": "patterns_saving_ratio", "values": [0.0]},
1607 {"name": "avg_host_write_latency", "values": [0]},
1608 {"name": "storage_fe_write_latency", "values": [0]},
1609 {"name": "logical_provisioned", "values": [42949672960]},
1610 {"name": "efficiency_ratio", "values": ["0.8"]},
1611 {"name": "storage_fe_trim_latency", "values": [0]},
1612 {"name": "physical_system", "values": [53687091200]},
1613 {"name": "data_reduction_reducible_ratio", "values": [0.0]},
1614 {"name": "storage_fe_trim_bandwidth", "values": [0]},
1615 {"name": "storage_fe_trim_iops", "values": [0]},
1616 {"name": "avg_fe_trim_io_size", "values": [0]},
1617 {"name": "compression_ratio", "values": [0.0]},
1618 {"name": "reducible_ratio", "values": [1.0]},
1619 {"name": "physical_used", "values": [0]},
1620 {"name": "snapshot_saving_ratio", "values": [0.0]},
1621 {"name": "physical_free", "values": [6541235191808]},
1622 {"name": "host_trim_bandwidth", "values": [0]},
1623 {"name": "host_trim_iops", "values": [0]},
1624 {"name": "total_wrc_write_bandwidth", "values": [0]},
1625 {"name": "total_wrc_write_iops", "values": [0]},
1626 {"name": "avg_wrc_write_io_size", "values": [0]},
1627 {"name": "total_wrc_read_bandwidth", "values": [0]},
1628 {"name": "total_wrc_read_iops", "values": [0]},
1629 {"name": "avg_wrc_read_io_size", "values": [0]},
1630 {"name": "physical_total", "values": [6594922283008]},
1631 {"name": "logical_owned", "values": [0]},
1632 {"name": "patterns_saving_reducible_ratio", "values": [0.0]},
1633 {"name": "avg_host_trim_latency", "values": [0]}
1634 ],
1635 "mediaType": null,
1636 "name": "SP_EC",
1637 "numOfParallelRebuildRebalanceJobsPerDevice": null,
1638 "overProvisioningFactor": 0,
1639 "persistentChecksumBuilderLimitKb": null,
1640 "persistentChecksumEnabled": false,
1641 "persistentChecksumState": "StateInvalid",
1642 "persistentChecksumValidateOnRead": null,
1643 "physicalSizeGB": 4095,
1644 "protectedMaintenanceModeIoPriorityAppBwPerDeviceThresholdInKbps": null,
1645 "protectedMaintenanceModeIoPriorityAppIopsPerDeviceThreshold": null,
1646 "protectedMaintenanceModeIoPriorityBwLimitPerDeviceInKbps": null,
1647 "protectedMaintenanceModeIoPriorityNumOfConcurrentIosPerDevice": null,
1648 "protectedMaintenanceModeIoPriorityPolicy": null,
1649 "protectedMaintenanceModeIoPriorityQuietPeriodInMsec": null,
1650 "protectionDomainId": "e597f3dd00000000",
1651 "protectionScheme": "TwoPlusTwo",
1652 "rawSizeGB": 8190,
1653 "rebalanceEnabled": null,
1654 "rebalanceIoPriorityAppBwPerDeviceThresholdInKbps": null,
1655 "rebalanceIoPriorityAppIopsPerDeviceThreshold": null,
1656 "rebalanceIoPriorityBwLimitPerDeviceInKbps": null,
1657 "rebalanceIoPriorityNumOfConcurrentIosPerDevice": null,
1658 "rebalanceIoPriorityPolicy": null,
1659 "rebalanceIoPriorityQuietPeriodInMsec": null,
1660 "rebuildEnabled": null,
1661 "rebuildIoPriorityAppBwPerDeviceThresholdInKbps": null,
1662 "rebuildIoPriorityAppIopsPerDeviceThreshold": null,
1663 "rebuildIoPriorityBwLimitPerDeviceInKbps": null,
1664 "rebuildIoPriorityNumOfConcurrentIosPerDevice": null,
1665 "rebuildIoPriorityPolicy": null,
1666 "rebuildIoPriorityQuietPeriodInMsec": null,
1667 "replicationCapacityMaxRatio": null,
1668 "rmcacheWriteHandlingMode": "Invalid",
1669 "spClass": "Default",
1670 "spHealthState": "Protected",
1671 "sparePercentage": null,
1672 "useRfcache": false,
1673 "useRmcache": false,
1674 "vtreeMigrationIoPriorityAppBwPerDeviceThresholdInKbps": null,
1675 "vtreeMigrationIoPriorityAppIopsPerDeviceThreshold": null,
1676 "vtreeMigrationIoPriorityBwLimitPerDeviceInKbps": null,
1677 "vtreeMigrationIoPriorityNumOfConcurrentIosPerDevice": null,
1678 "vtreeMigrationIoPriorityPolicy": null,
1679 "vtreeMigrationIoPriorityQuietPeriodInMsec": null,
1680 "wrcDeviceGroupId": "d291d60100000000",
1681 "zeroPaddingEnabled": true
1682 }
1683 ]
1684 Volumes:
1685 description: Details of volumes.
1686 returned: always
1687 type: list
1688 contains:
1689 accessModeLimit:
1690 description: Access mode limit for the volume (e.g., ReadWrite).
1691 type: str
1692 ancestorVolumeId:
1693 description: ID of the ancestor volume, if this is a snapshot.
1694 type: str
1695 autoSnapshotGroupId:
1696 description: ID of the auto-snapshot group associated with the volume.
1697 type: str
1698 compressionMethod:
1699 description: Compression method used for the volume (e.g., NotApplicable).
1700 type: str
1701 consistencyGroupId:
1702 description: ID of the consistency group the volume belongs to.
1703 type: str
1704 creationTime:
1705 description: Unix timestamp (in seconds) when the volume was created.
1706 type: int
1707 dataLayout:
1708 description: Data layout type of the volume (e.g., ErasureCoding).
1709 type: str
1710 genType:
1711 description: Generation type of the volume (e.g., EC).
1712 type: str
1713 id:
1714 description: Unique identifier of the volume.
1715 type: str
1716 links:
1717 description: List of hypermedia links related to the volume.
1718 type: list
1719 contains:
1720 href:
1721 description: URL reference for the link.
1722 type: str
1723 rel:
1724 description: Relationship of the link (e.g., self, query).
1725 type: str
1726 lockedAutoSnapshot:
1727 description: Indicates whether the auto-snapshot is locked.
1728 type: bool
1729 lockedAutoSnapshotMarkedForRemoval:
1730 description: Indicates whether the locked auto-snapshot is marked for removal.
1731 type: bool
1732 managedBy:
1733 description: System or component managing the volume (e.g., ScaleIO).
1734 type: str
1735 mappedSdcInfo:
1736 description: Information about SDCs (hosts) mapped to this volume.
1737 type: list
1738 contains:
1739 accessMode:
1740 description: Access mode granted to the SDC (e.g., ReadWrite).
1741 type: str
1742 hostType:
1743 description: Type of host (e.g., SdcHost).
1744 type: str
1745 isDirectBufferMapping:
1746 description: Indicates whether direct buffer mapping is used.
1747 type: bool
1748 limitBwInMbps:
1749 description: Bandwidth limit in Mbps (0 means unlimited).
1750 type: int
1751 limitIops:
1752 description: IOPS limit (0 means unlimited).
1753 type: int
1754 nqn:
1755 description: NVMe Qualified Name, if applicable.
1756 type: str
1757 sdcId:
1758 description: Unique ID of the SDC (host).
1759 type: str
1760 sdcIp:
1761 description: IP address of the SDC.
1762 type: str
1763 sdcName:
1764 description: Name of the SDC.
1765 type: str
1766 name:
1767 description: Name of the volume.
1768 type: str
1769 notGenuineSnapshot:
1770 description: Indicates whether the snapshot is not a genuine point-in-time copy.
1771 type: bool
1772 nsid:
1773 description: Namespace ID assigned to the volume.
1774 type: int
1775 originalExpiryTime:
1776 description: Original expiry time for the volume or snapshot.
1777 type: int
1778 pairIds:
1779 description: List of paired volume IDs, if volume is part of a pair.
1780 type: str
1781 replicationJournalVolume:
1782 description: Indicates whether the volume is used as a journal for replication.
1783 type: bool
1784 replicationTimeStamp:
1785 description: Timestamp of the last replication event.
1786 type: int
1787 retentionLevels:
1788 description: List of retention levels configured for the volume.
1789 type: list
1790 secureSnapshotExpTime:
1791 description: Expiration time for secure snapshots.
1792 type: int
1793 sizeInKb:
1794 description: Size of the volume in kilobytes.
1795 type: int
1796 snplIdOfAutoSnapshot:
1797 description: Snapshot policy ID associated with auto-snapshot.
1798 type: str
1799 snplIdOfSourceVolume:
1800 description: Snapshot policy ID of the source volume.
1801 type: str
1802 storagePoolId:
1803 description: ID of the storage pool where the volume resides.
1804 type: str
1805 timeStampIsAccurate:
1806 description: Indicates whether the timestamp is accurate.
1807 type: bool
1808 useRmcache:
1809 description: Indicates whether remote cache is enabled for the volume.
1810 type: bool
1811 volumeClass:
1812 description: Class or QoS policy assigned to the volume.
1813 type: str
1814 volumeReplicationState:
1815 description: Replication state of the volume (e.g., UnmarkedForReplication).
1816 type: str
1817 volumeType:
1818 description: Type of the volume (e.g., ThinProvisioned).
1819 type: str
1820 vtreeId:
1821 description: ID of the VTree (virtual tree) to which the volume belongs.
1822 type: str
1823 statistics:
1824 description: List of performance and capacity statistics for the volume.
1825 type: list
1826 contains:
1827 name:
1828 description: Name of the statistic (e.g., avg_host_read_latency).
1829 type: str
1830 values:
1831 description: Values for the statistic.
1832 type: list
1833 sample: [
1834 {
1835 "accessModeLimit": "ReadWrite",
1836 "ancestorVolumeId": null,
1837 "autoSnapshotGroupId": null,
1838 "compressionMethod": "NotApplicable",
1839 "consistencyGroupId": null,
1840 "creationTime": 1757086835,
1841 "dataLayout": "ErasureCoding",
1842 "genType": "EC",
1843 "id": "ae4f49db00000000",
1844 "links": [
1845 {
1846 "href": "/api/instances/Volume::ae4f49db00000000",
1847 "rel": "self"
1848 }
1849 ],
1850 "statistics": [
1851 {"name": "host_trim_bandwidth", "values": [0]},
1852 {"name": "host_trim_iops", "values": [0]},
1853 {"name": "avg_host_write_latency", "values": [0]},
1854 {"name": "avg_host_read_latency", "values": [0]},
1855 {"name": "logical_provisioned", "values": [10737418240]},
1856 {"name": "host_read_bandwidth", "values": [0]},
1857 {"name": "host_read_iops", "values": [0]},
1858 {"name": "logical_used", "values": [0]},
1859 {"name": "host_write_bandwidth", "values": [0]},
1860 {"name": "host_write_iops", "values": [0]},
1861 {"name": "avg_host_trim_latency", "values": [0]}
1862 ],
1863 "lockedAutoSnapshot": false,
1864 "lockedAutoSnapshotMarkedForRemoval": false,
1865 "managedBy": "ScaleIO",
1866 "mappedSdcInfo": [
1867 {
1868 "accessMode": "ReadWrite",
1869 "hostType": "SdcHost",
1870 "isDirectBufferMapping": false,
1871 "limitBwInMbps": 0,
1872 "limitIops": 0,
1873 "nqn": null,
1874 "sdcId": "e5282d9800000001",
1875 "sdcIp": "10.225.106.98",
1876 "sdcName": "SDC2"
1877 }
1878 ],
1879 "name": "ans_dev_1",
1880 "notGenuineSnapshot": false,
1881 "nsid": 1,
1882 "originalExpiryTime": 0,
1883 "pairIds": null,
1884 "replicationJournalVolume": false,
1885 "replicationTimeStamp": 0,
1886 "retentionLevels": [],
1887 "secureSnapshotExpTime": 0,
1888 "sizeInKb": 10485760,
1889 "snplIdOfAutoSnapshot": null,
1890 "snplIdOfSourceVolume": "5026b97c00000000",
1891 "storagePoolId": "ea96090d00000000",
1892 "timeStampIsAccurate": false,
1893 "useRmcache": false,
1894 "volumeClass": "defaultclass",
1895 "volumeReplicationState": "UnmarkedForReplication",
1896 "volumeType": "ThinProvisioned",
1897 "vtreeId": "c7c9baf500000000"
1898 }
1899 ]
1900 Devices:
1901 description: Details of devices.
1902 returned: always
1903 type: list
1904 contains:
1905 id:
1906 description: device id.
1907 type: str
1908 name:
1909 description: device name.
1910 type: str
1911 accelerationPoolId:
1912 description: ID of the acceleration pool associated with the device.
1913 type: str
1914 accelerationProps:
1915 description: Acceleration properties of the device.
1916 type: str
1917 aggregatedState:
1918 description: Aggregated health state of the device (e.g., NeverFailed).
1919 type: str
1920 ataSecurityActive:
1921 description: Indicates whether ATA security is active on the device.
1922 type: bool
1923 autoDetectMediaType:
1924 description: Indicates whether media type auto-detection is enabled.
1925 type: str
1926 cacheLookAheadActive:
1927 description: Indicates whether cache look-ahead is enabled for the device.
1928 type: bool
1929 capacity:
1930 description: Total capacity of the device (in KB or other unit, context-dependent).
1931 type: int
1932 capacityInMb:
1933 description: Total capacity of the device in megabytes.
1934 type: int
1935 capacityLimitInKb:
1936 description: Capacity limit of the device in kilobytes.
1937 type: int
1938 deviceCurrentPathName:
1939 description: Current device path name (e.g., /dev/sdf).
1940 type: str
1941 deviceGroupId:
1942 description: ID of the device group to which the device belongs.
1943 type: str
1944 deviceOriginalPathName:
1945 description: Original device path name at time of discovery.
1946 type: str
1947 deviceState:
1948 description: Current operational state of the device (e.g., Normal).
1949 type: str
1950 deviceType:
1951 description: Type of the device (e.g., Unknown, SSD).
1952 type: str
1953 errorState:
1954 description: Current error state of the device (e.g., None).
1955 type: str
1956 externalAccelerationType:
1957 description: Type of external acceleration used (e.g., None).
1958 type: str
1959 fglNvdimmMetadataAmortizationX100:
1960 description: Metadata amortization factor for FlashGuard Log (FGL) devices.
1961 type: str
1962 fglNvdimmWriteCacheSize:
1963 description: NVDIMM write cache size for FlashGuard Log (FGL) devices.
1964 type: str
1965 firmwareVersion:
1966 description: Firmware version of the device.
1967 type: str
1968 ledSetting:
1969 description: Current LED indicator setting of the device (e.g., Off).
1970 type: str
1971 links:
1972 description: List of hypermedia links related to the device.
1973 type: list
1974 contains:
1975 href:
1976 description: The URI of the linked resource.
1977 type: str
1978 rel:
1979 description: The relation type of the link.
1980 type: str
1981 logicalSectorSizeInBytes:
1982 description: Logical sector size of the device in bytes.
1983 type: int
1984 longSuccessfulIos:
1985 description: Long-term successful I/O statistics for the device.
1986 type: dict
1987 contains:
1988 longWindow:
1989 description: Number of successful I/Os in the long time window.
1990 type: str
1991 mediumWindow:
1992 description: Number of successful I/Os in the medium time window.
1993 type: str
1994 shortWindow:
1995 description: Number of successful I/Os in the short time window.
1996 type: str
1997 maxCapacityInKb:
1998 description: Maximum supported capacity of the device in kilobytes.
1999 type: int
2000 mediaFailing:
2001 description: Indicates whether the device media is failing.
2002 type: bool
2003 mediaType:
2004 description: Type of media used in the device (e.g., SSD).
2005 type: str
2006 modelName:
2007 description: Model name of the device.
2008 type: str
2009 persistentChecksumState:
2010 description: State of persistent checksum on the device (e.g., StateInvalid).
2011 type: str
2012 physicalSectorSizeInBytes:
2013 description: Physical sector size of the device in bytes.
2014 type: int
2015 raidControllerSerialNumber:
2016 description: Serial number of the RAID controller managing the device.
2017 type: str
2018 rfcacheErrorDeviceDoesNotExist:
2019 description: Indicates if there is an RFcache error due to missing device.
2020 type: bool
2021 rfcacheProps:
2022 description: RFcache properties associated with the device.
2023 type: str
2024 sdsId:
2025 description: ID of the SDS (ScaleIO Data Server) managing the device.
2026 type: str
2027 serialNumber:
2028 description: Serial number of the device.
2029 type: str
2030 slotNumber:
2031 description: Physical slot number where the device is installed (e.g., N/A).
2032 type: str
2033 spSdsId:
2034 description: SDS ID specific to the storage pool.
2035 type: str
2036 ssdEndOfLifeState:
2037 description: SSD end-of-life status (e.g., NeverFailed).
2038 type: str
2039 storageNodeId:
2040 description: ID of the storage node hosting the device.
2041 type: str
2042 storagePoolId:
2043 description: ID of the storage pool to which the device is assigned.
2044 type: str
2045 storageProps:
2046 description: Storage-related properties of the device.
2047 type: str
2048 temperatureState:
2049 description: Temperature health state of the device (e.g., NeverFailed).
2050 type: str
2051 usableCapacityInMb:
2052 description: Usable capacity of the device in megabytes.
2053 type: int
2054 vendorName:
2055 description: Manufacturer/vendor name of the device.
2056 type: str
2057 writeCacheActive:
2058 description: Indicates whether write cache is currently active on the device.
2059 type: bool
2060 sample: [
2061 {
2062 "accelerationPoolId": null,
2063 "accelerationProps": null,
2064 "aggregatedState": "NeverFailed",
2065 "ataSecurityActive": false,
2066 "autoDetectMediaType": null,
2067 "cacheLookAheadActive": false,
2068 "capacity": 0,
2069 "capacityInMb": 1048576,
2070 "capacityLimitInKb": 1073479680,
2071 "deviceCurrentPathName": "/dev/sdf",
2072 "deviceGroupId": "d291d60100000000",
2073 "deviceOriginalPathName": "/dev/sdf",
2074 "deviceState": "Normal",
2075 "deviceType": "Unknown",
2076 "errorState": "None",
2077 "externalAccelerationType": "None",
2078 "fglNvdimmMetadataAmortizationX100": null,
2079 "fglNvdimmWriteCacheSize": null,
2080 "firmwareVersion": null,
2081 "id": "63efabfb00000004",
2082 "ledSetting": "Off",
2083 "links": [
2084 {
2085 "href": "/api/instances/Device::63efabfb00000004",
2086 "rel": "self"
2087 }
2088 ],
2089 "logicalSectorSizeInBytes": 0,
2090 "longSuccessfulIos": {
2091 "longWindow": null,
2092 "mediumWindow": null,
2093 "shortWindow": null
2094 },
2095 "maxCapacityInKb": 1073479680,
2096 "mediaFailing": false,
2097 "mediaType": "SSD",
2098 "modelName": null,
2099 "name": "sdf",
2100 "persistentChecksumState": "StateInvalid",
2101 "physicalSectorSizeInBytes": 0,
2102 "raidControllerSerialNumber": null,
2103 "rfcacheErrorDeviceDoesNotExist": false,
2104 "rfcacheProps": null,
2105 "sdsId": null,
2106 "serialNumber": null,
2107 "slotNumber": "N/A",
2108 "spSdsId": null,
2109 "ssdEndOfLifeState": "NeverFailed",
2110 "storageNodeId": "876859f300000000",
2111 "storagePoolId": null,
2112 "storageProps": null,
2113 "temperatureState": "NeverFailed",
2114 "usableCapacityInMb": 1048320,
2115 "vendorName": null,
2116 "writeCacheActive": false
2117 }
2118 ]
2119 ManagedDevices:
2120 description: Details of all devices from inventory.
2121 returned: when I(gather_subset) is I(managed_device)
2122 type: list
2123 contains:
2124 deviceType:
2125 description: Device Type.
2126 type: str
2127 serviceTag:
2128 description: Service Tag.
2129 type: str
2130 serverTemplateId:
2131 description: The ID of the server template.
2132 type: str
2133 state:
2134 description: The state of the device.
2135 type: str
2136 managedState:
2137 description: The managed state of the device.
2138 type: str
2139 compliance:
2140 description: The compliance state of the device.
2141 type: str
2142 systemId:
2143 description: The system ID.
2144 type: str
2145 chassisId:
2146 description: Chassis ID to which the device belongs, if applicable.
2147 type: str
2148 complianceCheckDate:
2149 description: Timestamp when the compliance check was last performed.
2150 type: str
2151 config:
2152 description: Configuration details of the device.
2153 type: str
2154 cpuType:
2155 description: Type of CPU installed on the device.
2156 type: str
2157 credId:
2158 description: Credential ID used for device authentication.
2159 type: str
2160 currentIpAddress:
2161 description: Current IP address assigned to the device.
2162 type: str
2163 customFirmware:
2164 description: Indicates whether custom firmware is applied to the device.
2165 type: bool
2166 detailLink:
2167 description: Hypermedia link providing more details about the device.
2168 type: dict
2169 contains:
2170 href:
2171 description: The URI of the detailed resource.
2172 type: str
2173 rel:
2174 description: The relation type of the link.
2175 type: str
2176 title:
2177 description: Human-readable title of the linked resource.
2178 type: str
2179 type:
2180 description: Media type of the linked resource.
2181 type: str
2182 deviceGroupList:
2183 description: List of device groups the device belongs to.
2184 type: dict
2185 contains:
2186 deviceGroup:
2187 description: List of device group entries.
2188 type: list
2189 contains:
2190 createdBy:
2191 description: User who created the device group.
2192 type: str
2193 createdDate:
2194 description: Date when the device group was created.
2195 type: str
2196 groupDescription:
2197 description: Description of the device group.
2198 type: str
2199 groupName:
2200 description: Name of the device group.
2201 type: str
2202 groupSeqId:
2203 description: Sequential ID of the device group.
2204 type: int
2205 groupUserList:
2206 description: List of users associated with the device group.
2207 type: str
2208 link:
2209 description: Link to the device group resource.
2210 type: str
2211 managedDeviceList:
2212 description: List of managed devices in the group.
2213 type: str
2214 updatedBy:
2215 description: User who last updated the device group.
2216 type: str
2217 updatedDate:
2218 description: Date when the device group was last updated.
2219 type: str
2220 paging:
2221 description: Pagination information for the device group list.
2222 type: str
2223 discoverDeviceType:
2224 description: Discovered device type (e.g., SCALEIO).
2225 type: str
2226 discoveredDate:
2227 description: Timestamp when the device was discovered.
2228 type: str
2229 displayName:
2230 description: Display name of the device.
2231 type: str
2232 esxiMaintMode:
2233 description: ESXi maintenance mode status of the device.
2234 type: int
2235 failuresCount:
2236 description: Number of failures reported for the device.
2237 type: int
2238 firmwareName:
2239 description: Name of the firmware or catalog applied to the device.
2240 type: str
2241 flexosMaintMode:
2242 description: FlexOS maintenance mode status of the device.
2243 type: int
2244 health:
2245 description: Overall health status of the device (e.g., GREEN).
2246 type: str
2247 healthMessage:
2248 description: Health status message (e.g., OK).
2249 type: str
2250 hostname:
2251 description: Hostname of the device.
2252 type: str
2253 inUse:
2254 description: Indicates whether the device is currently in use.
2255 type: bool
2256 infraTemplateDate:
2257 description: Date of the infrastructure template applied.
2258 type: str
2259 infraTemplateId:
2260 description: ID of the infrastructure template applied.
2261 type: str
2262 inventoryDate:
2263 description: Timestamp when the device inventory was last updated.
2264 type: str
2265 ipAddress:
2266 description: IP address of the device.
2267 type: str
2268 lastJobs:
2269 description: List of recent jobs executed on the device.
2270 type: str
2271 manufacturer:
2272 description: Manufacturer of the device (e.g., Dell EMC).
2273 type: str
2274 memoryInGB:
2275 description: Total memory of the device in gigabytes.
2276 type: int
2277 model:
2278 description: Model name of the device (e.g., PowerFlex Gateway).
2279 type: str
2280 needsAttention:
2281 description: Indicates whether the device requires attention.
2282 type: bool
2283 nics:
2284 description: Number of network interface cards on the device.
2285 type: int
2286 numberOfCPUs:
2287 description: Number of CPUs installed on the device.
2288 type: int
2289 operatingSystem:
2290 description: Operating system running on the device (e.g., N/A).
2291 type: str
2292 osAdminCredential:
2293 description: Credential for OS-level administrative access.
2294 type: str
2295 osImageType:
2296 description: Type of OS image used.
2297 type: str
2298 osIpAddress:
2299 description: IP address assigned to the OS instance.
2300 type: str
2301 parsedFacts:
2302 description: Parsed system facts collected from the device.
2303 type: str
2304 puppetCertName:
2305 description: Puppet certificate name for the device.
2306 type: str
2307 refId:
2308 description: Reference ID of the device.
2309 type: str
2310 refType:
2311 description: Reference type of the device.
2312 type: str
2313 serverTemplateDate:
2314 description: Date of the server template applied.
2315 type: str
2316 serviceReferences:
2317 description: List of service references associated with the device.
2318 type: list
2319 statusMessage:
2320 description: Additional status message for the device.
2321 type: str
2322 svmAdminCredential:
2323 description: Credential for SVM (Storage Virtual Machine) access.
2324 type: str
2325 svmImageType:
2326 description: Type of SVM image used.
2327 type: str
2328 svmIpAddress:
2329 description: IP address assigned to the SVM.
2330 type: str
2331 svmName:
2332 description: Name of the SVM.
2333 type: str
2334 vmList:
2335 description: List of virtual machines associated with the device.
2336 type: list
2337 sample: [
2338 {
2339 "chassisId": null,
2340 "compliance": "NONCOMPLIANT",
2341 "complianceCheckDate": "2025-09-04T16:00:51.857+00:00",
2342 "config": null,
2343 "cpuType": null,
2344 "credId": "e938b574-8a0d-4b20-aea6-e0dd557d766d",
2345 "currentIpAddress": "10.43.1.67",
2346 "customFirmware": false,
2347 "detailLink": {
2348 "href": "/AsmManager/ManagedDevice/scaleio-block-legacy-gateway",
2349 "rel": "describedby",
2350 "title": "scaleio-block-legacy-gateway",
2351 "type": null
2352 },
2353 "deviceGroupList": {
2354 "deviceGroup": [
2355 {
2356 "createdBy": "admin",
2357 "createdDate": null,
2358 "groupDescription": null,
2359 "groupName": "Global",
2360 "groupSeqId": -1,
2361 "groupUserList": null,
2362 "link": null,
2363 "managedDeviceList": null,
2364 "updatedBy": null,
2365 "updatedDate": null
2366 }
2367 ],
2368 "paging": null
2369 },
2370 "deviceType": "scaleio",
2371 "discoverDeviceType": "SCALEIO",
2372 "discoveredDate": "2025-08-22T15:48:05.477+00:00",
2373 "displayName": "block-legacy-gateway",
2374 "esxiMaintMode": 0,
2375 "failuresCount": 0,
2376 "firmwareName": "Default Catalog - Intelligent Catalog 50.390.00",
2377 "flexosMaintMode": 0,
2378 "health": "GREEN",
2379 "healthMessage": "OK",
2380 "hostname": null,
2381 "inUse": false,
2382 "infraTemplateDate": null,
2383 "infraTemplateId": null,
2384 "inventoryDate": null,
2385 "ipAddress": "block-legacy-gateway",
2386 "lastJobs": null,
2387 "managedState": "MANAGED",
2388 "manufacturer": "Dell EMC",
2389 "memoryInGB": 0,
2390 "model": "PowerFlex Gateway",
2391 "needsAttention": false,
2392 "nics": 0,
2393 "numberOfCPUs": 0,
2394 "operatingSystem": "N/A",
2395 "osAdminCredential": null,
2396 "osImageType": null,
2397 "osIpAddress": null,
2398 "parsedFacts": null,
2399 "puppetCertName": "scaleio-block-legacy-gateway",
2400 "refId": "scaleio-block-legacy-gateway",
2401 "refType": null,
2402 "serverTemplateDate": null,
2403 "serverTemplateId": null,
2404 "serviceReferences": [],
2405 "serviceTag": "block-legacy-gateway",
2406 "state": "UPDATE_FAILED",
2407 "statusMessage": null,
2408 "svmAdminCredential": null,
2409 "svmImageType": null,
2410 "svmIpAddress": null,
2411 "svmName": null,
2412 "systemId": null,
2413 "vmList": []
2414 }
2415 ]
2416 Deployments:
2417 description: Details of all deployments.
2418 returned: when I(gather_subset) is I(deployment)
2419 type: list
2420 contains:
2421 id:
2422 description: Deployment ID.
2423 type: str
2424 deploymentName:
2425 description: Deployment name.
2426 type: str
2427 status:
2428 description: The status of deployment.
2429 type: str
2430 firmwareRepository:
2431 description: The firmware repository.
2432 type: dict
2433 contains:
2434 signature:
2435 description: The signature details.
2436 type: str
2437 downloadStatus:
2438 description: The download status.
2439 type: str
2440 rcmapproved:
2441 description: If RCM approved.
2442 type: bool
2443 allUsersAllowed:
2444 description: Whether the deployment is accessible to all users.
2445 type: bool
2446 assignedUsers:
2447 description: List of users assigned to this deployment.
2448 type: list
2449 elements: str
2450 brownfield:
2451 description: Indicates if this is a brownfield (existing infrastructure) deployment.
2452 type: bool
2453 compliant:
2454 description: Indicates whether the deployment is compliant with its template.
2455 type: bool
2456 configurationChange:
2457 description: Indicates if there has been a configuration change in the deployment.
2458 type: bool
2459 createdBy:
2460 description: User who created the deployment.
2461 type: str
2462 createdDate:
2463 description: Timestamp when the deployment was created.
2464 type: str
2465 currentBatchCount:
2466 description: Current batch number being processed in the deployment workflow.
2467 type: int
2468 currentStepCount:
2469 description: Current step number within the current batch of the deployment.
2470 type: int
2471 currentStepMessage:
2472 description: Message or status detail for the current step in deployment.
2473 type: str
2474 customImage:
2475 description: Name of the custom image used for deployment.
2476 type: str
2477 deploymentDescription:
2478 description: Description of the deployment.
2479 type: str
2480 deploymentDevice:
2481 description: List of devices involved in the deployment.
2482 type: list
2483 contains:
2484 brownfield:
2485 description: Indicates if the device is part of a brownfield deployment.
2486 type: bool
2487 brownfieldStatus:
2488 description: Status indicating brownfield applicability for the device.
2489 type: str
2490 cloudLink:
2491 description: Indicates if CloudLink is enabled on the device.
2492 type: bool
2493 compliantState:
2494 description: Compliance state of the device (e.g., COMPLIANT, NON_COMPLIANT).
2495 type: str
2496 componentId:
2497 description: Component ID associated with the device.
2498 type: str
2499 currentIpAddress:
2500 description: Current IP address assigned to the device.
2501 type: str
2502 dasCache:
2503 description: Indicates if DAS cache is enabled on the device.
2504 type: bool
2505 deviceGroupName:
2506 description: Name of the group to which the device belongs.
2507 type: str
2508 deviceHealth:
2509 description: Health status of the device (e.g., GREEN, YELLOW, RED).
2510 type: str
2511 deviceState:
2512 description: Current state of the device in the deployment lifecycle.
2513 type: str
2514 deviceType:
2515 description: Type of device (e.g., RackServer, Switch).
2516 type: str
2517 healthMessage:
2518 description: Detailed health message for the device.
2519 type: str
2520 ipAddress:
2521 description: IP address configured for the device.
2522 type: str
2523 logDump:
2524 description: Log dump information from the device.
2525 type: str
2526 model:
2527 description: Hardware model of the device.
2528 type: str
2529 puppetCertName:
2530 description: Puppet certificate name used for managing the device.
2531 type: str
2532 refId:
2533 description: Reference ID of the device in the system.
2534 type: str
2535 refType:
2536 description: Type of reference for the device.
2537 type: str
2538 serviceTag:
2539 description: Service tag identifier of the physical device.
2540 type: str
2541 status:
2542 description: Current operational status of the device.
2543 type: str
2544 statusEndTime:
2545 description: Timestamp when the current status ended.
2546 type: str
2547 statusMessage:
2548 description: Additional message explaining the current status.
2549 type: str
2550 statusStartTime:
2551 description: Timestamp when the current status began.
2552 type: str
2553 deploymentFinishedDate:
2554 description: Timestamp when the deployment was completed.
2555 type: str
2556 deploymentHealthStatusType:
2557 description: Aggregated health status of the deployment (e.g., green, yellow, red).
2558 type: str
2559 deploymentScheduledDate:
2560 description: Scheduled start time for the deployment.
2561 type: str
2562 deploymentStartedDate:
2563 description: Timestamp when the deployment actually started.
2564 type: str
2565 deploymentValid:
2566 description: Indicates if the deployment configuration is valid.
2567 type: bool
2568 deploymentValidationResponse:
2569 description: Detailed response from the validation process.
2570 type: str
2571 disruptiveFirmware:
2572 description: Indicates if firmware update is disruptive (requires reboot).
2573 type: bool
2574 firmwareInit:
2575 description: Indicates if firmware initialization has started.
2576 type: bool
2577 firmwareRepositoryId:
2578 description: ID of the firmware repository used.
2579 type: str
2580 individualTeardown:
2581 description: Indicates if individual components can be torn down separately.
2582 type: bool
2583 jobDetails:
2584 description: Details about the background job handling the deployment.
2585 type: str
2586 jobId:
2587 description: ID of the associated background job.
2588 type: str
2589 licenseRepository:
2590 description: License repository configuration used in deployment.
2591 type: str
2592 licenseRepositoryId:
2593 description: ID of the license repository used.
2594 type: str
2595 lifecycleMode:
2596 description: Indicates if the deployment is in lifecycle management mode.
2597 type: bool
2598 lifecycleModeReasons:
2599 description: List of reasons why lifecycle mode is active.
2600 type: list
2601 elements: str
2602 noOp:
2603 description: Indicates if the deployment is running in dry-run (no-op) mode.
2604 type: bool
2605 numberOfDeployments:
2606 description: Number of deployments associated with this record.
2607 type: int
2608 operationData:
2609 description: Additional data related to the current operation.
2610 type: str
2611 operationStatus:
2612 description: Status of the current operation (e.g., running, failed).
2613 type: str
2614 operationType:
2615 description: Type of operation being performed (e.g., RETRY, CREATE).
2616 type: str
2617 originalDeploymentId:
2618 description: ID of the original deployment if this is a retry or clone.
2619 type: str
2620 owner:
2621 description: Owner of the deployment.
2622 type: str
2623 precalculatedDeviceHealth:
2624 description: Pre-calculated health status of devices.
2625 type: str
2626 preconfigureSVM:
2627 description: Indicates if SVM (ScaleIO Volume Manager) should be preconfigured.
2628 type: bool
2629 preconfigureSVMAndUpdate:
2630 description: Indicates if SVM should be preconfigured and updated.
2631 type: bool
2632 removeService:
2633 description: Indicates if services should be removed during teardown.
2634 type: bool
2635 retry:
2636 description: Indicates if this deployment is a retry of a previous attempt.
2637 type: bool
2638 scaleUp:
2639 description: Indicates if this is a scale-up deployment.
2640 type: bool
2641 scheduleDate:
2642 description: Date when the deployment is scheduled to run.
2643 type: str
2644 serviceTemplate:
2645 description: Template used to define the structure and components of the service.
2646 type: dict
2647 contains:
2648 allUsersAllowed:
2649 description: Whether the template is accessible to all users.
2650 type: bool
2651 assignedUsers:
2652 description: List of users assigned to use this template.
2653 type: list
2654 elements: str
2655 brownfieldTemplateType:
2656 description: Type of brownfield support in the template.
2657 type: str
2658 category:
2659 description: Category of the service (e.g., block, compute).
2660 type: str
2661 clusterCount:
2662 description: Number of clusters defined in the template.
2663 type: int
2664 components:
2665 description: List of components included in the service template.
2666 type: list
2667 contains:
2668 asmGUID:
2669 description: Unique identifier for the component in ASM.
2670 type: str
2671 brownfield:
2672 description: Indicates if the component supports brownfield deployment.
2673 type: bool
2674 cloned:
2675 description: Indicates if the component was cloned from another.
2676 type: bool
2677 clonedFromAsmGuid:
2678 description: ASM GUID of the source component if cloned.
2679 type: str
2680 clonedFromId:
2681 description: ID of the source component if cloned.
2682 type: str
2683 componentID:
2684 description: Internal ID of the component.
2685 type: str
2686 componentValid:
2687 description: Validation result for the component.
2688 type: dict
2689 contains:
2690 messages:
2691 description: List of validation messages.
2692 type: list
2693 elements: str
2694 valid:
2695 description: Whether the component is valid.
2696 type: bool
2697 configFile:
2698 description: Path or name of the configuration file.
2699 type: str
2700 helpText:
2701 description: Help text describing the component.
2702 type: str
2703 id:
2704 description: Unique identifier for the component.
2705 type: str
2706 identifier:
2707 description: External identifier for the component.
2708 type: str
2709 instances:
2710 description: Number of instances of this component.
2711 type: int
2712 ip:
2713 description: Static IP assigned to the component.
2714 type: str
2715 manageFirmware:
2716 description: Indicates if firmware management is enabled for this component.
2717 type: bool
2718 managementIpAddress:
2719 description: IP address used for managing the component.
2720 type: str
2721 name:
2722 description: Name of the component.
2723 type: str
2724 osPuppetCertName:
2725 description: Puppet certificate name for the OS layer.
2726 type: str
2727 puppetCertName:
2728 description: Puppet certificate name for the component.
2729 type: str
2730 refId:
2731 description: Reference ID in external systems.
2732 type: str
2733 resources:
2734 description: List of resources allocated to the component.
2735 type: list
2736 serialNumber:
2737 description: Serial number of the hardware component.
2738 type: str
2739 subType:
2740 description: Sub-type of the component (e.g., STORAGEONLY).
2741 type: str
2742 teardown:
2743 description: Indicates if the component should be removed on teardown.
2744 type: bool
2745 type:
2746 description: Type of the component (e.g., SCALEIO).
2747 type: str
2748 configuration:
2749 description: Full configuration payload for the service.
2750 type: str
2751 createdDate:
2752 description: Timestamp when the template was created.
2753 type: str
2754 draft:
2755 description: Indicates if the template is a draft version.
2756 type: bool
2757 hideTemplateActive:
2758 description: Indicates if the template is hidden from users.
2759 type: bool
2760 id:
2761 description: Template ID.
2762 type: str
2763 inConfiguration:
2764 description: Indicates if the template is currently in use.
2765 type: bool
2766 lastDeployedDate:
2767 description: Timestamp of the last deployment using this template.
2768 type: str
2769 licenseRepository:
2770 description: License repository associated with the template.
2771 type: str
2772 manageFirmware:
2773 description: Indicates if firmware updates are managed for this template.
2774 type: bool
2775 networks:
2776 description: List of network configurations in the template.
2777 type: list
2778 contains:
2779 description:
2780 description: Description of the network.
2781 type: str
2782 destinationIpAddress:
2783 description: Destination IP range for routing.
2784 type: str
2785 id:
2786 description: Network ID.
2787 type: str
2788 name:
2789 description: Name of the network.
2790 type: str
2791 static:
2792 description: Indicates if the network uses static addressing.
2793 type: bool
2794 staticNetworkConfiguration:
2795 description: Static network settings.
2796 type: dict
2797 contains:
2798 dnsSuffix:
2799 description: DNS suffix for the network.
2800 type: str
2801 gateway:
2802 description: Default gateway IP.
2803 type: str
2804 ipAddress:
2805 description: Specific IP assigned.
2806 type: str
2807 ipRange:
2808 description: Range of IPs available for allocation.
2809 type: list
2810 contains:
2811 endingIp:
2812 description: Last IP in the range.
2813 type: str
2814 id:
2815 description: ID of the IP range.
2816 type: str
2817 role:
2818 description: Role of IPs in this range.
2819 type: str
2820 startingIp:
2821 description: First IP in the range.
2822 type: str
2823 primaryDns:
2824 description: Primary DNS server IP.
2825 type: str
2826 secondaryDns:
2827 description: Secondary DNS server IP.
2828 type: str
2829 staticRoute:
2830 description: Static route configuration.
2831 type: str
2832 subnet:
2833 description: Subnet mask in dotted decimal format.
2834 type: str
2835 type:
2836 description: Type of network (e.g., SCALEIO_DATA).
2837 type: str
2838 vlanId:
2839 description: VLAN ID associated with the network.
2840 type: int
2841 originalTemplateId:
2842 description: ID of the base template if this is a derived version.
2843 type: str
2844 sdnasCount:
2845 description: Number of SDNAS nodes in the template.
2846 type: int
2847 serverCount:
2848 description: Number of servers defined in the template.
2849 type: int
2850 serviceCount:
2851 description: Number of services in the template.
2852 type: int
2853 storageCount:
2854 description: Number of storage units.
2855 type: int
2856 switchCount:
2857 description: Number of switches included.
2858 type: int
2859 templateDescription:
2860 description: Description of the service template.
2861 type: str
2862 templateLocked:
2863 description: Indicates if the template is locked for editing.
2864 type: bool
2865 templateName:
2866 description: Name of the service template.
2867 type: str
2868 templateType:
2869 description: Type of template (e.g., VxRack FLEX).
2870 type: str
2871 templateValid:
2872 description: Validation status of the template.
2873 type: dict
2874 contains:
2875 messages:
2876 description: List of validation messages.
2877 type: list
2878 elements: str
2879 valid:
2880 description: Whether the template is valid.
2881 type: bool
2882 templateVersion:
2883 description: Version of the template.
2884 type: str
2885 updatedDate:
2886 description: Timestamp when the template was last updated.
2887 type: str
2888 useDefaultCatalog:
2889 description: Indicates if the default firmware catalog is used.
2890 type: bool
2891 vmCount:
2892 description: Number of virtual machines in the template.
2893 type: int
2894 servicesDeployed:
2895 description: Status of services deployed (e.g., NONE, PARTIAL, ALL).
2896 type: str
2897 teardown:
2898 description: Indicates if the deployment is scheduled for teardown.
2899 type: bool
2900 teardownAfterCancel:
2901 description: Indicates if teardown should occur after cancellation.
2902 type: bool
2903 templateValid:
2904 description: Indicates if the associated service template is valid.
2905 type: bool
2906 totalBatchCount:
2907 description: Total number of batches in the deployment workflow.
2908 type: int
2909 totalNumOfSteps:
2910 description: Total number of steps across all batches.
2911 type: int
2912 updateServerFirmware:
2913 description: Indicates if server firmware should be updated during deployment.
2914 type: bool
2915 updatedBy:
2916 description: User who last updated the deployment.
2917 type: str
2918 updatedDate:
2919 description: Timestamp when the deployment was last updated.
2920 type: str
2921 useDefaultCatalog:
2922 description: Indicates if the default firmware catalog is used.
2923 type: bool
2924 vds:
2925 description: Indicates if Virtual Distributed Switches are used.
2926 type: bool
2927 vms:
2928 description: Virtual machine configurations or status.
2929 type: list
2930 sample: [
2931 {
2932 "allUsersAllowed": true,
2933 "assignedUsers": [],
2934 "brownfield": false,
2935 "compliant": false,
2936 "configurationChange": false,
2937 "createdBy": "admin",
2938 "createdDate": "2025-09-09T13:42:55.611+00:00",
2939 "currentBatchCount": null,
2940 "currentStepCount": null,
2941 "currentStepMessage": null,
2942 "customImage": "rcm_linux",
2943 "deploymentDescription": null,
2944 "deploymentDevice": [
2945 {
2946 "brownfield": false,
2947 "brownfieldStatus": "NOT_APPLICABLE",
2948 "cloudLink": false,
2949 "compliantState": "COMPLIANT",
2950 "componentId": null,
2951 "currentIpAddress": "10.226.197.13",
2952 "dasCache": false,
2953 "deviceGroupName": "Global",
2954 "deviceHealth": "GREEN",
2955 "deviceState": "DEPLOYING",
2956 "deviceType": "RackServer",
2957 "healthMessage": "OK",
2958 "ipAddress": "10.226.197.13",
2959 "logDump": null,
2960 "model": "PowerFlex custom node R650 S",
2961 "puppetCertName": "rackserver-bdwmcx3",
2962 "refId": "8aaa07b2992a323a01992bc3945606cc",
2963 "refType": null,
2964 "serviceTag": "BDWMCX3",
2965 "status": null,
2966 "statusEndTime": null,
2967 "statusMessage": null,
2968 "statusStartTime": null
2969 }
2970 ],
2971 "deploymentFinishedDate": null,
2972 "deploymentHealthStatusType": "yellow",
2973 "deploymentName": "ECBlock",
2974 "deploymentScheduledDate": null,
2975 "deploymentStartedDate": "2025-09-09T14:21:11.073+00:00",
2976 "deploymentValid": null,
2977 "deploymentValidationResponse": null,
2978 "disruptiveFirmware": false,
2979 "firmwareInit": false,
2980 "firmwareRepository": {
2981 "bundleCount": 0,
2982 "componentCount": 0,
2983 "createdBy": null,
2984 "createdDate": null,
2985 "custom": false,
2986 "defaultCatalog": false,
2987 "deployments": [],
2988 "diskLocation": null,
2989 "downloadProgress": 0,
2990 "downloadStatus": null,
2991 "esxiOSRepository": null,
2992 "esxiSoftwareBundle": null,
2993 "esxiSoftwareComponent": null,
2994 "extractProgress": 0,
2995 "fileSizeInGigabytes": null,
2996 "filename": null,
2997 "id": "8aaa07b2992a323a01992bc015d30135",
2998 "jobId": null,
2999 "md5Hash": null,
3000 "minimal": false,
3001 "name": "Intelligent Catalog 50.390.00",
3002 "needsAttention": false,
3003 "password": null,
3004 "rcmapproved": false,
3005 "signature": null,
3006 "signedKeySourceLocation": null,
3007 "softwareBundles": [],
3008 "softwareComponents": [],
3009 "sourceLocation": null,
3010 "sourceType": null,
3011 "state": null,
3012 "updatedBy": null,
3013 "updatedDate": null,
3014 "userBundleCount": 0,
3015 "username": null
3016 },
3017 "firmwareRepositoryId": "8aaa07b2992a323a01992bc015d30135",
3018 "id": "8aaa07af992e959c01992eb7197b0150",
3019 "individualTeardown": false,
3020 "jobDetails": null,
3021 "jobId": null,
3022 "licenseRepository": null,
3023 "licenseRepositoryId": null,
3024 "lifecycleMode": false,
3025 "lifecycleModeReasons": [],
3026 "noOp": false,
3027 "numberOfDeployments": 0,
3028 "operationData": null,
3029 "operationStatus": null,
3030 "operationType": "RETRY",
3031 "originalDeploymentId": null,
3032 "owner": "admin",
3033 "precalculatedDeviceHealth": null,
3034 "preconfigureSVM": false,
3035 "preconfigureSVMAndUpdate": false,
3036 "removeService": false,
3037 "retry": false,
3038 "scaleUp": false,
3039 "scheduleDate": null,
3040 "serviceTemplate": {
3041 "allUsersAllowed": true,
3042 "assignedUsers": [],
3043 "blockServiceOperationsMap": {},
3044 "brownfieldTemplateType": "NONE",
3045 "category": "block",
3046 "clusterCount": 1,
3047 "components": [
3048 {
3049 "asmGUID": "scaleio-block-legacy-gateway",
3050 "brownfield": false,
3051 "cloned": false,
3052 "clonedFromAsmGuid": null,
3053 "clonedFromId": null,
3054 "componentID": "component-scaleio-gateway-1",
3055 "componentValid": {
3056 "messages": [],
3057 "valid": true
3058 },
3059 "configFile": null,
3060 "helpText": null,
3061 "id": "92511015-2a1e-498b-8b93-41455253dabf",
3062 "identifier": null,
3063 "instances": 1,
3064 "ip": null,
3065 "manageFirmware": false,
3066 "managementIpAddress": null,
3067 "name": "block-legacy-gateway",
3068 "osPuppetCertName": null,
3069 "puppetCertName": "scaleio-block-legacy-gateway",
3070 "refId": null,
3071 "relatedComponents": {
3072 "068e82fc-3767-49ee-a052-f2d8cac50d87": "Storage Only Node-4",
3073 "37e5ab99-ee64-4122-9eb0-92c7d76b8233": "Storage Only Node",
3074 "73dda7ab-dc46-411a-aae4-99bdb0d0e47a": "Storage Only Node-2",
3075 "c01f69a4-a1f9-4bba-8471-15285db1f18e": "Storage Only Node-5",
3076 "fb7b47e0-5da0-497e-a579-98a9557e1682": "Storage Only Node-3"
3077 },
3078 "resources": [],
3079 "serialNumber": null,
3080 "subType": "STORAGEONLY",
3081 "teardown": false,
3082 "type": "SCALEIO"
3083 }
3084 ],
3085 "configuration": null,
3086 "createdBy": null,
3087 "createdDate": "2025-09-09T13:43:03.001+00:00",
3088 "draft": false,
3089 "firmwareRepository": null,
3090 "hideTemplateActive": false,
3091 "id": "8aaa07af992e959c01992eb7197b0150",
3092 "inConfiguration": false,
3093 "lastDeployedDate": null,
3094 "licenseRepository": null,
3095 "manageFirmware": true,
3096 "networks": [
3097 {
3098 "description": "",
3099 "destinationIpAddress": "10.230.45.0",
3100 "id": "8aaa2600992a26d601992c06ec8e0021",
3101 "name": "Data-345",
3102 "static": true,
3103 "staticNetworkConfiguration": {
3104 "dnsSuffix": "pie.lab.emc.com",
3105 "gateway": "10.230.45.1",
3106 "ipAddress": null,
3107 "ipRange": [
3108 {
3109 "endingIp": "10.230.45.30",
3110 "id": "8aaa2600992a26d601992c06ec8e0022",
3111 "role": null,
3112 "startingIp": "10.230.45.21"
3113 }
3114 ],
3115 "primaryDns": "10.230.44.169",
3116 "secondaryDns": "10.230.44.170",
3117 "staticRoute": null,
3118 "subnet": "255.255.255.0"
3119 },
3120 "type": "SCALEIO_DATA",
3121 "vlanId": 345
3122 }
3123 ],
3124 "originalTemplateId": "e3deed3d-25ac-4154-8696-b65293213cfd",
3125 "sdnasCount": 0,
3126 "serverCount": 5,
3127 "serviceCount": 0,
3128 "storageCount": 0,
3129 "switchCount": 0,
3130 "templateDescription": "Storage Only 5 Node deployment using Erasure Coding",
3131 "templateLocked": false,
3132 "templateName": "SO NVMe Enabled Clone (8aaa07af992e959c01992eb7197b0150)",
3133 "templateType": "VxRack FLEX",
3134 "templateValid": {
3135 "messages": [],
3136 "valid": true
3137 },
3138 "templateVersion": "5.0.0.0",
3139 "updatedBy": null,
3140 "updatedDate": null,
3141 "useDefaultCatalog": false,
3142 "vmCount": 0
3143 },
3144 "servicesDeployed": "NONE",
3145 "status": "in_progress",
3146 "teardown": false,
3147 "teardownAfterCancel": false,
3148 "templateValid": true,
3149 "totalBatchCount": null,
3150 "totalNumOfSteps": null,
3151 "updateServerFirmware": true,
3152 "updatedBy": "system",
3153 "updatedDate": "2025-09-10T02:00:17.092+00:00",
3154 "useDefaultCatalog": false,
3155 "vds": false,
3156 "vms": null
3157 }
3158 ]
3159 ServiceTemplates:
3160 description: Details of all service templates.
3161 returned: when I(gather_subset) is I(service_template)
3162 type: list
3163 contains:
3164 templateName:
3165 description: Template name.
3166 type: str
3167 templateDescription:
3168 description: Template description.
3169 type: str
3170 templateType:
3171 description: Template type.
3172 type: str
3173 templateVersion:
3174 description: Template version.
3175 type: str
3176 category:
3177 description: The template category.
3178 type: str
3179 serverCount:
3180 description: Server count.
3181 type: int
3182 allUsersAllowed:
3183 description: Indicates whether the template is available to all users.
3184 type: bool
3185 assignedUsers:
3186 description: List of users explicitly assigned to use this template.
3187 type: list
3188 brownfieldTemplateType:
3189 description: Type of brownfield deployment supported by the template (e.g., NONE).
3190 type: str
3191 clusterCount:
3192 description: Number of clusters defined in the template.
3193 type: int
3194 components:
3195 description: List of components included in the service template.
3196 type: list
3197 contains:
3198 asmGUID:
3199 description: ASM GUID of the component, if applicable.
3200 type: str
3201 brownfield:
3202 description: Indicates whether the component supports brownfield deployment.
3203 type: bool
3204 cloned:
3205 description: Indicates whether the component is cloned from another.
3206 type: bool
3207 clonedFromAsmGuid:
3208 description: ASM GUID of the source component if cloned.
3209 type: str
3210 clonedFromId:
3211 description: ID of the source component if cloned.
3212 type: str
3213 componentID:
3214 description: Unique identifier for the component.
3215 type: str
3216 componentValid:
3217 description: Validation status of the component.
3218 type: dict
3219 contains:
3220 messages:
3221 description: List of validation messages.
3222 type: list
3223 valid:
3224 description: Indicates whether the component is valid.
3225 type: bool
3226 configFile:
3227 description: Configuration file associated with the component.
3228 type: str
3229 helpText:
3230 description: Help text or description for the component.
3231 type: str
3232 id:
3233 description: Unique ID of the component instance.
3234 type: str
3235 identifier:
3236 description: Identifier for the component.
3237 type: str
3238 instances:
3239 description: Number of instances of this component.
3240 type: int
3241 ip:
3242 description: IP address assigned to the component.
3243 type: str
3244 manageFirmware:
3245 description: Indicates whether firmware management is enabled for the component.
3246 type: bool
3247 managementIpAddress:
3248 description: Management IP address of the component.
3249 type: str
3250 name:
3251 description: Name of the component (e.g., PowerFlex Cluster).
3252 type: str
3253 osPuppetCertName:
3254 description: Puppet certificate name for the OS instance.
3255 type: str
3256 puppetCertName:
3257 description: Puppet certificate name for the component.
3258 type: str
3259 refId:
3260 description: Reference ID of the component.
3261 type: str
3262 resources:
3263 description: List of resources associated with the component.
3264 type: list
3265 serialNumber:
3266 description: Serial number of the component.
3267 type: str
3268 subType:
3269 description: Subtype of the component (e.g., STORAGEONLY).
3270 type: str
3271 teardown:
3272 description: Indicates whether the component should be torn down.
3273 type: bool
3274 type:
3275 description: Type of the component (e.g., SCALEIO).
3276 type: str
3277 configuration:
3278 description: Full configuration data of the service template.
3279 type: str
3280 createdBy:
3281 description: User who created the service template.
3282 type: str
3283 createdDate:
3284 description: Timestamp when the template was created.
3285 type: str
3286 draft:
3287 description: Indicates whether the template is a draft.
3288 type: bool
3289 firmwareRepository:
3290 description: Firmware repository used by the template.
3291 type: str
3292 hideTemplateActive:
3293 description: Indicates whether the template is hidden from users.
3294 type: bool
3295 id:
3296 description: Unique identifier of the service template.
3297 type: str
3298 inConfiguration:
3299 description: Indicates whether the template is currently being configured.
3300 type: bool
3301 lastDeployedDate:
3302 description: Timestamp when the template was last deployed.
3303 type: str
3304 licenseRepository:
3305 description: License repository used by the template.
3306 type: str
3307 manageFirmware:
3308 description: Indicates whether firmware management is enabled for the template.
3309 type: bool
3310 networks:
3311 description: List of network configurations defined in the template.
3312 type: list
3313 contains:
3314 description:
3315 description: Description of the network.
3316 type: str
3317 destinationIpAddress:
3318 description: Destination IP address range for the network.
3319 type: str
3320 id:
3321 description: Unique ID of the network.
3322 type: str
3323 name:
3324 description: Name of the network (e.g., flex-data1).
3325 type: str
3326 static:
3327 description: Indicates whether the network uses static configuration.
3328 type: bool
3329 staticNetworkConfiguration:
3330 description: Static network settings for the network.
3331 type: dict
3332 contains:
3333 dnsSuffix:
3334 description: DNS suffix for the network.
3335 type: str
3336 gateway:
3337 description: Gateway IP address.
3338 type: str
3339 ipAddress:
3340 description: Assigned IP address.
3341 type: str
3342 ipRange:
3343 description: Range of IP addresses.
3344 type: str
3345 primaryDns:
3346 description: Primary DNS server IP.
3347 type: str
3348 secondaryDns:
3349 description: Secondary DNS server IP.
3350 type: str
3351 staticRoute:
3352 description: Static routing configuration.
3353 type: str
3354 subnet:
3355 description: Subnet mask in dotted-decimal format.
3356 type: str
3357 type:
3358 description: Type of the network (e.g., SCALEIO_DATA).
3359 type: str
3360 vlanId:
3361 description: VLAN ID associated with the network.
3362 type: int
3363 originalTemplateId:
3364 description: ID of the original template from which this was derived.
3365 type: str
3366 sdnasCount:
3367 description: Number of SDNAS instances in the template.
3368 type: int
3369 serviceCount:
3370 description: Number of services defined in the template.
3371 type: int
3372 storageCount:
3373 description: Number of storage components in the template.
3374 type: int
3375 switchCount:
3376 description: Number of switch components in the template.
3377 type: int
3378 templateLocked:
3379 description: Indicates whether the template is locked for editing.
3380 type: bool
3381 templateValid:
3382 description: Validation status of the entire template.
3383 type: dict
3384 contains:
3385 messages:
3386 description: List of validation messages.
3387 type: list
3388 valid:
3389 description: Indicates whether the template is valid.
3390 type: bool
3391 updatedBy:
3392 description: User who last updated the template.
3393 type: str
3394 updatedDate:
3395 description: Timestamp when the template was last updated.
3396 type: str
3397 useDefaultCatalog:
3398 description: Indicates whether the default firmware catalog is used.
3399 type: bool
3400 vmCount:
3401 description: Number of virtual machines defined in the template.
3402 type: int
3403 sample: [
3404 {
3405 "allUsersAllowed": false,
3406 "assignedUsers": [],
3407 "blockServiceOperationsMap": {},
3408 "brownfieldTemplateType": "NONE",
3409 "category": "Sample Templates",
3410 "clusterCount": 1,
3411 "components": [
3412 {
3413 "asmGUID": null,
3414 "brownfield": false,
3415 "cloned": false,
3416 "clonedFromAsmGuid": null,
3417 "clonedFromId": null,
3418 "componentID": "component-scaleio-gateway-1",
3419 "componentValid": {
3420 "messages": [],
3421 "valid": true
3422 },
3423 "configFile": null,
3424 "helpText": null,
3425 "id": "f9adcdba-e0e7-4977-938e-9e5ca626d037",
3426 "identifier": null,
3427 "instances": 1,
3428 "ip": null,
3429 "manageFirmware": false,
3430 "managementIpAddress": null,
3431 "name": "PowerFlex Cluster",
3432 "osPuppetCertName": null,
3433 "puppetCertName": null,
3434 "refId": null,
3435 "relatedComponents": {
3436 "db582229-d23e-4ce2-b242-ecfc17f1c16b": "Storage Only Node"
3437 },
3438 "resources": [],
3439 "serialNumber": null,
3440 "subType": "STORAGEONLY",
3441 "teardown": false,
3442 "type": "SCALEIO"
3443 }
3444 ],
3445 "configuration": null,
3446 "createdBy": "system",
3447 "createdDate": "2025-08-22T15:48:20.369+00:00",
3448 "draft": false,
3449 "firmwareRepository": null,
3450 "hideTemplateActive": true,
3451 "id": "4d0468be-6827-4c41-bbaf-01086de116a8",
3452 "inConfiguration": false,
3453 "lastDeployedDate": null,
3454 "licenseRepository": null,
3455 "manageFirmware": true,
3456 "networks": [
3457 {
3458 "description": "",
3459 "destinationIpAddress": "192.168.104.0",
3460 "id": "ff80808177f8823b0177f8ba236b0004",
3461 "name": "flex-data1",
3462 "static": true,
3463 "staticNetworkConfiguration": {
3464 "dnsSuffix": null,
3465 "gateway": null,
3466 "ipAddress": null,
3467 "ipRange": null,
3468 "primaryDns": null,
3469 "secondaryDns": null,
3470 "staticRoute": null,
3471 "subnet": "255.255.255.0"
3472 },
3473 "type": "SCALEIO_DATA",
3474 "vlanId": 104
3475 }
3476 ],
3477 "originalTemplateId": "ff80808177f880fc0177f883bf1e0027",
3478 "sdnasCount": 0,
3479 "serverCount": 4,
3480 "serviceCount": 0,
3481 "storageCount": 0,
3482 "switchCount": 0,
3483 "templateDescription": "Storage Only 4 Node deployment with 100Gb networking",
3484 "templateLocked": true,
3485 "templateName": "Mirroring - Storage 100Gb - 2 Data - LACP",
3486 "templateType": "VxRack FLEX",
3487 "templateValid": {
3488 "messages": [],
3489 "valid": true
3490 },
3491 "templateVersion": "5.0.0-2956",
3492 "updatedBy": null,
3493 "updatedDate": null,
3494 "useDefaultCatalog": true,
3495 "vmCount": 0
3496 }
3497 ]
3498 FirmwareRepository:
3499 description: Details of all firmware repository.
3500 returned: when I(gather_subset) is C(firmware_repository)
3501 type: list
3502 contains:
3503 id:
3504 description: ID of the firmware repository.
3505 type: str
3506 name:
3507 description: Name of the firmware repository.
3508 type: str
3509 sourceLocation:
3510 description: Source location of the firmware repository.
3511 type: str
3512 state:
3513 description: State of the firmware repository.
3514 type: str
3515 softwareComponents:
3516 description: Software components of the firmware repository.
3517 type: list
3518 softwareBundles:
3519 description: Software bundles of the firmware repository.
3520 type: list
3521 deployments:
3522 description: Deployments of the firmware repository.
3523 type: list
3524 bundleCount:
3525 description: Total number of bundles in the firmware repository.
3526 type: int
3527 componentCount:
3528 description: Total number of software components in the firmware repository.
3529 type: int
3530 createdBy:
3531 description: User who created the firmware repository.
3532 type: str
3533 createdDate:
3534 description: Timestamp when the firmware repository was created.
3535 type: str
3536 custom:
3537 description: Indicates whether the firmware repository is a custom catalog.
3538 type: bool
3539 defaultCatalog:
3540 description: Indicates whether this is the default firmware catalog.
3541 type: bool
3542 diskLocation:
3543 description: Disk path or URL where the firmware repository is stored.
3544 type: str
3545 downloadProgress:
3546 description: Progress percentage of the download process.
3547 type: int
3548 downloadStatus:
3549 description: Current status of the download (e.g., available).
3550 type: str
3551 esxiOSRepository:
3552 description: ESXi operating system repository, if applicable.
3553 type: str
3554 esxiSoftwareBundle:
3555 description: ESXi software bundle included in the repository.
3556 type: str
3557 esxiSoftwareComponent:
3558 description: ESXi software component included in the repository.
3559 type: str
3560 extractProgress:
3561 description: Progress percentage of the extraction process.
3562 type: int
3563 fileSizeInGigabytes:
3564 description: Size of the firmware repository in gigabytes.
3565 type: float
3566 filename:
3567 description: Name of the catalog file (e.g., catalog.xml).
3568 type: str
3569 jobId:
3570 description: Job ID associated with the firmware repository creation or update.
3571 type: str
3572 md5Hash:
3573 description: MD5 hash of the firmware repository file.
3574 type: str
3575 minimal:
3576 description: Indicates whether the repository is a minimal catalog.
3577 type: bool
3578 needsAttention:
3579 description: Indicates whether the repository requires user attention.
3580 type: bool
3581 password:
3582 description: Password used to access the source location, if applicable.
3583 type: str
3584 rcmapproved:
3585 description: Indicates whether the repository is RCM (Recommended Configuration Management) approved.
3586 type: bool
3587 signature:
3588 description: Signature status of the catalog (e.g., Signed).
3589 type: str
3590 signedKeySourceLocation:
3591 description: Source location of the signed key for catalog verification.
3592 type: str
3593 sourceType:
3594 description: Type of source (e.g., FILE).
3595 type: str
3596 updatedBy:
3597 description: User who last updated the firmware repository.
3598 type: str
3599 updatedDate:
3600 description: Timestamp when the firmware repository was last updated.
3601 type: str
3602 userBundleCount:
3603 description: Number of user-defined bundles in the repository.
3604 type: int
3605 username:
3606 description: Username used to access the source location.
3607 type: str
3608 sample: [
3609 {
3610 "bundleCount": 54,
3611 "componentCount": 2783,
3612 "createdBy": "admin",
3613 "createdDate": "2025-08-26T06:46:30.994+00:00",
3614 "custom": false,
3615 "defaultCatalog": true,
3616 "deployments": [],
3617 "diskLocation": "https://xxxx",
3618 "downloadProgress": 100,
3619 "downloadStatus": "available",
3620 "esxiOSRepository": null,
3621 "esxiSoftwareBundle": null,
3622 "esxiSoftwareComponent": null,
3623 "extractProgress": 100,
3624 "fileSizeInGigabytes": 21.7,
3625 "filename": "catalog.xml",
3626 "id": "8aaa80a998e515080198e520d5520000",
3627 "jobId": "Job-a3129599-9702-4abc-b041-0724b82087bc",
3628 "md5Hash": null,
3629 "minimal": false,
3630 "name": "Intelligent Catalog 50.390.00",
3631 "needsAttention": false,
3632 "password": null,
3633 "rcmapproved": false,
3634 "signature": "Signed",
3635 "signedKeySourceLocation": null,
3636 "softwareBundles": [],
3637 "softwareComponents": [],
3638 "sourceLocation": "https://xxx.zip",
3639 "sourceType": "FILE",
3640 "state": "available",
3641 "updatedBy": "system",
3642 "updatedDate": "2025-09-03T05:52:58.636+00:00",
3643 "userBundleCount": 0,
3644 "username": ""
3645 }
3646 ]
3647 NVMe_Hosts:
3648 description: Details of all NVMe hosts.
3649 returned: always
3650 type: list
3651 contains:
3652 hostOsFullType:
3653 description: Full type of the host OS.
3654 type: str
3655 hostType:
3656 description: Type of the host.
3657 type: str
3658 id:
3659 description: ID of the NVMe host.
3660 type: str
3661 installedSoftwareVersionInfo:
3662 description: Installed software version information.
3663 type: str
3664 kernelBuildNumber:
3665 description: Kernel build number.
3666 type: str
3667 kernelVersion:
3668 description: Kernel version.
3669 type: str
3670 links:
3671 description: Links related to the NVMe host.
3672 type: list
3673 contains:
3674 href:
3675 description: Hyperlink reference.
3676 type: str
3677 rel:
3678 description: Relation type.
3679 type: str
3680 max_num_paths:
3681 description: Maximum number of paths per volume. Used to create or modify the NVMe host.
3682 type: int
3683 max_num_sys_ports:
3684 description: Maximum number of ports per protection domain. Used to create or modify the NVMe host.
3685 type: int
3686 mdmConnectionState:
3687 description: MDM connection state.
3688 type: str
3689 mdmIpAddressesCurrent:
3690 description: Current MDM IP addresses.
3691 type: list
3692 memoryAllocationFailure:
3693 description: Memory allocation failure status.
3694 type: str
3695 name:
3696 description: Name of the NVMe host.
3697 type: str
3698 nqn:
3699 description: NQN of the NVMe host. Used to create, get or modify the NVMe host.
3700 type: str
3701 osType:
3702 description: OS type.
3703 type: str
3704 peerMdmId:
3705 description: Peer MDM ID.
3706 type: str
3707 perfProfile:
3708 description: Performance profile.
3709 type: str
3710 sdcAgentActive:
3711 description: Whether the SDC agent is active.
3712 type: bool
3713 sdcApproved:
3714 description: Whether an SDC has approved access to the system.
3715 type: bool
3716 sdcApprovedIps:
3717 description: SDC approved IPs.
3718 type: list
3719 sdcGuid:
3720 description: SDC GUID.
3721 type: str
3722 sdcIp:
3723 description: SDC IP address.
3724 type: str
3725 sdcIps:
3726 description: SDC IP addresses.
3727 type: list
3728 sdcType:
3729 description: SDC type.
3730 type: str
3731 sdrId:
3732 description: SDR ID.
3733 type: str
3734 sdtId:
3735 description: SDT ID.
3736 type: str
3737 socketAllocationFailure:
3738 description: Socket allocation failure status.
3739 type: str
3740 softwareVersionInfo:
3741 description: Software version information.
3742 type: str
3743 systemId:
3744 description: ID of the system.
3745 type: str
3746 versionInfo:
3747 description: Version information.
3748 type: str
3749 sample: [
3750 {
3751 "hostOsFullType": "Generic",
3752 "hostType": "NVMeHost",
3753 "id": "fdc0ed2b00010000",
3754 "installedSoftwareVersionInfo": null,
3755 "kernelBuildNumber": null,
3756 "kernelVersion": null,
3757 "links": [
3758 {
3759 "href": "/api/instances/Host::fdc0ed2b00010000",
3760 "rel": "self"
3761 }
3762 ],
3763 "maxNumPaths": 4,
3764 "maxNumSysPorts": 10,
3765 "mdmConnectionState": null,
3766 "mdmIpAddressesCurrent": null,
3767 "memoryAllocationFailure": null,
3768 "name": "nvme_host",
3769 "nqn": "nqn.2014-08.org.nvmexpress:uuid:e6e80a42-b1d3-5ec2-5ba6-d46d4df291234",
3770 "osType": null,
3771 "peerMdmId": null,
3772 "perfProfile": null,
3773 "sdcAgentActive": null,
3774 "sdcApproved": null,
3775 "sdcApprovedIps": null,
3776 "sdcGuid": null,
3777 "sdcIp": null,
3778 "sdcIps": null,
3779 "sdcType": null,
3780 "sdrId": null,
3781 "sdtId": null,
3782 "socketAllocationFailure": null,
3783 "softwareVersionInfo": null,
3784 "systemId": "815945c41cd8460f",
3785 "versionInfo": null
3786 }
3787 ]
3788 sdt:
3789 description: Details of NVMe storage data targets.
3790 returned: when I(gather_subset) is C(sdt)
3791 type: list
3792 contains:
3793 authenticationError:
3794 description: The authentication error details of the SDT object.
3795 type: str
3796 certificateInfo:
3797 description: The certificate information of the SDT object.
3798 type: dict
3799 contains:
3800 issuer:
3801 description: The issuer of the certificate.
3802 type: str
3803 subject:
3804 description: The subject of the certificate.
3805 type: str
3806 thumbprint:
3807 description: The thumbprint of the certificate.
3808 type: str
3809 validFrom:
3810 description: The date from which the certificate is valid.
3811 type: str
3812 validFromAsn1Format:
3813 description: The validity start date in ASN.1 format.
3814 type: str
3815 validTo:
3816 description: The date until which the certificate is valid.
3817 type: str
3818 validToAsn1Format:
3819 description: The validity end date in ASN.1 format.
3820 type: str
3821 discoveryPort:
3822 description: The discovery port number of the SDT object.
3823 type: int
3824 faultSetId:
3825 description: The fault set ID associated with the SDT object.
3826 type: str
3827 id:
3828 description: The unique identifier of the SDT object.
3829 type: str
3830 ipList:
3831 description: The list of IP addresses of the SDT object.
3832 type: list
3833 contains:
3834 ip:
3835 description: The IP address of the SDT object.
3836 type: str
3837 role:
3838 description: The role associated with the IP address of the SDT object.
3839 type: str
3840 links:
3841 description: Hyperlinks related to the SDT object.
3842 type: list
3843 contains:
3844 href:
3845 description: The URL of the link.
3846 type: str
3847 rel:
3848 description: The relation type of the link.
3849 type: str
3850 maintenanceState:
3851 description: The maintenance state of the SDT object.
3852 type: str
3853 mdmConnectionState:
3854 description: The MDM connection state of the SDT object.
3855 type: str
3856 membershipState:
3857 description: The membership state of the SDT object.
3858 type: str
3859 name:
3860 description: The name of the SDT object.
3861 type: str
3862 nvmePort:
3863 description: The NVMe port number of the SDT object.
3864 type: int
3865 nvme_hosts:
3866 description: The list of NVMe hosts associated with the SDT object.
3867 type: list
3868 contains:
3869 controllerId:
3870 description: The controller ID.
3871 type: int
3872 hostId:
3873 description: The host ID associated with the NVMe controller.
3874 type: str
3875 hostIp:
3876 description: The IP address of the host.
3877 type: str
3878 id:
3879 description: The unique identifier of the NVMe controller.
3880 type: str
3881 isAssigned:
3882 description: Indicates if the NVMe controller is assigned.
3883 type: bool
3884 isConnected:
3885 description: Indicates if the NVMe controller is connected.
3886 type: bool
3887 links:
3888 description: Hyperlinks related to the NVMe controller.
3889 type: list
3890 contains:
3891 href:
3892 description: The URL of the link.
3893 type: str
3894 rel:
3895 description: The relation type of the link.
3896 type: str
3897 name:
3898 description: The name of the NVMe controller. Can be null.
3899 type: str
3900 sdtId:
3901 description: The SDT ID associated with the NVMe controller.
3902 type: str
3903 subsystem:
3904 description: The subsystem associated with the NVMe controller.
3905 type: str
3906 sysPortId:
3907 description: The system port ID.
3908 type: int
3909 sysPortIp:
3910 description: The IP address of the system port.
3911 type: str
3912 persistentDiscoveryControllersNum:
3913 description: Number of persistent discovery controllers.
3914 type: int
3915 protectionDomainId:
3916 description: The Protection Domain ID associated with the SDT object.
3917 type: str
3918 sdtState:
3919 description: The state of the SDT object.
3920 type: str
3921 softwareVersionInfo:
3922 description: The software version information of the SDT object.
3923 type: str
3924 storagePort:
3925 description: The storage port number of the SDT object.
3926 type: int
3927 systemId:
3928 description: ID of the system.
3929 type: str
3930 sample: [
3931 {
3932 "authenticationError": "None",
3933 "certificateInfo": {
3934 "issuer": "/GN=MDM/CN=CA-db69bee9dc6c0d0f/L=Hopkinton/ST=Massachusetts/C=US/O=EMC/OU=ASD",
3935 "subject": "/GN=sdt-comp-1/CN=pie104074/L=Hopkinton/ST=Massachusetts/C=US/O=EMC/OU=ASD",
3936 "thumbprint": "51:5E:FB:ED:91:43:54:8C:46:C3:60:ED:AD:0A:60:5E:90:3E:30:2D",
3937 "validFrom": "Sep 8 15:37:05 2025 GMT",
3938 "validFromAsn1Format": "250908153705Z",
3939 "validTo": "Sep 7 16:37:05 2035 GMT",
3940 "validToAsn1Format": "350907163705Z"
3941 },
3942 "discoveryPort": 8009,
3943 "faultSetId": null,
3944 "id": "19b7d6c700000001",
3945 "ipList": [
3946 {
3947 "ip": "10.2.3.4",
3948 "role": "StorageAndHost"
3949 },
3950 {
3951 "ip": "10.1.2.3",
3952 "role": "StorageAndHost"
3953 }
3954 ],
3955 "links": [
3956 {
3957 "href": "/api/instances/Sdt::19b7d6c700000001",
3958 "rel": "self"
3959 }
3960 ],
3961 "maintenanceState": "NoMaintenance",
3962 "mdmConnectionState": "Connected",
3963 "membershipState": "Joined",
3964 "name": "sdt_pie104074.pie.lab.emc.com",
3965 "nvmePort": 4420,
3966 "nvme_hosts": [],
3967 "persistentDiscoveryControllersNum": 0,
3968 "protectionDomainId": "19af22f800000000",
3969 "sdtState": "Normal",
3970 "softwareVersionInfo": "R5_0.0.0",
3971 "storagePort": 12200,
3972 "systemId": "db69bee9dc6c0d0f"
3973 }
3974 ]
3975 '''
3976
3977
3978 from ansible.module_utils.basic import AnsibleModule
3979 from ansible_collections.dellemc.powerflex.plugins.module_utils.storage.dell \
3980 import utils
3981 from ansible_collections.dellemc.powerflex.plugins.module_utils.storage.dell.libraries.powerflex_base \
3982 import powerflex_compatibility
3983 from ansible_collections.dellemc.powerflex.plugins.module_utils.storage.dell.libraries.powerflex_base \
3984 import PowerFlexBase
3985 import re
3986
3987 LOG = utils.get_logger('info_v2')
3988
3989 UNSUPPORTED_SUBSET_FOR_VERSION = 'One or more specified subset is not supported for the PowerFlex version.'
3990 POWERFLEX_MANAGER_GATHER_SUBSET = {'managed_device', 'deployment', 'service_template'}
3991 MIN_SUPPORTED_POWERFLEX_MANAGER_VERSION = 5.0
3992 ERROR_CODES = r'PARSE002|FILTER002|FILTER003'
3993
3994
3995 @powerflex_compatibility(min_ver='5.0', predecessor='info')
3996 class PowerFlexInfo(PowerFlexBase):
3997 """Class with Info operations"""
3998
3999 filter_mapping = {'equal': 'eq', 'contains': 'co'}
4000
4001 def __init__(self):
4002 """ Define all parameters required by this module"""
4003 argument_spec = get_powerflex_info_parameters()
4004 module_params = {
4005 'argument_spec': argument_spec,
4006 'supports_check_mode': False,
4007 }
4008 self.filter_keys = sorted(
4009 [k for k in argument_spec['filters']['options'].keys()
4010 if 'filter' in k])
4011 super().__init__(AnsibleModule, module_params)
4012 super().check_module_compatibility()
4013
4014 def get_api_details(self):
4015 """ Get api details of the array """
4016 try:
4017 LOG.info('Getting API details ')
4018 api_version = self.powerflex_conn.system.api_version(cached=True)
4019 return api_version
4020
4021 except Exception as e:
4022 msg = f'Get API details from Powerflex array failed with error {str(e)}'
4023 LOG.error(msg)
4024 self.module.fail_json(msg=msg)
4025
4026 def get_array_details(self):
4027 """ Get system details of a powerflex array """
4028
4029 try:
4030 LOG.info('Getting array details ')
4031 entity_list = ['addressSpaceUsage', 'authenticationMethod',
4032 'capacityAlertCriticalThresholdPercent',
4033 'capacityAlertHighThresholdPercent',
4034 'capacityTimeLeftInDays', 'cliPasswordAllowed',
4035 'daysInstalled', 'defragmentationEnabled',
4036 'enterpriseFeaturesEnabled', 'id', 'installId',
4037 'isInitialLicense', 'lastUpgradeTime',
4038 'managementClientSecureCommunicationEnabled',
4039 'maxCapacityInGb', 'mdmCluster',
4040 'mdmExternalPort', 'mdmManagementPort',
4041 'mdmSecurityPolicy', 'showGuid', 'swid',
4042 'systemVersionName', 'tlsVersion', 'upgradeState']
4043
4044 sys_list = self.powerflex_conn.system.get()
4045 sys_details_list = []
4046 for sys in sys_list:
4047 sys_details = {}
4048 for entity in entity_list:
4049 if entity in sys.keys():
4050 sys_details.update({entity: sys[entity]})
4051 if sys_details:
4052 sys_details_list.append(sys_details)
4053
4054 return sys_details_list
4055
4056 except Exception as e:
4057 msg = f'Get array details from Powerflex array failed with error {str(e)}'
4058 LOG.error(msg)
4059 self.module.fail_json(msg=msg)
4060
4061 def get_sdc_list(self, filter_dict=None):
4062 """ Get the list of sdcs on a given PowerFlex storage system """
4063
4064 try:
4065 LOG.info('Getting SDC list ')
4066 if filter_dict:
4067 sdc = self.powerflex_conn.sdc.get(filter_fields=filter_dict)
4068 else:
4069 sdc = self.powerflex_conn.sdc.get()
4070 # filter out NVMe host entities
4071 sdc = [obj for obj in sdc if obj.get('hostType') != 'NVMeHost']
4072 return result_list(sdc)
4073
4074 except Exception as e:
4075 msg = f'Get SDC list from powerflex array failed with error {str(e)}'
4076 LOG.error(msg)
4077 self.module.fail_json(msg=msg)
4078
4079 def get_nvme_host_list(self, filter_dict=None):
4080 """ Get the list of NVMe hosts on a given PowerFlex storage system """
4081
4082 try:
4083 LOG.info('Getting NVMe hosts list ')
4084 sdc = self.powerflex_conn.sdc.get()
4085 # filter out NVMe host entities
4086 hosts = [obj for obj in sdc if obj.get('hostType') == 'NVMeHost']
4087 # Add name to NVMe hosts without giving name
4088 for host in hosts:
4089 if host.get("name") is None:
4090 host["name"] = f"NVMeHost:{host['id']}"
4091 if filter_dict:
4092 hosts = utils.filter_response(hosts, filter_dict)
4093 return result_list(hosts)
4094
4095 except Exception as e:
4096 msg = f'Get NVMe host list from powerflex array failed with error {str(e)}'
4097 LOG.error(msg)
4098 self.module.fail_json(msg=msg)
4099
4100 def get_pd_list(self, filter_dict=None):
4101 """ Get the list of Protection Domains on a given PowerFlex
4102 storage system """
4103
4104 try:
4105 LOG.info('Getting protection domain list ')
4106
4107 if filter_dict:
4108 pd = self.powerflex_conn.protection_domain.get(filter_fields=filter_dict)
4109 else:
4110 pd = self.powerflex_conn.protection_domain.get()
4111 return result_list(pd)
4112
4113 except Exception as e:
4114 msg = f'Get protection domain list from powerflex array failed with error {str(e)}'
4115 LOG.error(msg)
4116 self.module.fail_json(msg=msg)
4117
4118 def get_storage_pool_list(self, filter_dict=None):
4119 """ Get the list of storage pools on a given PowerFlex storage
4120 system """
4121
4122 try:
4123 LOG.info('Getting storage pool list ')
4124 if filter_dict:
4125 pool = self.powerflex_conn.storage_pool.get(filter_fields=filter_dict)
4126 else:
4127 pool = self.powerflex_conn.storage_pool.get()
4128
4129 if pool:
4130 resources = self.powerflex_conn.utility.query_metrics('storage_pool', [], []).get("resources", [])
4131 resource_map = {res["id"]: res["metrics"] for res in resources}
4132 for item in pool:
4133 item['statistics'] = resource_map[item['id']] if item['id'] in resource_map else {}
4134 return result_list(pool)
4135
4136 except Exception as e:
4137 msg = f'Get storage pool list from powerflex array failed with error {str(e)}'
4138 LOG.error(msg)
4139 self.module.fail_json(msg=msg)
4140
4141 def get_volumes_list(self, filter_dict=None):
4142 """ Get the list of volumes on a given PowerFlex storage
4143 system """
4144
4145 try:
4146 LOG.info('Getting volumes list ')
4147 if filter_dict:
4148 volumes = self.powerflex_conn.volume.get(filter_fields=filter_dict)
4149 else:
4150 volumes = self.powerflex_conn.volume.get()
4151
4152 if volumes:
4153 resources = self.powerflex_conn.utility.query_metrics('volume', [], []).get("resources", [])
4154 resource_map = {res["id"]: res["metrics"] for res in resources}
4155 for item in volumes:
4156 item['statistics'] = resource_map[item['id']] if item['id'] in resource_map else {}
4157 return result_list(volumes)
4158
4159 except Exception as e:
4160 msg = f'Get volumes list from powerflex array failed with error {str(e)}'
4161 LOG.error(msg)
4162 self.module.fail_json(msg=msg)
4163
4164 def get_snapshot_policy_list(self, filter_dict=None):
4165 """ Get the list of snapshot schedules on a given PowerFlex storage
4166 system """
4167
4168 try:
4169 LOG.info('Getting snapshot policies list ')
4170 if filter_dict:
4171 snapshot_policies = \
4172 self.powerflex_conn.snapshot_policy.get(
4173 filter_fields=filter_dict)
4174 else:
4175 snapshot_policies = \
4176 self.powerflex_conn.snapshot_policy.get()
4177 return result_list(snapshot_policies)
4178
4179 except Exception as e:
4180 msg = f'Get snapshot policies list from powerflex array failed with error {str(e)}'
4181 LOG.error(msg)
4182 self.module.fail_json(msg=msg)
4183
4184 def get_devices_list(self, filter_dict=None):
4185 """ Get the list of devices on a given PowerFlex storage
4186 system """
4187
4188 try:
4189 LOG.info('Getting device list ')
4190 if filter_dict:
4191 devices = self.powerflex_conn.device.get(filter_fields=filter_dict)
4192 else:
4193 devices = self.powerflex_conn.device.get()
4194
4195 return result_list(devices)
4196
4197 except Exception as e:
4198 msg = f'Get device list from powerflex array failed with error {str(e)}'
4199 LOG.error(msg)
4200 self.module.fail_json(msg=msg)
4201
4202 def get_managed_devices_list(self):
4203 """ Get the list of managed devices on a given PowerFlex Manager system """
4204 try:
4205 LOG.info('Getting managed devices list ')
4206 devices = self.powerflex_conn.managed_device.get(filters=self.populate_filter_list(),
4207 limit=self.get_param_value('limit'),
4208 offset=self.get_param_value('offset'),
4209 sort=self.get_param_value('sort'))
4210 return devices
4211 except Exception as e:
4212 msg = f'Get managed devices from PowerFlex Manager failed with error {str(e)}'
4213 return self.handle_error_exit(msg)
4214
4215 def get_deployments_list(self):
4216 """ Get the list of deployments on a given PowerFlex Manager system """
4217 try:
4218 LOG.info('Getting deployments list ')
4219 deployments = self.powerflex_conn.deployment.get(filters=self.populate_filter_list(),
4220 sort=self.get_param_value('sort'),
4221 limit=self.get_param_value('limit'),
4222 offset=self.get_param_value('offset'),
4223 include_devices=self.get_param_value('include_devices'),
4224 include_template=self.get_param_value('include_template'),
4225 full=self.get_param_value('full'))
4226 return deployments
4227 except Exception as e:
4228 msg = f'Get deployments from PowerFlex Manager failed with error {str(e)}'
4229 return self.handle_error_exit(msg)
4230
4231 def get_sdt_list(self, filter_dict=None):
4232 """ Get the list of sdt on a given PowerFlex Manager system """
4233 try:
4234 LOG.info('Getting sdt list ')
4235 # Get the list of nvme hosts
4236 associated_hosts = []
4237 nvme_hosts = self.powerflex_conn.sdc.get(filter_fields={'hostType': "NVMeHost"})
4238 for nvme_host in nvme_hosts:
4239 controller = self.powerflex_conn.host.get_related(entity_id=nvme_host.get('id'), related='NvmeController')
4240 associated_hosts.extend(controller)
4241 associated_hosts_map = {controller.get('sdtId'): controller for controller in associated_hosts if controller.get('sdtId') is not None}
4242 if filter_dict:
4243 sdts = self.powerflex_conn.sdt.get(filter_fields=filter_dict)
4244 else:
4245 sdts = self.powerflex_conn.sdt.get()
4246
4247 for sdt in sdts:
4248 sdt['nvme_hosts'] = []
4249 for host in associated_hosts_map.values():
4250 if host.get('sdtId') == sdt.get('id'):
4251 sdt['nvme_hosts'].append(host)
4252
4253 return result_list(sdts)
4254
4255 except Exception as e:
4256 msg = f'Get sdt from PowerFlex Manager failed with error {str(e)}'
4257 LOG.error(msg)
4258 self.module.fail_json(msg=msg)
4259
4260 def get_pagination_params(self):
4261 """ Get the pagination parameters """
4262 return {'limit': self.get_param_value('limit'), 'offset': self.get_param_value('offset'),
4263 'sort': self.get_param_value('sort'), 'filters': self.populate_filter_list()}
4264
4265 def get_firmware_repository_list(self):
4266 """ Get the list of firmware repository on a given PowerFlex Manager system """
4267 try:
4268 LOG.info('Getting firmware repository list ')
4269 firmware_repository = self.powerflex_conn.firmware_repository.get(
4270 **self.get_pagination_params(),
4271 bundles=self.get_param_value('include_bundles'))
4272 return firmware_repository
4273 except Exception as e:
4274 msg = f'Get firmware repository from PowerFlex Manager failed with error {str(e)}'
4275 return self.handle_error_exit(msg)
4276
4277 def get_service_templates_list(self):
4278 """ Get the list of service templates on a given PowerFlex Manager system """
4279 try:
4280 LOG.info('Getting service templates list ')
4281 service_templates = self.powerflex_conn.service_template.get(filters=self.populate_filter_list(),
4282 sort=self.get_param_value('sort'),
4283 offset=self.get_param_value('offset'),
4284 limit=self.get_param_value('limit'),
4285 full=self.get_param_value('full'),
4286 include_attachments=self.get_param_value('include_attachments'))
4287 return service_templates
4288 except Exception as e:
4289 msg = f'Get service templates from PowerFlex Manager failed with error {str(e)}'
4290 return self.handle_error_exit(msg)
4291
4292 def handle_error_exit(self, detailed_message):
4293 match = re.search(r"displayMessage=([^']+)", detailed_message)
4294 error_message = match.group(1) if match else detailed_message
4295 LOG.error(error_message)
4296 if re.search(ERROR_CODES, detailed_message):
4297 return []
4298 self.module.fail_json(msg=error_message)
4299
4300 def get_param_value(self, param):
4301 """
4302 Get the value of the given parameter.
4303 Args:
4304 param (str): The parameter to get the value for.
4305 Returns:
4306 The value of the parameter if it is different from the default value,
4307 The value of the parameter if int and greater than 0
4308 otherwise None.
4309 """
4310 if param in ('sort', 'offset', 'limit') and len(self.module.params.get('gather_subset')) > 1:
4311 return None
4312 default_value = self.module.argument_spec.get(param).get('default')
4313 param_value = self.module.params.get(param)
4314 if (default_value != param_value) and (param_value >= 0 if isinstance(param_value, int) else True):
4315 return param_value
4316 return None
4317
4318 def validate_filter(self, filter_dict):
4319 """ Validate given filter_dict """
4320
4321 is_invalid_filter = self.filter_keys != sorted(list(filter_dict))
4322 if is_invalid_filter:
4323 msg = "Filter should have all keys: '{0}'".format(
4324 ", ".join(self.filter_keys))
4325 LOG.error(msg)
4326 self.module.fail_json(msg=msg)
4327
4328 is_invalid_filter = [filter_dict[i] is None for i in filter_dict]
4329 if True in is_invalid_filter:
4330 msg = "Filter keys: '{0}' cannot be None".format(self.filter_keys)
4331 LOG.error(msg)
4332 self.module.fail_json(msg=msg)
4333
4334 def populate_filter_list(self):
4335 """Populate the filter list"""
4336 if len(self.module.params.get('gather_subset')) > 1:
4337 return []
4338 filters = self.module.params.get('filters') or []
4339 return [
4340 f'{self.filter_mapping.get(filter_dict["filter_operator"])},{filter_dict["filter_key"]},{filter_dict["filter_value"]}'
4341 for filter_dict in filters
4342 ]
4343
4344 def get_filters(self, filters):
4345 """Get the filters to be applied"""
4346
4347 filter_dict = {}
4348 for item in filters:
4349 self.validate_filter(item)
4350 f_op = item['filter_operator']
4351 if self.filter_mapping.get(f_op) == self.filter_mapping.get("equal"):
4352 f_key = item['filter_key']
4353 f_val = item['filter_value']
4354 if f_key in filter_dict:
4355 # multiple filters on same key
4356 if isinstance(filter_dict[f_key], list):
4357 # prev_val is list, so append new f_val
4358 filter_dict[f_key].append(f_val)
4359 else:
4360 # prev_val is not list,
4361 # so create list with prev_val & f_val
4362 filter_dict[f_key] = [filter_dict[f_key], f_val]
4363 else:
4364 filter_dict[f_key] = f_val
4365 return filter_dict
4366
4367 def validate_subset(self, api_version, subset):
4368 if float(api_version) < MIN_SUPPORTED_POWERFLEX_MANAGER_VERSION and subset and set(subset).issubset(POWERFLEX_MANAGER_GATHER_SUBSET):
4369 self.module.exit_json(msg=UNSUPPORTED_SUBSET_FOR_VERSION, skipped=True)
4370
4371 def perform_module_operation(self):
4372 """ Perform different actions on info_v2 based on user input
4373 in the playbook """
4374
4375 filters = self.module.params['filters']
4376 filter_dict = {}
4377 if filters:
4378 filter_dict = self.get_filters(filters)
4379 LOG.info('filters: %s', filter_dict)
4380
4381 api_version = self.get_api_details()
4382 array_details = self.get_array_details()
4383 subset = self.module.params['gather_subset']
4384 subset_result_filter = {}
4385 subset_result_wo_param = {}
4386 self.validate_subset(api_version, subset)
4387
4388 subset_dict_with_filter = {
4389 "sdc": self.get_sdc_list,
4390 "protection_domain": self.get_pd_list,
4391 "storage_pool": self.get_storage_pool_list,
4392 "vol": self.get_volumes_list,
4393 "snapshot_policy": self.get_snapshot_policy_list,
4394 "device": self.get_devices_list,
4395 "nvme_host": self.get_nvme_host_list,
4396 "sdt": self.get_sdt_list,
4397 }
4398
4399 subset_wo_param = {
4400 "managed_device": self.get_managed_devices_list,
4401 "service_template": self.get_service_templates_list,
4402 "deployment": self.get_deployments_list,
4403 "firmware_repository": self.get_firmware_repository_list
4404 }
4405 if subset:
4406 subset_result_filter = {key: subset_dict_with_filter[key](
4407 filter_dict=filter_dict) for key in subset if key in subset_dict_with_filter}
4408 subset_result_wo_param = {key: subset_wo_param[key](
4409 ) for key in subset if key in subset_wo_param}
4410
4411 self.module.exit_json(
4412 Array_Details=array_details,
4413 API_Version=api_version,
4414 SDCs=subset_result_filter.get("sdc", []),
4415 Storage_Pools=subset_result_filter.get("storage_pool", []),
4416 Volumes=subset_result_filter.get("vol", []),
4417 Snapshot_Policies=subset_result_filter.get("snapshot_policy", []),
4418 Protection_Domains=subset_result_filter.get(
4419 "protection_domain", []),
4420 Devices=subset_result_filter.get("device", []),
4421 SDTs=subset_result_filter.get("sdt", []),
4422 ManagedDevices=subset_result_wo_param.get("managed_device", []),
4423 ServiceTemplates=subset_result_wo_param.get(
4424 "service_template", []),
4425 Deployments=subset_result_wo_param.get("deployment", []),
4426 FirmwareRepository=subset_result_wo_param.get(
4427 "firmware_repository", []),
4428 NVMeHosts=subset_result_filter.get("nvme_host", [])
4429 )
4430
4431
4432 def result_list(entity):
4433 """ Get the name and id associated with the PowerFlex entities """
4434 result = []
4435 if entity:
4436 LOG.info('Successfully listed.')
4437 for item in entity:
4438 if item['name']:
4439 result.append(item)
4440 else:
4441 result.append({"id": item['id']})
4442 return result
4443 else:
4444 return None
4445
4446
4447 def get_powerflex_info_parameters():
4448 """This method provides parameters required for the ansible
4449 info_v2 module on powerflex"""
4450 return dict(
4451 gather_subset=dict(type='list', required=False, elements='str',
4452 choices=['vol', 'storage_pool', 'protection_domain', 'sdc',
4453 'sdt', 'snapshot_policy', 'device', 'nvme_host',
4454 'service_template', 'managed_device', 'deployment', 'firmware_repository']),
4455 filters=dict(type='list', required=False, elements='dict',
4456 options=dict(filter_key=dict(type='str', required=True, no_log=False),
4457 filter_operator=dict(
4458 type='str', required=True,
4459 choices=['equal', 'contains']),
4460 filter_value=dict(type='str', required=True)
4461 )),
4462 sort=dict(type='str'),
4463 limit=dict(type='int', default=50),
4464 offset=dict(type='int', default=0),
4465 include_devices=dict(type='bool', default=True),
4466 include_template=dict(type='bool', default=True),
4467 full=dict(type='bool', default=False),
4468 include_attachments=dict(type='bool', default=True),
4469 include_bundles=dict(type='bool', default=False),
4470 )
4471
4472
4473 def main():
4474 """ Create PowerFlex info_v2 object and perform action on it
4475 based on user input from playbook"""
4476 obj = PowerFlexInfo()
4477 obj.perform_module_operation()
4478
4479
4480 if __name__ == '__main__':
4481 main()