dellemc.unity.info 模块 – 收集有关 Unity 的信息

注意

此模块是 dellemc.unity 集合(版本 2.0.0)的一部分。

如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install dellemc.unity。您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。

要在 playbook 中使用它,请指定:dellemc.unity.info

dellemc.unity 1.1.0 中的新功能

概要

  • 收集有关 Unity 存储系统的信息包括获取 Unity 阵列的详细信息、获取 Unity 阵列中的主机列表、获取 Unity 阵列中的 FC 启动器列表、获取 Unity 阵列中的 iSCSI 启动器列表、获取 Unity 阵列中的一致性组列表、获取 Unity 阵列中的存储池列表、获取 Unity 阵列中的卷列表、获取 Unity 阵列中的快照计划列表、获取 Unity 阵列中的 NAS 服务器列表、获取 Unity 阵列中的文件系统列表、获取 Unity 阵列中的快照列表、获取 Unity 阵列中的 SMB 共享列表、获取 Unity 阵列中的 NFS 导出列表、获取 Unity 阵列中的用户配额列表、获取 Unity 阵列中的配额树列表、获取 Unity 阵列中的 NFS 服务器列表、获取 Unity 阵列中的 CIFS 服务器列表。获取 Unity 阵列中的以太网端口列表。获取 Unity 阵列中使用的文件接口列表。获取 Unity 阵列中的复制会话列表。

要求

在执行此模块的主机上需要以下要求。

  • Dell Unity 存储设备版本 5.1 或更高版本。

  • Ansible-core 2.14 或更高版本。

  • Python 3.9、3.10 或 3.11。

  • Storops Python SDK 1.2.11。

参数

参数

注释

gather_subset

列表 / elements=string

用于指定需要信息的 Unity 存储系统实体的字符串变量列表。

选择

  • “host”

  • “fc_initiator”

  • “iscsi_initiator”

  • “cg”

  • “storage_pool”

  • “vol”

  • “snapshot_schedule”

  • “nas_server”

  • “file_system”

  • “snapshot”

  • “nfs_export”

  • “smb_share”

  • “user_quota”

  • “tree_quota”

  • “disk_group”

  • “nfs_server”

  • “cifs_server”

  • “ethernet_port”

  • “file_interface”

  • “replication_session”

password

字符串 / 必需

Unity 管理服务器的密码。

port

整数

与 Unity 管理服务器通信的端口号。

默认值: 443

unispherehost

字符串 / 必需

Unity 管理服务器的 IP 或 FQDN。

username

字符串 / 必需

Unity 管理服务器的用户名。

validate_certs

别名:verifycert

布尔值

布尔变量,用于指定是否验证 SSL 证书。

true - 表示应验证 SSL 证书。

false - 表示不应验证 SSL 证书。

选择

  • false

  • true ← (默认值)

注释

注意

  • 支持 check_mode

  • 此集合中名为“dellemc.unity”的模块旨在支持 Dell Unity 存储平台。

示例

- name: Get detailed list of Unity entities
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - host
      - fc_initiator
      - iscsi_initiator
      - cg
      - storage_pool
      - vol
      - snapshot_schedule
      - nas_server
      - file_system
      - snapshot
      - nfs_export
      - smb_share
      - user_quota
      - tree_quota
      - disk_group
      - nfs_server
      - cifs_server
      - ethernet_port
      - file_interface
      - replication_session

- name: Get information of Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"

- name: Get list of hosts on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - host

- name: Get list of FC initiators on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - fc_initiator

- name: Get list of ISCSI initiators on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - iscsi_initiator

- name: Get list of consistency groups on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - cg

- name: Get list of storage pools on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - storage_pool

- name: Get list of volumes on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - vol

- name: Get list of snapshot schedules on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - snapshot_schedule

- name: Get list of NAS Servers on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - nas_server

- name: Get list of File Systems on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - file_system

- name: Get list of Snapshots on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - snapshot

- name: Get list of NFS exports on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - nfs_export

- name: Get list of SMB shares on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - smb_share

