Get AWS Connector Details 3.0

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

We will now deprecate the old CloudView API endpoint for ’Get AWS connector Info’ and an alternative API will be introduced in the  Asset Management application. You can select whether the ’Get AWS Connector Info’ API applies to AssetView and/or CloudView in the Connector application.

Permissions required - Managers with full scope.

Sample 1: Fetch the AWS connector with the ID 179407Sample 1: Fetch the AWS connector with the ID 179407

API Request (JSON)

"curl -n -u""USERNAME:PASSWORD""<qualys_base_url>/qps/rest/3.0/get/am/awsassetdataconnector/179407""--header""Accept: application/json""--header""Content-Type: application/json"      
    

Response (JSON)

{
   "ServiceResponse":{
      "data":[
         {
            "AwsAssetDataConnector":{
               "name":"AWS AV CONN",
               "externalId":"pod-xxxxxx-1662018652278",
               "isChinaConfigured":"false",
               "lastSync":"2022-07-05T03:20:18Z",
               "nextSync":"2022-07-05T07:20:00Z",
               "disabled":"false",
               "qualysAwsAccountId":"xxxxx",
               "runFrequency":240,
               "id":179407,
               "connectorAppInfos":{
                  "list":[
                     {
                        "ConnectorAppInfoQList":{
                           "list":[
                              {
                                 "ConnectorAppInfo":{
                                    "name":"AI",
                                    "identifier":"arn:aws:iam::xxxxxxxxx:role/Cloudview_Test"
                                 }
                              }
                           ]
                        }
                     }
                  ]
               },
               "isGovCloudConfigured":"false",
               "connectorState":"FINISHED_SUCCESS",
               "allRegions":"false",
               "type":"AWS",
               "arn":"arn:aws:iam::xxxxxxxxx:role/Cloudview_Test",
               "isDeleted":"false",
               "awsAccountId":"xxxxxxxxx",
               "isRemediationEnabled":"false"
            }
         }
      ],
      "responseCode":"SUCCESS",
      "count":1
   }
}      
    

Sample 2: Get Details of AWS Connector with Cloud Perimeter Scan EnabledSample 2: Get Details of AWS Connector with Cloud Perimeter Scan Enabled

API Request (JSON)

"curl -n -u""USERNAME:PASSWORD""<qualys_base_url>/qps/rest/3.0/get/am/awsassetdataconnector/179407""--header""Accept: application/json"      
    

Response (JSON)

<ServiceResponse>
    <data>
   ...
      isCPSEnabled>true
    </isCPSEnabled>
    <connectorAppInfos>
        <list>
            <ConnectorAppInfoQList>
                <list>
                    <ConnectorAppInfo>
                        <name>AI</name>
                        <identifier>arn:aws:iam::XXXXXXXXXXXX:role/Sample-IAMRole</identifier>
                    </ConnectorAppInfo>
                </list>
            </ConnectorAppInfoQList>
        </list>
    </connectorAppInfos>
    <connectorScanSetting>
        <isCustomScanConfigEnabled>true</isCustomScanConfigEnabled>
    </connectorScanSetting>
    <connectorScanConfig>
        <list>
            <ConnectorScanConfiguration>
                <scanPrefix>AWS CPS 6/2/22</scanPrefix>
                <optionProfileId>2</optionProfileId>
                <recurrence>WEEKLY</recurrence>
                <startDate>MM/DD/YYYY</startDate>
                <startTime>HH:MM</startTime>
                <daysOfWeek>
                    <list>
                        <Day>SUN</Day>
                        <Day>MON</Day>
                        <Day>TUE</Day>
                    </list>
                </daysOfWeek>
                <timezone>Africa/Cairo</timezone>
            </ConnectorScanConfiguration>
        </list>
...
  
    </data>
</ServiceResponse>