<?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: API call to ACI in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4527462#M2470</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1126943"&gt;@kkhlebop&lt;/a&gt;&amp;nbsp; ^^^ please&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 14:52:07 GMT</pubDate>
    <dc:creator>Alexander Stevenson</dc:creator>
    <dc:date>2022-01-06T14:52:07Z</dc:date>
    <item>
      <title>API call to ACI</title>
      <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517076#M2467</link>
      <description>&lt;P&gt;I am planning to see if I can import a csv files for creating multiple VPC's and assign them to physical port. I tried individually using postman variables defined in pre-request script and it worked. Now, i am trying to see if I can configure multiple of them same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:11:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517076#M2467</guid>
      <dc:creator>chemudupaty</dc:creator>
      <dc:date>2021-12-10T21:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: API call to ACI</title>
      <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517110#M2468</link>
      <description>&lt;P&gt;Can you share your postman by converting your postman calls to python script or curl using postman features, so can follow along and see if understand your issue properly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how to convert it to code (python or curl or many other languages):&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/49432735/converting-a-postman-request-to-curl" target="_blank"&gt;https://stackoverflow.com/questions/49432735/converting-a-postman-request-to-curl&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 03:03:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517110#M2468</guid>
      <dc:creator>kkhlebop</dc:creator>
      <dc:date>2021-12-11T03:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: API call to ACI</title>
      <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517901#M2469</link>
      <description>import http.client&lt;BR /&gt;import json&lt;BR /&gt;&lt;BR /&gt;conn = http.client.HTTPSConnection("{{apic}}")&lt;BR /&gt;payload = "payload{\r\n \"infraHPortS\": {\r\n \"attributes\": {\r\n \"dn\": \"uni/infra/accportprof-{{LEAF_INT_PROF}}/{{hports-PORT-1-typ-range}}\",\r\n \"name\": \"{{PORT-1}}\",\r\n \"rn\": \"{{hports-PORT-1-typ-range}}\",\r\n \"status\": \"created,modified\"\r\n },\r\n \"children\": [\r\n {\r\n \"infraPortBlk\": {\r\n \"attributes\": {\r\n \"dn\": \"uni/infra/accportprof-{{LEAF_INT_PROF}}/{{hports-PORT-1-typ-range}}/portblk-block2\",\r\n \"fromPort\": \"{{F-Port}}\",\r\n \"toPort\": \"{{T-Port}}\",\r\n \"name\": \"block2\",\r\n \"rn\": \"portblk-block2\",\r\n \"status\": \"created,modified\"\r\n },\r\n \"children\": []\r\n }\r\n },\r\n {\r\n \"infraRsAccBaseGrp\": {\r\n \"attributes\": {\r\n \"tDn\": \"uni/infra/funcprof/accbundle-{{VPC_HOST_POL_GRP}}\",\r\n \"status\": \"created,modified\"\r\n },\r\n \"children\": []\r\n }\r\n }\r\n ]\r\n }\r\n}"&lt;BR /&gt;headers = {&lt;BR /&gt;'Content-Type': 'application/json',&lt;BR /&gt;'Cookie': 'APIC-cookie=eyJhbGciOiJSUzI1NiIsImtpZCI6IjVyejc2MjViMWg1cnJyMGM3ejc5emhhbnAwdGV1YnoyIiwidHlwIjoiand0In0.eyJyYmFjIjpbeyJkb21haW4iOiJhbGwiLCJyb2xlc1IiOjAsInJvbGVzVyI6MX1dLCJpc3MiOiJBQ0kgQVBJQyIsInVzZXJuYW1lIjoiYWRtaW4iLCJ1c2VyaWQiOjE1Mzc0LCJ1c2VyZmxhZ3MiOjAsImlhdCI6MTYyNDY4MDY0NSwiZXhwIjoxNjI0NjgxMjQ1LCJzZXNzaW9uaWQiOiJSMmJwRXdPUVRKV0c3ZWhRcy93L1BBPT0ifQ.juzVBmDpEFblcGrPVm4K_ztY3QrDx_URtacJifEvHGMPTBgM3zsy_jXzvrNTXNZiK4QEB66BRETDrKucVVuIZOW5Q4hPqqemy4jsM-LnYOF2v1NEbWwkvu6uTDwLBcgvYeB8QOI4s6Mrr17emKVU_eMpSotZUh7CDhMkXUv7qOyGQZkWIqw4AF13BzyqiMHG6CmhY4PssInxVmwyCz_ubcgpnSKpMZcbaaJIWoUv-2-6EMnmqnlI-p1McnrLClYYezC-US7BpjXvxzJe123pPBZBgZ3-mV-ccEdKghEoRnPjjphjdSHKQDeTtx8R8cImBrDehBPCJC1wVDC785RgQA'&lt;BR /&gt;}&lt;BR /&gt;conn.request("POST", "/api/node/mo/uni/infra/accportprof-{{LEAF_INT_PROF}}/{{hports-PORT-1-typ-range}}.json", payload, headers)&lt;BR /&gt;res = conn.getresponse()&lt;BR /&gt;data = res.read()&lt;BR /&gt;print(data.decode("utf-8"))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below is the Spreadsheet with the variables I am passing and it fails. If I pass the variables individually it works just doesn't work with csv.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Usha</description>
      <pubDate>Mon, 13 Dec 2021 13:27:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4517901#M2469</guid>
      <dc:creator>chemudupaty</dc:creator>
      <dc:date>2021-12-13T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: API call to ACI</title>
      <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4527462#M2470</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1126943"&gt;@kkhlebop&lt;/a&gt;&amp;nbsp; ^^^ please&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:52:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4527462#M2470</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-01-06T14:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: API call to ACI</title>
      <link>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4527486#M2471</link>
      <description>&lt;P&gt;I was able to figure this out. I had to change the variables in my csv file. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 15:37:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/api-call-to-aci/m-p/4527486#M2471</guid>
      <dc:creator>chemudupaty</dc:creator>
      <dc:date>2022-01-06T15:37:35Z</dc:date>
    </item>
  </channel>
</rss>