- name: Get list of user quotas on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - user_quota

- name: Get list of quota trees on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - tree_quota

- name: Get list of disk groups on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - disk_group

- name: Get list of NFS Servers on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - nfs_server

- name: Get list of CIFS Servers on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - cifs_server

- name: Get list of ethernet ports on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - ethernet_port

- name: Get list of file interfaces on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - file_interface

- name: Get list of replication sessions on Unity array
  dellemc.unity.info:
    unispherehost: "{{unispherehost}}"
    username: "{{username}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    gather_subset:
      - replication_session

返回值

常见的返回值记录在 此处,以下是此模块特有的字段

描述

Array_Details

字典

Unity 阵列的详细信息。

返回值:始终

示例: {"api_version": "12.0", "earliest_api_version": "4.0", "existed": true, "hash": 8766644083532, "id": "0", "model": "Unity 480", "name": "APM00213404195", "software_version": "5.2.1"}

api_version

字符串

Unity 阵列的当前 API 版本。

返回值:成功

earliest_api_version

字符串

Unity 阵列的最早 API 版本。

返回值:成功

model

字符串

Unity 阵列的型号。

返回值:成功

name

字符串

Unity 阵列的名称。

返回值:成功

software_version

字符串

Unity 阵列的软件版本。

返回值:成功

CIFS_Servers

列表 / elements=string

CIFS 服务器的详细信息。

返回值:当 CIFS 服务器存在时。

示例: [{"id": "cifs_3", "name": "test_cifs_1"}, {"id": "cifs_4", "name": "test_cifs_2"}, {"id": "cifs_9", "name": "test_cifs_3"}]

id

字符串

CIFS 服务器的 ID。

返回值:成功

name

字符串

CIFS 服务器的名称。

返回值:成功

一致性组

列表 / elements=string

一致性组的详细信息。

返回: 当一致性组存在时。

示例: [{"advanced_dedup_status": "DedupStatusEnum.DISABLED", "block_host_access": {"UnityBlockHostAccessList": [{ "UnityBlockHostAccess": {"hash": 8745385821206}}, {"UnityBlockHostAccess": {"hash": 8745386530115}}, {"UnityBlockHostAccess": {"hash": 8745386530124}}]}, "data_reduction_percent": 0, "data_reduction_ratio": 1.0, "data_reduction_size_saved": 0, "data_reduction_status": "DataReductionStatusEnum.DISABLED", "datastores": null, "dedup_status": null, "description": "CG has created with all parametres.", "esx_filesystem_block_size": null, "esx_filesystem_major_version": null, "existed": true, "filesystem": null, "hash": 8745385801328, "health": {"UnityHealth": {"hash": 8745386647098}}, "host_v_vol_datastore": null, "id": "res_93", "is_replication_destination": false, "is_snap_schedule_paused": false, "luns": {"UnityLunList": [{ "UnityLun": {"hash": 8745389830024, "id": "sv_64"}}, {"UnityLun": {"hash": 8745386526751, "id": "sv_63"}}]}, "metadata_size": 8858370048, "metadata_size_allocated": 7516192768, "name": "CG1_Ansible_Test_SS", "per_tier_size_used": [11811160064, 0, 0], "pools": {"UnityPoolList": [{ "UnityPool": {"hash": 8745386552375, "id": "pool_3"}}]}, "relocation_policy": "TieringPolicyEnum.AUTOTIER", "replication_type": "ReplicationTypeEnum.NONE", "size_allocated": 99418112, "size_total": 268435456000, "size_used": null, "snap_count": 1, "snap_schedule": {"UnitySnapSchedule": {"hash": 8745386550224, "id": "snapSch_66"}}, "snaps_size_allocated": 8888320, "snaps_size_total": 108675072, "thin_status": "ThinStatusEnum.TRUE", "type": "StorageResourceTypeEnum.CONSISTENCY_GROUP", "virtual_volumes": null, "vmware_uuid": null}]

id

字符串

一致性组的 ID。

返回值:成功

