vCD Independent Disk - vmware-archive/ansible-module-vcloud-director GitHub Wiki

Independent Disk Example Usage

  1. Disk States

    • Create Disk
    
     - name: create disk
       vcd_disk:
        disk_name: "test_disk"
        description: "Test Disk"
        size: "100"
        vdc: "Test_VDC"
        state: "present"
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • disk_name - (Required) name of the new disk
    • description - (Optional) description of the new disk
    • size - (Required) size of the disk in bytes
    • vdc - (Required) name of the virutal data center
    • bus_type - (Optional) bus type of the disk
    • bus_sub_type - (Optional) bus subtype of the disk
    • storage_profile - (Optional) name of an existing storage profile to be used by the new disk
    • iops - (Optional) iops requirement of the disk
    • state == "present" (Required) to create org

    • Update Disk
    
     - name: update disk
       vcd_disk:
        disk_name: "test_disk"
        new_disk_name: "test_disk_1"
        new_size: "200"
        vdc: "Test_VDC"
        state: "update"
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • disk_name - (Required) name of the existing disk
    • vdc - (Required) name of the virtual data center
    • disk_id - (Optional) id of the existing disk
    • new_disk_name - (Optional) new name of the disk
    • new_size - (Optional) new size of the disk
    • new_description - (Optional) new description of the disk
    • new_storage_profile - (Optional) new storage profile that the disk will be moved to
    • new_iops - (Optional) new iops requirement of the disk
    • state == "update" (Required) to update org

    • Delete Disk
    
     - name: delete disk
       vcd_disk:
        disk_name: "test_disk"
        vdc: "Test_VDC"
        state: "absent"
    
    
    Argument Reference
    • user - (Optional) - vCloud Director user name
    • password - (Optional) - vCloud Director password
    • org - (Optional) - vCloud Director org name to log into
    • host - (Optional) - vCloud Director host name
    • api_version - (Optional) - Pyvcloud API version
    • verify_ssl_certs - (Optional) - true to enforce to verify ssl certificate for each requests else false
    • disk_name - (Required) name of the disk to delete
    • disk_id - (Optional) id of the disk to delete
    • vdc - (Required) name of the virtual datacenter
    • state == "absent" (Required) to create org
⚠️ **GitHub.com Fallback** ⚠️