Class CreateVSANProfile


  • @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 Detail

      • CreateVSANProfile

        public CreateVSANProfile()
    • 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.RuntimeFaultFaultMsg
        com.vmware.pbm.InvalidArgumentFaultMsg
        com.vmware.pbm.PbmDuplicateNameFaultMsg
        com.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)