name

字符串

一致性组的名称。

返回值:成功

磁盘组

列表 / elements=string

磁盘组的详细信息。

返回: 当磁盘组存在时。

示例: [{"id": "dg_3", "name": "400 GB SAS Flash 2", "tier_type": "EXTREME_PERFORMANCE"}, {"id": "dg_16", "name": "600 GB SAS 10K", "tier_type": "PERFORMANCE"}]

id

字符串

磁盘组的 ID。

返回值:成功

name

字符串

磁盘组的名称。

返回值:成功

tier_type

字符串

磁盘组的层类型。

返回值:成功

以太网端口

列表 / elements=string

以太网端口的详细信息。

返回: 当以太网端口存在时。

示例: [{"id": "spa_mgmt", "name": "SP A Management Port"}, {"id": "spa_ocp_0_eth0", "name": "SP A 4-Port Card Ethernet Port 0"}, {"id": "spa_ocp_0_eth1", "name": "SP A 4-Port Card Ethernet Port 1"}]

id

字符串

以太网端口的 ID。

返回值:成功

name

字符串

以太网端口的名称。

返回值:成功

FC 发起程序

列表 / elements=string

FC 发起程序的详细信息。

返回: 当 FC 发起程序存在时。

示例: [{"WWN": "20:00:00:0E:1E:E9:B8:FC:21:00:00:0E:1E:E9:B8:FC", "id": "HostInitiator_3"}, {"WWN": "20:00:00:0E:1E:E9:B8:F7:21:00:00:0E:1E:E9:B8:F7", "id": "HostInitiator_4"}]

id

字符串

FC 发起程序的 ID。

返回值:成功

WWN

字符串

FC 发起程序的 WWN。

返回值:成功

文件接口

列表 / elements=string

文件接口的详细信息。

返回: 当文件接口存在时。

示例: [{"id": "if_3", "ip_address": "xx.xx.xx.xx", "name": "1_APMXXXXXXXXXX"}, {"id": "if_3", "ip_address": "xx.xx.xx.xx", "name": "2_APMXXXXXXXXXX"}, {"id": "if_3", "ip_address": "xx.xx.xx.xx", "name": "3_APMXXXXXXXXXX"}]

id

字符串

文件接口的 ID。

返回值:成功

ip_address

字符串

文件接口的 IP 地址。

返回值:成功

name

字符串

文件接口的名称。

返回值:成功

文件系统

列表 / elements=string

文件系统的详细信息。

返回: 当文件系统存在时。

示例: [{"access_policy": "AccessPolicyEnum.UNIX", "cifs_notify_on_change_dir_depth": 512, "cifs_share": null, "data_reduction_percent": 0, "data_reduction_ratio": 1.0, "data_reduction_size_saved": 0, "description": "", "existed": true, "folder_rename_policy": "FSRenamePolicyEnum.SMB_RENAME_FORBIDDEN", "format": "FSFormatEnum.UFS64", "hash": 8786518053735, "health": {"UnityHealth": {"hash": 8786518049091}}, "host_io_size": "HostIOSizeEnum.GENERAL_8K", "id": "fs_12", "is_advanced_dedup_enabled": false, "is_cifs_notify_on_access_enabled": false, "is_cifs_notify_on_write_enabled": false, "is_cifs_op_locks_enabled": true, "is_cifs_sync_writes_enabled": false, "is_data_reduction_enabled": false, "is_read_only": false, "is_smbca": false, "is_thin_enabled": true, "locking_policy": "FSLockingPolicyEnum.MANDATORY", "metadata_size": 4294967296, "metadata_size_allocated": 3758096384, "min_size_allocated": 0, "name": "vro-daniel-test", "nas_server": {"UnityNasServer": {"hash": 8786517296113, "id": "nas_1"}}, "nfs_share": null, "per_tier_size_used": [6442450944, 0, 0], "pool": {"UnityPool": {"hash": 8786518259493, "id": "pool_3"}}, "pool_full_policy": "ResourcePoolFullPolicyEnum.FAIL_WRITES", "size_allocated": 283148288, "size_allocated_total": 4041244672, "size_preallocated": 2401206272, "size_total": 107374182400, "size_used": 1620312064, "snap_count": 0, "snaps_size": 0, "snaps_size_allocated": 0, "storage_resource": {"UnityStorageResource": {"hash": 8786518044167, "id": "res_20"}}, "supported_protocols": "FSSupportedProtocolEnum.NFS", "tiering_policy": "TieringPolicyEnum.AUTOTIER_HIGH", "type": "FilesystemTypeEnum.FILESYSTEM"}]

