<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: createrole.pl in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659279#M2706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, the role is not 'Datastore.Remove'&amp;nbsp; but 'Datastore.Delete' &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the noise, in the vsphere client you see 'Remove datastore' when editing a role, so I assumed it was 'Datastore.Remove' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 11:50:41 GMT</pubDate>
    <dc:creator>natxoasenjo</dc:creator>
    <dc:date>2015-04-13T11:50:41Z</dc:date>
    <item>
      <title>createrole.pl</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659277#M2704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on the forum I found the createrole.pl script (&lt;A href="https://developercenter.vmware.com/forums?id=3088#245019" title="https://developercenter.vmware.com/forums?id=3088#245019"&gt;https://developercenter.vmware.com/forums?id=3088#245019&lt;/A&gt;) but it does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perl createRole.pl --server esxxxx --username root --password xxxxx --rolename "remove datastores" --privileges "Datastore.browse"&lt;/P&gt;&lt;P&gt;Possible precedence issue with control flow operator at /home/j.asenjo/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/VMware/VICommon.pm line 2141.&lt;/P&gt;&lt;P&gt;Creating new role: "remove datastores" with the following privileges:&lt;/P&gt;&lt;P&gt;Datastore.browse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: &lt;/P&gt;&lt;P&gt;SOAP Fault:&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;Fault string: A specified parameter was not correct. &lt;/P&gt;&lt;P&gt;privIds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 11:02:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659277#M2704</guid>
      <dc:creator>natxoasenjo</dc:creator>
      <dc:date>2015-04-13T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: createrole.pl</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659278#M2705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strangely enough, adding another datastore role works ok:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perl createRole.pl --rolename testrole --privileges "Datastore.Browse" --username root --server esxxxx --password xxxxx&lt;/P&gt;&lt;P&gt;Possible precedence issue with control flow operator at /home/j.asenjo/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/VMware/VICommon.pm line 2141.&lt;/P&gt;&lt;P&gt;Creating new role: "testrole" with the following privileges:&lt;/P&gt;&lt;P&gt;Datastore.Browse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Successfully created new role!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 11:42:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659278#M2705</guid>
      <dc:creator>natxoasenjo</dc:creator>
      <dc:date>2015-04-13T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: createrole.pl</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659279#M2706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, the role is not 'Datastore.Remove'&amp;nbsp; but 'Datastore.Delete' &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the noise, in the vsphere client you see 'Remove datastore' when editing a role, so I assumed it was 'Datastore.Remove' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 11:50:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659279#M2706</guid>
      <dc:creator>natxoasenjo</dc:creator>
      <dc:date>2015-04-13T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: createrole.pl</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659280#M2707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just for completeness sake, if you need to find out what the privileges names are you can do this (after succesfully connecting to an esx host as a user with the administrator role):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Data::Dumper;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $host_view = Vim::find_entity_view(view_type =&amp;gt; 'HostSystem'); &lt;/P&gt;&lt;P&gt;my $content = Vim::get_service_content();&lt;/P&gt;&lt;P&gt;my $authMgr = Vim::get_view(mo_ref =&amp;gt; $content-&amp;gt;authorizationManager);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my $rolelist = $authMgr-&amp;gt;roleList;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print Dumper $rolelist;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might save you some frustration time &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:52:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/createrole-pl/m-p/2659280#M2707</guid>
      <dc:creator>natxoasenjo</dc:creator>
      <dc:date>2015-04-15T09:52:29Z</dc:date>
    </item>
  </channel>
</rss>

