<?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 Setting address attributes via API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50216#M1124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the REST API to create address records and adding them to an address group.&amp;nbsp; I would like to keep track of when each address was created, and I noticed that there is an attribute of "time" on both the entry and the elements in the entry for items added in the last commit.&amp;nbsp; But, older items do not seem to have these attributes.&amp;nbsp; Is there a way that I can set them at entry creation time that will stick around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to be able to parse these attributes later and prune old ones after a given amount of time.&amp;nbsp; My current planned work around is to use the description element to hold the creation date, but that will prevent me from using the description element for an actual description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any way for me to permanently set the time attribute on these elements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2012 19:08:27 GMT</pubDate>
    <dc:creator>Dshackelford</dc:creator>
    <dc:date>2012-03-12T19:08:27Z</dc:date>
    <item>
      <title>Setting address attributes via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50216#M1124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the REST API to create address records and adding them to an address group.&amp;nbsp; I would like to keep track of when each address was created, and I noticed that there is an attribute of "time" on both the entry and the elements in the entry for items added in the last commit.&amp;nbsp; But, older items do not seem to have these attributes.&amp;nbsp; Is there a way that I can set them at entry creation time that will stick around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to be able to parse these attributes later and prune old ones after a given amount of time.&amp;nbsp; My current planned work around is to use the description element to hold the creation date, but that will prevent me from using the description element for an actual description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any way for me to permanently set the time attribute on these elements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 19:08:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50216#M1124</guid>
      <dc:creator>Dshackelford</dc:creator>
      <dc:date>2012-03-12T19:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting address attributes via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50217#M1125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding, based on observation, is that when you have&lt;/P&gt;&lt;P&gt;uncommited changes, the candidate configuration will contain the admin&lt;/P&gt;&lt;P&gt;and time attributes to identify configuration elements that have been&lt;/P&gt;&lt;P&gt;modified/added.  So I don't think this is going to provide you with&lt;/P&gt;&lt;P&gt;what you want, and I'm not aware of how to directly obtain the&lt;/P&gt;&lt;P&gt;modify/add time from commited elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from PAN::XAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       DETAILS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       In the candidate configuration when a data element has been modified&lt;/P&gt;&lt;P&gt;       but not commited, it will contain attributes with the time the element&lt;/P&gt;&lt;P&gt;       was modified and the administrator that made the modification.  For&lt;/P&gt;&lt;P&gt;       example, the display-name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         &amp;lt;display-name&amp;gt;ico_1234 l3vsystag1&amp;lt;/display-name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       will appear in this format when it has been modified and not commited:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         &amp;lt;display-name&lt;/P&gt;&lt;P&gt;          admin="admin"&lt;/P&gt;&lt;P&gt;          time="2011/07/11 09:43:19"&amp;gt;ico_1234 l3vsystag1&amp;lt;/display-name&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 01:10:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50217#M1125</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2012-03-13T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting address attributes via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50218#M1126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that is helpful.&amp;nbsp; I will just use the description field, or an external source for cross reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 18:24:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/setting-address-attributes-via-api/m-p/50218#M1126</guid>
      <dc:creator>Dshackelford</dc:creator>
      <dc:date>2012-03-13T18:24:32Z</dc:date>
    </item>
  </channel>
</rss>