id

字符串

文件系统的 ID。

返回值:成功

name

字符串

文件系统的名称。

返回值:成功

主机

列表 / elements=string

主机的详细信息。

返回: 当主机存在时。

示例: [{"auto_manage_type": "HostManageEnum.UNKNOWN", "datastores": null, "description": "", "existed": true, "fc_host_initiators": null, "hash": 8762200072289, "health": {"UnityHealth": {"hash": 8762200072352}}, "host_container": null, "host_ip_ports": {"UnityHostIpPortList": [{ "UnityHostIpPort": {"hash": 8762200072361}}]}, "host_luns": null, "host_polled_uuid": null, "host_pushed_uuid": null, "host_uuid": null, "host_v_vol_datastore": null, "id": "Host_2191", "iscsi_host_initiators": null, "last_poll_time": null, "name": "10.225.2.153", "os_type": "Linux", "registration_type": null, "storage_resources": null, "tenant": null, "type": "HostTypeEnum.HOST_MANUAL", "vms": null}]

id

字符串

主机的 ID。

返回值:成功

name

字符串

主机的名称。

返回值:成功

ISCSI 发起程序

列表 / elements=string

ISCSI 发起程序的详细信息。

返回: 当 ISCSI 发起程序存在时。

示例: [{"IQN": "iqn.1994-05.com.redhat:634d768090f", "id": "HostInitiator_1"}, {"IQN": "iqn.1994-05.com.redhat:2835ba62cc6d", "id": "HostInitiator_2"}]

id

字符串

ISCSI 发起程序的 ID。

返回值:成功

IQN

字符串

ISCSI 发起程序的 IQN。

返回值:成功

NAS 服务器

列表 / elements=string

NAS 服务器的详细信息。

返回: 当 NAS 服务器存在时。

示例: [{"allow_unmapped_user": null, "cifs_server": null, "current_sp": {"UnityStorageProcessor": {"hash": 8747629920422, "id": "spb"}}, "current_unix_directory_service": "NasServerUnixDirectoryServiceEnum.NONE", "default_unix_user": null, "default_windows_user": null, "existed": true, "file_dns_server": null, "file_interface": {"UnityFileInterfaceList": [{"UnityFileInterface": {"hash": 8747626606870, "id": "if_6"}}]}, "filesystems": {"UnityFileSystemList": [{"UnityFileSystem": {"hash": 8747625901355, "id": "fs_6892"}}]}, "hash": 8747625900370, "health": {"UnityHealth": {"hash": 8747625900493}}, "home_sp": {"UnityStorageProcessor": {"hash": 8747625877420, "id": "spb"}}, "id": "nas_1", "is_backup_only": false, "is_multi_protocol_enabled": false, "is_packet_reflect_enabled": false, "is_replication_destination": false, "is_replication_enabled": false, "is_windows_to_unix_username_mapping_enabled": null, "name": "lglad072", "pool": {"UnityPool": {"hash": 8747629920479, "id": "pool_3"}}, "preferred_interface_settings": {"UnityPreferredInterfaceSettings": {"hash": 8747626625166, "id": "preferred_if_1"}}, "replication_type": "ReplicationTypeEnum.NONE", "size_allocated": 2952790016, "tenant": null, "virus_checker": {"UnityVirusChecker": {"hash": 8747626604144, "id": "cava_1"}}}]

id

字符串

NAS 服务器的 ID。

返回值:成功

name

