AnsweredAssumed Answered

TAG name and TAG Id

Question asked by Max Max on Sep 28, 2015
Latest reply on Sep 28, 2015 by Max Max

hi all,

 

I am trying to run an easy instruction using Power Shell:

 

curl -n -u "userid:password" "https://qualysapi.qualys.eu/qps/rest/2.0/get/am/tag/54321"

 

But I am receiving an Error message as the Tag wasn't found

 

<?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>INVALID_REQUEST</responseCode>

  <responseErrorDetails>

    <errorMessage>Tag was not found with &apos;id&apos; = 54321</errorMessage>

  </responseErrorDetails>

</ServiceResponse>

 

I found this instruction in the API guide V2, but I am wondering if I am wrong using the Tag name instead of the Tag ID. If this was the mistake, where do I find the TAG id?

 

Many thanks

Outcomes