<?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 OV SPT sync in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/ov-spt-sync/m-p/7252994#M10369</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are planning to migrate/synchronize Server Profile Templates (SPTs) from a source OneView instance to a separate destination OneView instance. We are developing a &lt;STRONG&gt;Python script&lt;/STRONG&gt; that interacts with the &lt;STRONG&gt;REST API&lt;/STRONG&gt; to automate this process.&lt;/P&gt;&lt;P&gt;Our core challenge is correctly mapping the resource dependencies (Enclosure Groups, Server Hardware Types, Networks, etc.) from the source SPT to the equivalent resources in the destination instance.&lt;/P&gt;&lt;P&gt;When we GET a source SPT via the API, its configuration contains URIs that are specific to the source instance (e.g., serverHardwareTypeUri, enclosureGroupUri, networkUri). We need to replace these with the correct URIs from the destination instance when creating the new SPT&lt;/P&gt;&lt;P&gt;To confirm our understanding of the correct API procedure, we have two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;When creating a new SPT on the destination instance via the API (POST /rest/server-profile-templates), is it correct that all dependent resources (like the Server Hardware Type, Enclosure Group, and any specified networks) &lt;STRONG&gt;must already exist&lt;/STRONG&gt; on the destination?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When defining these dependencies in the JSON request body for the POST, can we reference them &lt;STRONG&gt;by their name&lt;/STRONG&gt; (e.g., "serverHardwareTypeName": "SY 480 Gen10") and let the OneView API resolve the correct destination URI internally? Or are we required to &lt;STRONG&gt;first manually look up the destination URI for each dependency in our script&lt;/STRONG&gt; and then provide it in the request (e.g., "serverHardwareTypeUri": "/rest/server-hardware-types/xyz-...")?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Regarding Ongoing Synchronization:&lt;/STRONG&gt; After the initial migration, we will need to keep the templates synchronized. What is the officially recommended method to &lt;STRONG&gt;uniquely identify and idempotently update&lt;/STRONG&gt; an SPT? Is relying on the name sufficient for updates, or do you recommend a different approach (like using custom attributes as a unique key) to prevent issues if resource names are not unique across our organization?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 04:42:23 GMT</pubDate>
    <dc:creator>RaviAnushwar</dc:creator>
    <dc:date>2025-07-23T04:42:23Z</dc:date>
    <item>
      <title>OV SPT sync</title>
      <link>https://community.hpe.com/t5/hpe-oneview/ov-spt-sync/m-p/7252994#M10369</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are planning to migrate/synchronize Server Profile Templates (SPTs) from a source OneView instance to a separate destination OneView instance. We are developing a &lt;STRONG&gt;Python script&lt;/STRONG&gt; that interacts with the &lt;STRONG&gt;REST API&lt;/STRONG&gt; to automate this process.&lt;/P&gt;&lt;P&gt;Our core challenge is correctly mapping the resource dependencies (Enclosure Groups, Server Hardware Types, Networks, etc.) from the source SPT to the equivalent resources in the destination instance.&lt;/P&gt;&lt;P&gt;When we GET a source SPT via the API, its configuration contains URIs that are specific to the source instance (e.g., serverHardwareTypeUri, enclosureGroupUri, networkUri). We need to replace these with the correct URIs from the destination instance when creating the new SPT&lt;/P&gt;&lt;P&gt;To confirm our understanding of the correct API procedure, we have two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;When creating a new SPT on the destination instance via the API (POST /rest/server-profile-templates), is it correct that all dependent resources (like the Server Hardware Type, Enclosure Group, and any specified networks) &lt;STRONG&gt;must already exist&lt;/STRONG&gt; on the destination?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When defining these dependencies in the JSON request body for the POST, can we reference them &lt;STRONG&gt;by their name&lt;/STRONG&gt; (e.g., "serverHardwareTypeName": "SY 480 Gen10") and let the OneView API resolve the correct destination URI internally? Or are we required to &lt;STRONG&gt;first manually look up the destination URI for each dependency in our script&lt;/STRONG&gt; and then provide it in the request (e.g., "serverHardwareTypeUri": "/rest/server-hardware-types/xyz-...")?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Regarding Ongoing Synchronization:&lt;/STRONG&gt; After the initial migration, we will need to keep the templates synchronized. What is the officially recommended method to &lt;STRONG&gt;uniquely identify and idempotently update&lt;/STRONG&gt; an SPT? Is relying on the name sufficient for updates, or do you recommend a different approach (like using custom attributes as a unique key) to prevent issues if resource names are not unique across our organization?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 04:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/ov-spt-sync/m-p/7252994#M10369</guid>
      <dc:creator>RaviAnushwar</dc:creator>
      <dc:date>2025-07-23T04:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: OV SPT sync</title>
      <link>https://community.hpe.com/t5/hpe-oneview/ov-spt-sync/m-p/7252995#M10370</link>
      <description>&lt;P&gt;I will confess that the complete answer to your inquiry is complex and I am unprepared tochase it down:&amp;nbsp; I will, however, shamelessly point out that this feature is already provided in the HPE Compute Ops Management - OneView edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 17:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/ov-spt-sync/m-p/7252995#M10370</guid>
      <dc:creator>DanCernese</dc:creator>
      <dc:date>2025-07-21T17:15:46Z</dc:date>
    </item>
  </channel>
</rss>