字符串

NAS 服务器的名称。

返回值:成功

NFS_Exports

列表 / elements=string

NFS 导出项的详细信息。

返回: 当 NFS 导出项存在时。

示例: [{"anonymous_gid": 4294967294, "anonymous_uid": 4294967294, "creation_time": "2021-12-01 06:21:48.381000+00:00", "default_access": "NFSShareDefaultAccessEnum.NO_ACCESS", "description": "", "existed": true, "export_option": 1, "export_paths": ["10.230.24.20:/zack_nfs_01"], "filesystem": {"UnityFileSystem": {"hash": 8747298565566, "id": "fs_67"}}, "hash": 8747298565548, "host_accesses": null, "id": "NFSShare_29", "is_read_only": null, "min_security": "NFSShareSecurityEnum.SYS", "modification_time": "2022-04-01 11:44:17.553000+00:00", "name": "zack_nfs_01", "nfs_owner_username": null, "no_access_hosts": null, "no_access_hosts_string": "10.226.198.207,10.226.198.25,10.226.198.44,10.226.198.85,Host1, Host2,Host4,Host5,Host6,10.10.0.0/255.255.240.0", "path": "/", "read_only_hosts": null, "read_only_hosts_string": "", "read_only_root_access_hosts": null, "read_only_root_hosts_string": "", "read_write_hosts": null, "read_write_hosts_string": "", "read_write_root_hosts_string": "", "role": "NFSShareRoleEnum.PRODUCTION", "root_access_hosts": null, "snap": null, "type": "NFSTypeEnum.NFS_SHARE"}]

id

字符串

NFS 导出项的 ID。

返回值:成功

name

字符串

NFS 导出项的名称。

返回值:成功

NFS_Servers

列表 / elements=string

NFS 服务器的详细信息。

返回: 当 NFS 服务器存在时。

示例: [{"id": "nfs_3"}, {"id": "nfs_4"}, {"id": "nfs_9"}]

id

字符串

NFS 服务器的 ID。

返回值:成功

Replication_sessions

列表 / elements=string

复制会话的详细信息。

返回: 当复制会话存在时。

示例: [{"current_transfer_est_remain_time": 0, "daily_snap_replication_policy": null, "dst_resource_id": "nas_8", "dst_spa_interface": {"UnityRemoteInterface": {"hash": 8771253398547, "id": "APM00213404195:if_181"}}, "dst_spb_interface": {"UnityRemoteInterface": {"hash": 8771253424144, "id": "APM00213404195:if_180"}}, "dst_status": "ReplicationSessionStatusEnum.OK", "existed": true, "hash": 8771259012271, "health": {"UnityHealth": {"hash": 8771253424168}}, "hourly_snap_replication_policy": null, "id": "103079215114_APM00213404195_0000_103079215274_APM00213404194_0000", "last_sync_time": "2023-04-18 10:35:25+00:00", "local_role": "ReplicationSessionReplicationRoleEnum.DESTINATION", "max_time_out_of_sync": 0, "members": null, "name": "rep_sess_nas", "network_status": "ReplicationSessionNetworkStatusEnum.OK", "remote_system": {"UnityRemoteSystem": {"hash": 8771253380142}}, "replication_resource_type": "ReplicationEndpointResourceTypeEnum.NASSERVER", "src_resource_id": "nas_213", "src_spa_interface": {"UnityRemoteInterface": {"hash": 8771253475010, "id": "APM00213404194:if_195"}}, "src_spb_interface": {"UnityRemoteInterface": {"hash": 8771253374169, "id": "APM00213404194:if_194"}}, "src_status": "ReplicationSessionStatusEnum.OK", "status": "ReplicationOpStatusEnum.ACTIVE", "sync_progress": 0, "sync_state": "ReplicationSessionSyncStateEnum.IN_SYNC"}]

id

字符串

复制会话的 ID。

返回值:成功

name

字符串

复制会话的名称。

返回值:成功

SMB_Shares

列表 / elements=string

SMB 共享的详细信息。

