dellemc.vxrail.dellemc_vxrail_get_disks (2.2.0) — module

Retrieve VxRail Disk Information

| "added in version" 1.5.0 of dellemc.vxrail"

Authors: VxRail Development Team(@VxRailDevTeam) <ansible.team@dell.com>

Install collection

Install with ansible-galaxy collection install dellemc.vxrail:==2.2.0


Add to requirements.yml

  collections:
    - name: dellemc.vxrail
      version: 2.2.0

Description

This module will retrieve the VxRail Disk Information.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Get VxRail Disk Information
    dellemc_vxrail_get_disks:
        vxmip: "{{ vxmip }}"
        vcadmin: "{{ vcadmin }}"
        vcpasswd: "{{ vcpasswd }}"
        disk_sn: "{{ disk_sn }}"
        api_version_number: "{{ api_version_number }}"
        timeout : "{{ timeout }}"

Inputs

    
vxmip:
    description: The IP address of the VxRail Manager System
    required: true
    type: str

disk_sn:
    default: all
    description: Disk serial number to retrieve specific disk information, the default
      value is all.
    required: false
    type: str

timeout:
    default: 60
    description: Time out value for getting disks information, the default value is 60
      seconds
    required: false
    type: int

vcadmin:
    description: Administrative account of the vCenter Server the VxRail Manager is registered
      to
    required: true
    type: str

vcpasswd:
    description: The password for the administrator account provided in vcadmin
    required: true
    type: str

api_version_number:
    description: A specific version number to use for the API call. If not included, will
      use the highest version by default
    required: false
    type: int

Outputs

Disks_Info:
  description: The list of retrieved VxRail Disk Information
  returned: always
  sample: "[\n    {\n        \"id\": \"WLX016PY\",\n        \"sn\": \"WLX016PY\",\n\
    \        \"guid\": \"5000cca0b570ce48\",\n        \"disk_type\": \"SSD\",\n  \
    \      \"protocol\": \"SAS\",\n        \"enclosure\": 0,\n        \"bay\": 1,\n\
    \        \"slot\": 1,\n        \"missing\": false,\n        \"capacity\": \"3.49TB\"\
    \n    },\n    {\n        \"id\": \"WLX015VY\",\n        \"sn\": \"WLX015VY\",\n\
    \        \"guid\": \"5000cca0b570cde0\",\n        \"disk_type\": \"SSD\",\n  \
    \      \"protocol\": \"SAS\",\n        \"enclosure\": 0,\n        \"bay\": 1,\n\
    \        \"slot\": 3,\n        \"missing\": false,\n        \"capacity\": \"3.49TB\"\
    \n    },\n    {\n        \"id\": \"V6X0U8MA\",\n        \"sn\": \"V6X0U8MA\",\n\
    \        \"guid\": \"5000cca0a6723798\",\n        \"disk_type\": \"SSD\",\n  \
    \      \"protocol\": \"SAS\",\n        \"enclosure\": 0,\n        \"bay\": 1,\n\
    \        \"slot\": 0,\n        \"missing\": false,\n        \"capacity\": \"745.21GB\"\
    \n    },\n    {\n        \"id\": \"WLX018RY\",\n        \"sn\": \"WLX018RY\",\n\
    \        \"guid\": \"5000cca0b570cf44\",\n        \"disk_type\": \"SSD\",\n  \
    \      \"protocol\": \"SAS\",\n        \"enclosure\": 0,\n        \"bay\": 1,\n\
    \        \"slot\": 4,\n        \"missing\": false,\n        \"capacity\": \"3.49TB\"\
    \n    }\n]"
  type: dict