<?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: APIv3 does not allow grabbing list of computers? in Endpoint Security</title>
    <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259322#M8738</link>
    <description>But why did they change the response format from "metadata" to "meta"!?!?!?!&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Feb 2025 18:46:18 GMT</pubDate>
    <dc:creator>Ken Stieers</dc:creator>
    <dc:date>2025-02-11T18:46:18Z</dc:date>
    <item>
      <title>APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259294#M8736</link>
      <description>&lt;P&gt;Does the APIv3 not allow to grab a list of computer GUIDs in an organization? Do I have to grab the list using APIv1 or v0 and then save the GUIDs to use them in v3?&lt;/P&gt;&lt;P&gt;The APIv3 reference only lists connector uninstallation under the Computers section.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/secure-endpoint/computers/" target="_blank"&gt;https://developer.cisco.com/docs/secure-endpoint/computers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a script to uninstall secure endpoint of all computers in our environment and it doesn't seem like there's a way to do it with just v3.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 17:26:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259294#M8736</guid>
      <dc:creator>stipend</dc:creator>
      <dc:date>2025-02-11T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259304#M8737</link>
      <description>&lt;P&gt;That is correct. You would need to use the /v1/computers call and utilize that information with the v3 uninstall_request call.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 17:59:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259304#M8737</guid>
      <dc:creator>Matthew Franks</dc:creator>
      <dc:date>2025-02-11T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259322#M8738</link>
      <description>But why did they change the response format from "metadata" to "meta"!?!?!?!&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2025 18:46:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259322#M8738</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2025-02-11T18:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259336#M8739</link>
      <description>&lt;P&gt;Not sure if you can assist with this or if you want me to make a separate post but I'm having troubling authenticating via APIv1. Below is my Python code. Do you know what I'm doing wrong?&lt;/P&gt;&lt;P&gt;I'm getting a 401 error unknown API key or Client ID. I know the API key and Client ID work since I've used them for APIv3.&lt;/P&gt;&lt;PRE&gt;api1url = &lt;SPAN&gt;'https://api.amp.cisco.com/v1/computers'&lt;BR /&gt;&lt;/SPAN&gt;response1 = requests.request(&lt;SPAN&gt;"GET"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;api1url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;={&lt;BR /&gt;    &lt;SPAN&gt;'Content-Type'&lt;/SPAN&gt;: &lt;SPAN&gt;'application/json'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'Accept-Encoding'&lt;/SPAN&gt;: &lt;SPAN&gt;'gzip'&lt;/SPAN&gt;}&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;auth&lt;/SPAN&gt;=HTTPBasicAuth(client_id&lt;SPAN&gt;, &lt;/SPAN&gt;client_secret)&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:21:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259336#M8739</guid>
      <dc:creator>stipend</dc:creator>
      <dc:date>2025-02-11T19:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259342#M8740</link>
      <description>&lt;P&gt;APIv1 and APIv3 have different authentication methods, so the credentials are not going to be the same. Here is a slight change to your code that works for me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import requests
import json

CLIENT_ID = ""
API_KEY = ""
auth = (CLIENT_ID, API_KEY)

api1url = 'https://api.amp.cisco.com/v1/computers'
response1 = requests.request("GET", api1url, headers={
    'Content-Type': 'application/json',
    'Accept-Encoding': 'gzip'},
    auth=auth, verify=False)
print(response1.json())&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:36:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259342#M8740</guid>
      <dc:creator>Matthew Franks</dc:creator>
      <dc:date>2025-02-11T19:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259348#M8741</link>
      <description>&lt;P&gt;Ken,&lt;/P&gt;
&lt;P&gt;I wasn't part of the conversation for the decision, so this is speculation. &lt;BR /&gt;Metadata, as was used in v1, is a more encompassing term that includes data about the data such as creation date, author, etc.&amp;nbsp;&lt;BR /&gt;Meta, used in v3, is used for summary data such as pagination details, status codes, request IDs, etc.&lt;/P&gt;
&lt;P&gt;When creating v3, someone made the choice to switch from the legacy metadata to meta which I realize causes more work when creating a response handler. There have been discussions around converting the v0/v1 functionality to v3 but I don't have any information on priority or timeline for that effort.&lt;/P&gt;
&lt;P&gt;I didn't really provide much of an answer for you, but hopefully that helped in some way.&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:53:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259348#M8741</guid>
      <dc:creator>Matthew Franks</dc:creator>
      <dc:date>2025-02-11T19:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259351#M8742</link>
      <description>That was me shaking my fist at the sky, knowing you'd understand the frustration behind the question... because the data in a v1 Metadata section is much the same, just organized differently...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:00:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259351#M8742</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2025-02-11T20:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259355#M8743</link>
      <description>&lt;P&gt;&lt;A href="https://static.wikia.nocookie.net/memepediadankmemes/images/0/01/297.jpg/revision/latest?cb=20180908193511" target="_blank" rel="noopener"&gt;I understand completely&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:06:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259355#M8743</guid>
      <dc:creator>Matthew Franks</dc:creator>
      <dc:date>2025-02-11T20:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259363#M8744</link>
      <description>&lt;P&gt;Thanks! I had to create the credentials in another area from where I created the APIv3 credentials.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 20:20:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5259363#M8744</guid>
      <dc:creator>stipend</dc:creator>
      <dc:date>2025-02-11T20:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260221#M8746</link>
      <description>&lt;P&gt;And that we can't use the v3 bearer token to auth to v0/v1 requests is sort of bunk too...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:29:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260221#M8746</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2025-02-13T15:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260653#M8748</link>
      <description>&lt;P&gt;I got a powershell version together if you didn't get yours finished.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 16:12:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260653#M8748</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2025-02-14T16:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: APIv3 does not allow grabbing list of computers?</title>
      <link>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260664#M8749</link>
      <description>&lt;P&gt;mine is finished, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 16:52:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/apiv3-does-not-allow-grabbing-list-of-computers/m-p/5260664#M8749</guid>
      <dc:creator>stipend</dc:creator>
      <dc:date>2025-02-14T16:52:13Z</dc:date>
    </item>
  </channel>
</rss>