返回: 当 SMB 共享存在时。

示例: [{"creation_time": "2022-03-17 11:56:54.867000+00:00", "description": "", "existed": true, "export_paths": ["\\\\multi-prot-pie.extreme1.com\\multi-prot-hui", "\\\\10.230.24.26\\multi-prot-hui"], "filesystem": {"UnityFileSystem": {"hash": 8741295638110, "id": "fs_140"}}, "hash": 8741295638227, "id": "SMBShare_20", "is_abe_enabled": false, "is_ace_enabled": false, "is_branch_cache_enabled": false, "is_continuous_availability_enabled": false, "is_dfs_enabled": false, "is_encryption_enabled": false, "is_read_only": null, "modified_time": "2022-03-17 11:56:54.867000+00:00", "name": "multi-prot-hui", "offline_availability": "CifsShareOfflineAvailabilityEnum.NONE", "path": "/", "snap": null, "type": "CIFSTypeEnum.CIFS_SHARE", "umask": "022"}]

id

字符串

SMB 共享的 ID。

返回值:成功

name

字符串

SMB 共享的名称。

返回值:成功

Snapshot_Schedules

列表 / elements=string

快照计划的详细信息。

返回: 当快照计划存在时。

示例: [{"existed": true, "hash": 8775599492651, "id": "snapSch_1", "is_default": true, "is_modified": null, "is_sync_replicated": false, "luns": null, "modification_time": "2021-08-18 19:10:33.774000+00:00", "name": "CEM_DEFAULT_SCHEDULE_DEFAULT_PROTECTION", "rules": {"UnitySnapScheduleRuleList": [{"UnitySnapScheduleRule": {"hash": 8775599498593}}]}, "storage_resources": {"UnityStorageResourceList": [{"UnityStorageResource": {"hash": 8775599711597, "id": "res_88"}}, {"UnityStorageResource": {"hash": 8775599711528, "id": "res_3099"}}]}, "version": "ScheduleVersionEnum.LEGACY"}]

id

字符串

快照计划的 ID。

返回值:成功

name

字符串

快照计划的名称。

返回值:成功

Snapshots

列表 / elements=string

快照的详细信息。

返回: 当快照存在时。

示例: [{"access_type": "FilesystemSnapAccessTypeEnum.CHECKPOINT", "attached_wwn": null, "creation_time": "2022-04-06 11:19:26.818000+00:00", "creator_schedule": null, "creator_type": "SnapCreatorTypeEnum.REP_V2", "creator_user": null, "description": "", "existed": true, "expiration_time": null, "hash": 8739100256648, "host_access": null, "id": "38654716464", "io_limit_policy": null, "is_auto_delete": false, "is_modifiable": false, "is_modified": false, "is_read_only": true, "is_system_snap": true, "last_writable_time": null, "lun": {"UnityLun": {"hash": 8739100148962, "id": "sv_301"}}, "name": "42949677504_APM00213404195_0000.ckpt000_9508038064690266.2_238", "parent_snap": null, "size": 3221225472, "snap_group": null, "state": "SnapStateEnum.READY", "storage_resource": {"UnityStorageResource": {"hash": 8739100173002, "id": "sv_301"}}}]

id

字符串

快照的 ID。

返回值:成功

name

字符串

快照的名称。

返回值:成功

存储池

列表 / elements=string

存储池的详细信息。

返回: 当存储池存在时。

