Class DeleteProfile


  • @Sample(name="deleteprofile",
            description="Deletes a specified storage profile.")
    public class DeleteProfile
    extends ConnectedServiceBase
     DeleteProfile
    
     This sample deletes a Storage Profile.
    
     Parameters:
     url              [required] : url of the web service
     username         [required] : username for the authentication
     password         [required] : password for the authentication
     profilename     [required] : Name of the storage profile
    
     Command Line:
     run.bat com.vmware.spbm.samples.DeleteProfile --url [webserviceurl]
     --username [username] --password [password]
     --profilename [Storage Profile Name]
     
    • Constructor Detail

      • DeleteProfile

        public DeleteProfile()
    • Method Detail

      • deleteProfile

        @Action
        public void deleteProfile()
                           throws com.vmware.vim25.RuntimeFaultFaultMsg,
                                  com.vmware.pbm.RuntimeFaultFaultMsg,
                                  com.vmware.pbm.InvalidArgumentFaultMsg,
                                  com.vmware.pbm.PbmDuplicateNameFaultMsg,
                                  com.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg
        Throws:
        com.vmware.vim25.RuntimeFaultFaultMsg
        com.vmware.pbm.InvalidArgumentFaultMsg
        com.vmware.pbm.PbmDuplicateNameFaultMsg
        com.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg
      • setProfileName

        @Option(name="profilename",
                description="Name of the storage profile",
                required=true)
        public void setProfileName​(java.lang.String profileName)