<?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: DNAC Site Profile API documentation in Cisco Catalyst Center</title>
    <link>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/5047281#M8763</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with understand what I would need to put this together in a python script? I want to create a script for a site, and create a network profile for that site, then assign the DAY-N template to that site, programmatically, so its ready to deploy when I need it. Can you help please? I'm kinda new to this aspect, and I am getting to grips with a lot of it, but creating new ones is a bit of a mystery at this point.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 01:25:42 GMT</pubDate>
    <dc:creator>Valdularo</dc:creator>
    <dc:date>2024-03-22T01:25:42Z</dc:date>
    <item>
      <title>DNAC Site Profile API documentation</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/4561692#M4953</link>
      <description>&lt;P&gt;I found the following Device onboarding example on DevNet:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/dna-center/#!device-onboarding/site-profile-api" target="_blank" rel="noopener"&gt;Device Onboarding - Cisco DNA Center Platform - Document - Cisco DevNet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It uses the Site Profile API to create a Site(Network) Profile and with an onboarding template.&lt;/P&gt;&lt;P&gt;I want to do something similar but using DayN templates. Unlike other APIs this one doesn't appear to be documented within DNA Center and I can't find any documentation about it elsewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand the structure of the Json object I need to pass to the API to create the site profile.&lt;/P&gt;&lt;P&gt;Also if there any other calls I can make, e.g. to update a profile or get details of an existing profile,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running version&amp;nbsp;2.2.3.4&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 21:19:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/4561692#M4953</guid>
      <dc:creator>pinglis</dc:creator>
      <dc:date>2022-03-01T21:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: DNAC Site Profile API documentation</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/4798384#M6636</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know this response is late compared to the original post.&lt;/P&gt;&lt;P&gt;But i ran into the same issue while working on &lt;STRONG&gt;Version 2.3.3.6.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After some time I found this undocumented API Call to find the complete informations about a specific Site(Network) Profile :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;https://{{dnac}}/api/v1/siteprofile/{{siteProfileId}}?populated=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will produce a payload like this :&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "response": {
        "siteProfileUuid": "{{siteProfileId}}",
        "version": 41,
        "name": "{{siteProfileName}}",
        "namespace": "switching",
        "status": "final",
        "lastUpdatedBy": "raphcpv",
        "lastUpdatedDatetime": 1679393420330,
        "profileAttributes": [
            {
               "key": "site.settings",
                "attribs": [
                .....
                 ]
            },
            {
                "key": "day0.templates",
                "attribs": [
                    {
                        "key": "device.family",
                        "value": "Switches and Hubs",
                        "attribs": [
                            {
                                "key": "device.series",
                                "attribs": [
                                    {
                                        "key": "device.type",
                                        "attribs": [
                                            {
                                                "key": "template.id",
                                                "value": "{{templateId}}",
                                                "attribs": [
                                                    {
                                                        "key": "template.name",
                                                        "value": "{{templateName}}"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            {
                "key": "cli.templates",
                "attribs": [
                    {
                        "key": "device.family",
                        "value": "Switches and Hubs",
                        "attribs": [
                            {
                                "key": "device.series",
                                "attribs": [
                                    {
                                        "key": "device.type",
                                        "attribs": [
                                            {
                                                "key": "template.id",
                                                "value": "{{templateId}}",
                                                "attribs": [
                                                    {
                                                        "key": "template.name",
                                                        "value": "{{templateName}}"
                                                    },
                                                    {
                                                        "key": "template.version",
                                                        "value": "1"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "siteCount": 1
    },
    "version": "1.0"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see you have a profile attributes called &lt;EM&gt;&lt;STRONG&gt;cli.templates&lt;/STRONG&gt;&lt;/EM&gt;, you can use it to configure you Day-N template, using my payload as an example.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 10:29:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/4798384#M6636</guid>
      <dc:creator>raphcpv</dc:creator>
      <dc:date>2023-03-21T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: DNAC Site Profile API documentation</title>
      <link>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/5047281#M8763</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with understand what I would need to put this together in a python script? I want to create a script for a site, and create a network profile for that site, then assign the DAY-N template to that site, programmatically, so its ready to deploy when I need it. Can you help please? I'm kinda new to this aspect, and I am getting to grips with a lot of it, but creating new ones is a bit of a mystery at this point.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 01:25:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cisco-catalyst-center/dnac-site-profile-api-documentation/m-p/5047281#M8763</guid>
      <dc:creator>Valdularo</dc:creator>
      <dc:date>2024-03-22T01:25:42Z</dc:date>
    </item>
  </channel>
</rss>