示例: [{"alert_threshold": 70, "creation_time": "2021-10-18 12:45:12+00:00", "description": "", "existed": true, "harvest_state": "UsageHarvestStateEnum.PAUSED_COULD_NOT_REACH_HWM", "hash": 8741501012399, "health": {"UnityHealth": {"hash": 8741501012363}}, "id": "pool_2", "is_all_flash": false, "is_empty": false, "is_fast_cache_enabled": false, "is_harvest_enabled": true, "is_snap_harvest_enabled": false, "metadata_size_subscribed": 312458870784, "metadata_size_used": 244544700416, "name": "fastVP_pool", "object_id": 12884901891, "pool_fast_vp": {"UnityPoolFastVp": {"hash": 8741501228023}}, "pool_space_harvest_high_threshold": 95.0, "pool_space_harvest_low_threshold": 85.0, "pool_type": "StoragePoolTypeEnum.TRADITIONAL", "raid_type": "RaidTypeEnum.RAID5", "rebalance_progress": null, "size_free": 2709855928320, "size_subscribed": 2499805044736, "size_total": 3291018690560, "size_used": 455513956352, "snap_size_subscribed": 139720515584, "snap_size_used": 66002944, "snap_space_harvest_high_threshold": 25.0, "snap_space_harvest_low_threshold": 20.0, "tiers": {"UnityPoolTierList": [{"UnityPoolTier": {"hash": 8741500996410}}, {"UnityPoolTier": {"hash": 8741501009430}}, {"UnityPoolTier": {"hash": 8741501009508}}]}}]

id

字符串

存储池的 ID。

返回值:成功

name

字符串

存储池的名称。

返回值:成功

树配额

列表 / elements=string

配额树的详细信息。

返回: 当配额树存在时。

示例: [{"id": "treequota_171798709589_1", "path": "/vro-ui-fs-rkKfimmN"}, {"id": "treequota_171798709590_1", "path": "/vro-ui-fs-mGYXAMqk"}]

id

字符串

配额树的 ID。

返回值:成功

路径

字符串

配额树的路径。

返回值:成功

用户配额

列表 / elements=string

用户配额的详细信息。

返回: 当用户配额存在时。

示例: [{"id": "userquota_171798694698_0_60000", "uid": 60000}, {"id": "userquota_171798694939_0_5001", "uid": 5001}]

id

字符串

用户配额的 ID。

返回值:成功

uid

字符串

用户配额的 UID。

返回值:成功

列表 / elements=string

卷的详细信息。

返回: 当卷存在时。

示例: [{"current_node": "NodeEnum.SPB", "data_reduction_percent": 0, "data_reduction_ratio": 1.0, "data_reduction_size_saved": 0, "default_node": "NodeEnum.SPB", "description": null, "effective_io_limit_max_iops": null, "effective_io_limit_max_kbps": null, "existed": true, "family_base_lun": {"UnityLun": {"hash": 8774260820794, "id": "sv_27"}}, "family_clone_count": 0, "hash": 8774260854260, "health": {"UnityHealth": {"hash": 8774260812499}}, "host_access": {"UnityBlockHostAccessList": [{"UnityBlockHostAccess": {"hash": 8774260826387}}]}, "id": "sv_27", "io_limit_policy": null, "is_advanced_dedup_enabled": false, "is_compression_enabled": null, "is_data_reduction_enabled": false, "is_replication_destination": false, "is_snap_schedule_paused": false, "is_thin_clone": false, "is_thin_enabled": false, "metadata_size": 4294967296, "metadata_size_allocated": 4026531840, "name": "VSI-UNITY-test-task", "per_tier_size_used": [111400714240, 0, 0], "pool": {"UnityPool": {"hash": 8774260811427}}, "size_allocated": 107374182400, "size_total": 107374182400, "size_used": null, "snap_count": 0, "snap_schedule": null, "snap_wwn": "60:06:01:60:5C:F0:50:00:94:3E:91:4D:51:5A:4F:97", "snaps_size": 0, "snaps_size_allocated": 0, "storage_resource": {"UnityStorageResource": {"hash": 8774267822228}}, "tiering_policy": "TieringPolicyEnum.AUTOTIER_HIGH", "type": "LUNTypeEnum.VMWARE_ISCSI", "wwn": "60:06:01:60:5C:F0:50:00:00:B5:95:61:2E:34:DB:B2"}]

id

字符串

卷的 ID。

返回值:成功

name

字符串

卷的名称。

返回值:成功

作者

  • Rajshree Khare (@kharer5)

  • Akash Shendge (@shenda1)

  • Meenakshi Dembi (@dembim)