Run AWS Connector 3.0

[POST] /qps/rest/3.0/run/am/awsassetdataconnector

[POST] /qps/rest/3.0/run/am/awsassetdataconnector/<id>

We will now deprecate the API endpoint to run one or more AWS connectors from the CloudView application and introduce an alternative API in the Asset Management application. The run connector API will fetch the latest changes related to your connector.

Permissions required - Managers with full scope.

Sample- Run AWS connector 3.0Sample- Run AWS connector 3.0

API Request (JSON)

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

Response (JSON)

{
  "ServiceResponse": {
    "count": 1,
    "data": [
      {
        "AwsAssetDataConnector": {
          "connectorAppInfos": {
            "list": [
              {
                "ConnectorAppInfoQList": {
                  "list": [
                    {
                      "ConnectorAppInfo": {
                        "name": "CI",
                        "identifier": "arn:aws:iam::xxxxxxxxx:role/test-pod"
                      }
                    }
                  ]
                }
              },
              {
                "ConnectorAppInfoQList": {
                  "list": [
                    {
                      "ConnectorAppInfo": {
                        "name": "AI",
                        "identifier": "arn:aws:iam::xxxxxxxx:role/test-pod"
                      }
                    }
                  ]
                }
              },
              {
                "ConnectorAppInfoQList": {
                  "list": [
                    {
                      "ConnectorAppInfo": {
                        "name": "CSA",
                        "identifier": "arn:aws:iam::xxxxxxxx:role/test-pod"
                      }
                    }
                  ]
                }
              }
            ]
          },
          "id": xxxxxx,
          "nextSync": "2022-07-04T08:48:27Z",
          "isRemediationEnabled": "false",
          "lastSync": "2022-07-04T04:50:04Z",
          "connectorState": "FINISHED_ERRORS",
          "runFrequency": 240,
          "awsAccountId": "xxxxxxxx",
          "allRegions": "false",
          "lastError": "Error getting EBS Encryption By Default Status from af-south-1. Please check if region is enabled or EC2 service is enabled for this region",
          "type": "AWS",
          "activation": {
            "ActivationModule": [
              "CLOUDVIEW"
            ]
          },
          "disabled": "false",
          "name": "sign",
          "isChinaConfigured": "false",
          "externalId": "pod-xxxxxx-1662018652278",
          "cloudviewUuid": "xxxxxx-85d6-xxxx-a779-4a7eb643444f",
          "isDeleted": "false",
          "isGovCloudConfigured": "false",
          "qualysAwsAccountId": "xxxxxxxx",
          "description": "testing"
        }
      }
    ],
    "responseCode": "SUCCESS"
  }
}