Class FcdInflateDisk


  • @Sample(name="fcd-inflatedisk",
            description="This sample inflates a sparse or thin-provisioned virtual disk up to the full size.")
    public class FcdInflateDisk
    extends ConnectedVimServiceBase
     FcdDelete
    
     This sample inflates a sparse or thin-provisioned virtual disk up to the full size.
    
     Parameters:
     url                    [required] : url of the web service
     username               [required] : username for the authentication
     password               [required] : password for the authentication
     vstorageobjectid       [required] : Uuid of the vstorageobject
     datastorename          [required] : Name of the datastore which contains
                                         the virtual storage object
    
     Command Line:
     Inflate a sparse or thin-provisioned virtual disk up to the full size.
     run.bat com.vmware.vm.FcdInflateDisk --url [webserviceurl]
     --username [username] --password [password]
     --vstorageobjectid [vstorageobjectid] --datastorename [datastorename]
     
    • Constructor Detail

      • FcdInflateDisk

        public FcdInflateDisk()
    • Method Detail

      • setVStorageObjectId

        @Option(name="vstorageobjectid",
                required=true,
                description="Uuid of the vstorageobject.")
        public void setVStorageObjectId​(java.lang.String vStorageObjectId)
        Parameters:
        vStorageObjectId - the vStorageObjectId to set
      • setDatastoreName

        @Option(name="datastorename",
                required=true,
                description="Name of datastore containing the  vstorageobject.")
        public void setDatastoreName​(java.lang.String datastoreName)
        Parameters:
        datastoreName - the datastoreName to set
      • run

        @Action
        public void run()
                 throws com.vmware.vim25.InvalidPropertyFaultMsg,
                        com.vmware.vim25.RuntimeFaultFaultMsg,
                        com.vmware.vim25.FileFaultFaultMsg,
                        com.vmware.vim25.InvalidDatastoreFaultMsg,
                        com.vmware.vim25.InvalidStateFaultMsg,
                        com.vmware.vim25.NotFoundFaultMsg,
                        com.vmware.vim25.TaskInProgressFaultMsg,
                        com.vmware.vim25.InvalidCollectorVersionFaultMsg
        Throws:
        com.vmware.vim25.InvalidPropertyFaultMsg
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.vim25.FileFaultFaultMsg
        com.vmware.vim25.InvalidDatastoreFaultMsg
        com.vmware.vim25.InvalidStateFaultMsg
        com.vmware.vim25.NotFoundFaultMsg
        com.vmware.vim25.TaskInProgressFaultMsg
        com.vmware.vim25.InvalidCollectorVersionFaultMsg