Package com.vmware.spbm.samples
Class CreateProfile
- java.lang.Object
-
- com.vmware.spbm.connection.ConnectedServiceBase
-
- com.vmware.spbm.samples.CreateProfile
-
@Sample(name="createprofile", description="Creates a new storage tag-based storage profile with one rule-set. The rule-set contains a rule based on tags.") public class CreateProfile extends ConnectedServiceBaseCreateProfile This sample creates a new Tag-Based Storage Profile with one rule-set. The rule-set contains a rule based on tags from a tag-category. 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 tag_category [required] : Category Name of the tags. All tags in this category are added to the rule. Command Line: run.bat com.vmware.spbm.samples.CreateProfile --url [webserviceurl] --username [username] --password [password] --profilename [Storage Profile Name] --tag_category [Category Name]
-
-
Constructor Summary
Constructors Constructor Description CreateProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateProfile()voidsetProfileName(java.lang.String profileName)voidsetTagCategoryName(java.lang.String tagCategoryName)-
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
-
setProfileName
@Option(name="profilename", description="Name of the storage profile", required=true) public void setProfileName(java.lang.String profileName)
-
setTagCategoryName
@Option(name="tag_category", description="Category Name of the tags. All tags in this category are added to the rule.", required=true) public void setTagCategoryName(java.lang.String tagCategoryName)
-
-