@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 ConnectedServiceBase
CreateProfile 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 and Description |
|---|
CreateProfile() |
| Modifier and Type | Method and Description |
|---|---|
void |
createProfile() |
void |
setProfileName(java.lang.String profileName) |
void |
setTagCategoryName(java.lang.String tagCategoryName) |
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="profilename",
description="Name of the storage profile",
required=true)
public void setProfileName(java.lang.String profileName)
@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)