Package com.vmware.spbm.samples
Class ViewProfile
- java.lang.Object
-
- com.vmware.spbm.connection.ConnectedServiceBase
-
- com.vmware.spbm.samples.ViewProfile
-
@Sample(name="viewprofile", description="Display the contents of a storage profile.") public class ViewProfile extends ConnectedServiceBaseViewProfile This sample prints the contents of 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.ViewProfile --url [webserviceurl] --username [username] --password [password] --profilename [Storage Profile Name]
-
-
Constructor Summary
Constructors Constructor Description ViewProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetProfileName(java.lang.String profileName)voidviewProfile()-
Methods inherited from class com.vmware.spbm.connection.ConnectedServiceBase
setConnection, start, stop
-
-
-
-
Method Detail
-
setProfileName
@Option(name="profilename", description="Name of the storage profile", required=true) public void setProfileName(java.lang.String profileName)
-
viewProfile
@Action public void viewProfile() throws com.vmware.vim25.RuntimeFaultFaultMsg, com.vmware.pbm.RuntimeFaultFaultMsg, com.vmware.pbm.InvalidArgumentFaultMsg, com.vmware.pbm.PbmDuplicateNameFaultMsg, com.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg, com.vmware.pbm.PbmFaultFaultMsg, com.vmware.vim25.InvalidPropertyFaultMsg- Throws:
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.pbm.InvalidArgumentFaultMsgcom.vmware.pbm.PbmDuplicateNameFaultMsgcom.vmware.pbm.PbmFaultProfileStorageFaultFaultMsgcom.vmware.pbm.PbmFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsg
-
-