Class 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 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 Detail

      • CreateProfile

        public CreateProfile()
    • 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
      • 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)