Hi everyone,
I’ve been trying to retrieve MDM tokens assigned to a device group using the (https://developer.comodo.com/frontend/web/topic/get-devices-mdm-tokens-assigned-to-device-group ). However, I’m encountering an issue where the API response returns a 404 Not Found
error even though I’m sure the group ID is correct and the endpoint is accurate.
Here’s the code I’m using in PHP to call the API:
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "82",
CURLOPT_URL => "https://subdomain-msp.env.comodo.com/api/rest/v1/device-group/assigned-device-ids-list?id=1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/json",
"x-auth-token: e087f80be7add78cea126174f474ad33",
"x-auth-type: 4",
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
The response I get is:
{
"error": "404 Not Found"
}
I’ve double-checked the group ID and the endpoint URL, but I’m still running into this issue. Is there something I might be missing? Could this be related to authentication, or maybe there’s an issue with how the group is configured in the system?
Any help or suggestions would be greatly appreciated!
SofiaRussell:
Hi everyone,
I’ve been trying to retrieve MDM tokens assigned to a device group using the (web .developer.comodo.com/frontend/topic/get-devices-mdm-tokens-assigned-to-device-group ). However, I’m encountering an issue where the API response returns a 404 Not Found
error even though I’m sure the group ID is correct and the endpoint is accurate.
Here’s the code I’m using in PHP to call the API:
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "82",
CURLOPT_URL => "https://subdomain-msp.env.comodo.com/api/rest/v1/device-group/assigned-device-ids-list?id=1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/json",
"x-auth-token: e087f80be7add78cea126174f474ad33",
"x-auth-type: 4",
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
The response I get is:
{
"error": "404 Not Found"
}
I’ve double-checked the group ID and the endpoint URL, but I’m still running into this issue. Is there something I might be missing? Could this be related to authentication, or maybe there’s an issue with how the group is configured in the system?
Any help or suggestions would be greatly appreciated!
Hi everyone,
I’m still facing the same issue with the 404 error
. Has anyone encountered this problem before or have suggestions on what I might be missing?
Hi SofiaRussell,
If your devices are on the Itarian platform it is best to post your question on this forum :- ITarian Forum - ITarian Forum
Or if you are on the ComodoOne ( Dragon ) platform then this will be the best place :- Xcitium Forum