<?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: How to Onboard AWS Access key and secret using RESTAPI script in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392386#M72572</link>
    <description>&lt;P&gt;i used the same github account onboarding utility script and at the time of runing the script i used command &lt;/P&gt;&lt;P&gt;.\Accounts_Onboard_Utility.ps1 -PVWAURL "&lt;A alt="https://pvwaaddress/PasswordVault" href="https://pvwaaddress/PasswordVault" target="_blank"&gt;https://Hostname/PasswordVault&lt;/A&gt;"&amp;nbsp;-CsvPath .\accounts.csv -Create&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the parameter i used for onboard &lt;/P&gt;&lt;P&gt;Parameters for AWS accesskey onboarding :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;safe	platformID	address	username	DeviceType	password	AWSAccessKeyID	AWSAccountID disableAutoMgmt	disableAutoMgmtReason&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 08:09:06 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2020-03-11T08:09:06Z</dc:date>
    <item>
      <title>How to Onboard AWS Access key and secret using RESTAPI script</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392383#M72569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to onboard AWS access key and secret using RESTAPI script  below is the piece of code and the required detail i adding the same code into my script but getting error "Cannot add account; reason: Missing mandatory parameter in Platform AWS_AccessKey_Test. (parameter: AWSAccessKeyID)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - " AWS_AccessKey_Test" is created as platform in PVWA. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think the url which i am using for account addition is something wrong please suggest &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## STEP THROUGH EACH CSV ROW&lt;/P&gt;&lt;P&gt;foreach ($row in $csvRows) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;# DEFINE VARIABLES FOR EACH VALUE - MANDATORY FIELDS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$mandatoryArray = 'Password_name','Safe','Folder','Password','DeviceType','PolicyID','Address','UserName','AWSAccessKeyID','AWSAccountID'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$objectName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.Password_name.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$safe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.Safe.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$safeFolder&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.Folder.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$password&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.Password.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$DeviceType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.DeviceType.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$platformID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.PolicyID.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.Address.trim()&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$username&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.UserName.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$AWSAccessKeyID&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.AWSAccessKeyID.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$AWSAccountID&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;$row.AWSAccountID.trim()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;#**Logging Open row for Account&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$XMLResult = $xmlFile.CreateNode("element","Result",$null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$actName = $xmlFile.CreateElement("AccountName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$actName.InnerText = $ObjectName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$XMLResult.AppendChild($actName) | Out-Null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;#Declaration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$webServiceAddAccount = "https://PVWAURL/PasswordVault/WebServices/PIMServices.svc/Account"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;#Authorization&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$headerParams = @{}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$headerParams.Add("Authorization",$sessionID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccounts = @{}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount = @{}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.accountName = $ObjectName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.safe = $Safe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.password = $Password&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.platformID = $PlatformID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.username = $username&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.address = $address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.AWSAccessKeyID = $AWSAccessKeyID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$newAccount.AWSAccountID = $AWSAccountID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;$properties = @{}&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 14:47:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392383#M72569</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-05T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Onboard AWS Access key and secret using RESTAPI script</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392384#M72570</link>
      <description>&lt;P&gt;Done, i find out the solution myself and its working fine.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 10:47:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392384#M72570</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-09T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Onboard AWS Access key and secret using RESTAPI script</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392385#M72571</link>
      <description>&lt;P&gt;Can you share that here?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 21:03:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392385#M72571</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-09T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Onboard AWS Access key and secret using RESTAPI script</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392386#M72572</link>
      <description>&lt;P&gt;i used the same github account onboarding utility script and at the time of runing the script i used command &lt;/P&gt;&lt;P&gt;.\Accounts_Onboard_Utility.ps1 -PVWAURL "&lt;A alt="https://pvwaaddress/PasswordVault" href="https://pvwaaddress/PasswordVault" target="_blank"&gt;https://Hostname/PasswordVault&lt;/A&gt;"&amp;nbsp;-CsvPath .\accounts.csv -Create&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the parameter i used for onboard &lt;/P&gt;&lt;P&gt;Parameters for AWS accesskey onboarding :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;safe	platformID	address	username	DeviceType	password	AWSAccessKeyID	AWSAccountID disableAutoMgmt	disableAutoMgmtReason&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 08:09:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-onboard-aws-access-key-and-secret-using-restapi-script/m-p/1392386#M72572</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-11T08:09:06Z</dc:date>
    </item>
  </channel>
</rss>

