AnsweredAssumed Answered

API Issue: OPERATION_NOT_SUPPORTED when call xlm file

Question asked by Max Max on Sep 4, 2015
Latest reply on Mar 22, 2018 by Abhijith Nair

Hi all,

 

hope somebody has an idea how to solve this

 

Following an example of the API V2 guide, I am trying to run this command

 

Request:

curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST"

--data-binary @-

"https://qualysapi.qualys.com/qps/rest/2.0/count/am/tag" <

file.xml

 

Request POST data (file.xml):

<ServiceRequest>

  <filters>

  <Criteria field="parent" operator="EQUALS">12345</Criteria>

  </filters>

</ServiceRequest>

 

but I am obtaining this result

 

<?xml version="1.0" encoding="UTF-8" ?>

- <ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.qualys.eu/qps/xsd/2.0/am/tag.xsd">

<responseCode>OPERATION_NOT_SUPPORTED</responseCode>

 

 

- <responseErrorDetails>

 

 

<errorMessage>Operation not supported for this object using this method.</errorMessage>

 

 

<errorResolution>Refer to the QPS guide for authorized operation for this domain object.</errorResolution>

 

</responseErrorDetails>

</ServiceResponse>

 

 

Any help is appreciated.

Outcomes