Create OCI Connector 3.0

POST/qps/rest/3.0/create/am/awsassetdataconnector

Specify the connector details and create a new connector in the Connectors application.

Input ParameterInput Parameter

Parameter

Mandatory

/Optional

Data Type

Description

name

Optional

integer

The ID of the connector that you want to update.

description

Optional

text

Name of the connector you want to update.

defaultTags

Optional

text

(TagSimpleQList) Tags applied to any asset discovered by the connector.

activation

Optional

text

(List<ActivationModule>) Assets discovered by the connector is activated for the modules specified.

allRegions

Optional

integer

(boolean) If true, the end point’s collection is ignored and all the AWS regions scanned.

disabled

Optional

date

(boolean) Whether execution of the connector is disabled. (YES). If disabled, the connector does not synchronize assets. The disabled (boolean) parameter is used to disable a connector.

This parameter when set to “true” the connector is disabled and will not run.

- If a single connector is run and it is disabled an error is returned.

- If multiple connectors are run and all are disabled an error is returned.

- If multiple connectors are run and some are disabled, only connectors that are enabled will run.

externalId

Optional

boolean

Random string which is unique for each user.

runFrequency

Optional

boolean

runFrequency for a connector decides the rate at which the connector should poll the cloud provider and fetch the data. Specified in minutes.

isRemediationEnabled

Optional

keyword

A flag to enable or disable remediation for the connector.

set.ConnectorAppInfo

   

It holds the list of list of ConnectorAppInfo which includes App Name, identifiers and tag details. Connector can one or more apps from list [AI, CI, CSA].

AI-Asset Inventory, CI- Cloud Inventory, CSA- Cloud Security Assessment

Sample: Create an OCI Connector with PC and VM (CPS) ActivationSample: Create an OCI Connector with PC and VM (CPS) Activation

API request

curl --location --request POST '<qualys_base_url>/qps/rest/3.0/create/am/ociassetdataconnector' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic xxxxxxxxxxx' \
--data-raw '{
    "ServiceRequest": {
        "data": {
            "OciAssetDataConnector": {
                "homeRegion": "us-ashburn-1",
                "runFrequency": 240,
                "name": "OCI Connector with API",
                "description": "Created via Public API",
                "disabled": false,
                "activation": {
                    "set": {
                        "ActivationModule": [
                            "PC",
                            "VM"
                        ]
                    }
                },
                "authRecord": {
                    "tenantId": "ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    "userId": "ocid1.user.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    "fingerprint": "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx",
                    "privateKey": "-----BEGIN PRIVATE KEY-----\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n-----END PRIVATE KEY-----"
                },
                "connectorAppInfos": {
                    "set": {
                        "ConnectorAppInfoQList": [
                            {
                                "set": {
                                    "ConnectorAppInfo": {
                                        "name": "AI",
                                        "identifier": "ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                                    }
                                }
                            }
                        ]
                    }
                }
            }
        }
    }
}'

Response (JSON)

{
    "ServiceResponse": {
        "data": [
            {
                "OciAssetDataConnector": {
                    "activation": {
                        "ActivationModule": [
                            "PC",
                            "VM"
                        ]
                    },
                    "connectorAppInfos": {
                        "list": [
                            {
                                "ConnectorAppInfoQList": {
                                    "list": [
                                        {
                                            "ConnectorAppInfo": {
                                                "name": "AI",
                                                "identifier": "ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "lastSync": "2026-08-12T11:52:54Z",
                    "isDeleted": "false",
                    "authRecord": {
                        "tenantId": "ocid1.tenancy.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                    },
                    "disabled": "false",
                    "description": "Created via Public API",
                    "id": 3970605,
                    "name": "OCI Connector with API"
                }
            }
        ],
        "count": 1,
        "responseCode": "SUCCESS"
    }
}