Class FcdExtend


  • @Sample(name="fcd-extend",
            description="This sample extends a virtual storage object(FCD).")
    public class FcdExtend
    extends ConnectedVimServiceBase
     FcdExtend
    
     This sample extends a virtual storage object capacity
    
     Parameters:
     url                    [required] : url of the web service
     username               [required] : username for the authentication
     password               [required] : password for the authentication
     vStorageObjectId       [required] : Id of the disk
     datastorename          [required] : Name of the datastore
     newCapacityInMB        [required] : The new capacity of the virtual disk in MB.
    
     Command Line:
     Extend the capacity of a virtual disk to the new capacity
     run.bat com.vmware.vm.FcdExtend --url [webserviceurl]
     --username [username] --password [password]
     --vStorageObjectId [vStorageObjectId] --datastorename [datastorename]
     --newcapacityinmb [newcapacityinmb]
     
    • Constructor Detail

      • FcdExtend

        public FcdExtend()
    • 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.")
        public void setDatastoreName​(java.lang.String datastoreName)
        Parameters:
        datastoreName - the datastoreName to set
      • setNewCapacityInMB

        @Option(name="newcapacityinmb",
                required=true,
                description="The new capacity of the virtual disk in MB.")
        public void setNewCapacityInMB​(long newCapacityInMB)
        Parameters:
        newCapacityInMB - the newCapacityInMB to set.
      • run

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