@Sample(name="createprofile",
description="Creates a new storage profile with one rule-set based on vSAN capabilities.")
public class CreateVSANProfile
extends ConnectedServiceBase
CreateVSANProfile 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 and Description |
|---|
CreateVSANProfile() |
| Modifier and Type | Method and Description |
|---|---|
void |
createProfile() |
void |
setForceProvision(java.lang.Boolean forceProvision) |
void |
setProfileName(java.lang.String profileName) |
void |
setStripeWidth(java.lang.Integer stripeWidth) |
setConnection, start, stop@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
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.pbm.InvalidArgumentFaultMsgcom.vmware.pbm.PbmDuplicateNameFaultMsgcom.vmware.pbm.PbmFaultProfileStorageFaultFaultMsg@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)
@Option(name="profilename",
description="Name of the storage profile",
required=true)
public void setProfileName(java.lang.String profileName)
@Option(name="stripewidth",
description="Minimum stripe width of each mirror",
required=true)
public void setStripeWidth(java.lang.Integer stripeWidth)