Package com.vmware.spbm.samples
Class CreateVSANProfile
- java.lang.Object
-
- com.vmware.spbm.connection.ConnectedServiceBase
-
- com.vmware.spbm.samples.CreateVSANProfile
-
@Sample(name="createprofile", description="Creates a new storage profile with one rule-set based on vSAN capabilities.") public class CreateVSANProfile extends ConnectedServiceBaseCreateVSANProfile This sample creates a new Storage Profile with one rule-set based on vSAN Capabilities. 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 stripewidth [required] : minimum stripe width of each mirror forceprovision [optional] : if set, the object will be provisioned even if the policy is not satisfiable Command Line: run.bat com.vmware.spbm.samples.CreateVSANProfile --url [webserviceurl] --username [username] --password [password] --profilename [Storage Profile Name] --stripewidth [Stripe Width] --forceprovision
-
-
Constructor Summary
Constructors Constructor Description CreateVSANProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateProfile()voidsetForceProvision(java.lang.Boolean forceProvision)voidsetProfileName(java.lang.String profileName)voidsetStripeWidth(java.lang.Integer stripeWidth)-
Methods inherited from class com.vmware.spbm.connection.ConnectedServiceBase
setConnection, start, stop
-
-
-
-
Method Detail
-
createProfile
@Action public void createProfile() 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.RuntimeFaultFaultMsgcom.vmware.pbm.InvalidArgumentFaultMsgcom.vmware.pbm.PbmDuplicateNameFaultMsgcom.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg
-
setForceProvision
@Option(name="forceprovision", description="If set, the object will be provisioned even if the policy is not satisfiable", required=false, parameter=false) public void setForceProvision(java.lang.Boolean forceProvision)
-
setProfileName
@Option(name="profilename", description="Name of the storage profile", required=true) public void setProfileName(java.lang.String profileName)
-
setStripeWidth
@Option(name="stripewidth", description="Minimum stripe width of each mirror", required=true) public void setStripeWidth(java.lang.Integer stripeWidth)
-
-