Get AWS Base Account Id 3.0

GET /qps/rest/3.0/search/am/awsbaseaccount

GET /qps/rest/3.0/get/am/awsbaseaccount/<id>

Retrieve the base account details of a connector either by searching for name or id.

Permissions required - Managers with full scope.

Sample: Get Base Account with NameSample: Get Base Account with Name

API request

curl --location --request POST '<qualys_base_url>/qps/rest/3.0/search/am/awsbaseaccount' \      
    

Response (XML)

<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/version.xsd">
    <responseCode>SUCCESS</responseCode>
    <count>1</count>
    <hasMoreRecords>false</hasMoreRecords>
    <data>
        <globalAccountId>2057xxxxx438</globalAccountId>
        <govAccountId>011xxxxx917</govAccountId>
        <chinaAccountId>011xxxx917</chinaAccountId>
        <customerGlobalAccount>false</customerGlobalAccount>
        <customerGovAccount>false</customerGovAccount>
        <customerChinaAccount>false</customerChinaAccount>
    </data>
</ServiceResponse>      
    

API request(JSON)

"curl --location --request POST""<qualys_base_url>/qps/rest/3.0/search/am/awsbaseaccount""\\
--header""Accept: application/json""\\
--header""Content-Type: application/json""\\
--header""Authorization: Basic cWF0ZXNfZ2szNTpRQXRlbXBAMTIz""\\
--header""'Cookie: JSESSIONID=8C54FD99F11E0DCACEF05D48ABDC350A"      
    

Response (JSON)

{
   "ServiceResponse":{
      "responseCode":"SUCCESS",
      "count":1,
      "data":[
         {
            "globalAccountId":"2057xxxxx438",
            "govAccountId":"011xxxxx917",
            "chinaAccountId":"011xxxx917",
            "customerGlobalAccount":"false",
            "customerGovAccount":"false",
            "customerChinaAccount":"false"
         }
      ],
      "hasMoreRecords":"false"
   }
}