Get agent list

POST https://caas.digicert.com/automationws/v1/agent/list
Use this endpoint to get a list of automation agents.

Example requests and responses

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/agent/list' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "searchCriteriaList": [],
    "divisionIds": [],
    "startIndex": 1,
    "pageSize": 50,
    "sorting": {
        "AGENTNAME": "ASC"
    }
}'

200 OK

{
    "error": null,
    "data": {
        "agentList": [
            {
                "agentId": 1974,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "WIN-H4E1BFB5PE2",
                "agentName": "upgrade109-10110",
                "status": "Not Configured",
                "sensorName": "upgrade109-10110",
                "type": "Agent",
                "agentLicense": "4C78FD86EA557866",
                "updatePreference": 0,
                "updateAvailable": false
            },
            {
                "agentId": 2017,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "cws1-w16-m1-dap",
                "agentName": "SOWAgent-28sep",
                "status": "Not Configured",
                "sensorName": "SOWAgent-28sep",
                "type": "Agent",
                "agentLicense": "853029630D211D8D",
                "updatePreference": 1,
                "updateAvailable": false
            },
            {
                "agentId": 2012,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "gp2lab-f5.sbolab.blu.digicert.com",
                "agentName": "SOW-f5-10.100.192.227_7",
                "status": "Configured",
                "sensorLicenseKey": "C3FD89C967E92173",
                "sensorName": "SOWjanyaSensor",
                "type": "Agentless",
                "updateAvailable": false,
                "managementIp": "10.100.192.227"
            },
            {
                "agentId": 2018,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "gp2lab-thunder.sbolab.blu.digicert.com",
                "agentName": "SOW-A10-10.100.192.228",
                "status": "Configured",
                "sensorLicenseKey": "C3FD89C967E92173",
                "sensorName": "SOWjanyaSensor",
                "type": "Agentless",
                "updateAvailable": false,
                "managementIp": "10.100.192.228"
            },
            {
                "agentId": 1417,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "WIN-H4E1BFB5PE2",
                "agentName": "Proxyagent",
                "status": "Error",
                "sensorName": "Proxyagent",
                "type": "Agent",
                "agentLicense": "C9A67959E7CBD5E2",
                "updatePreference": 0,
                "updateAvailable": false
            },
            {
                "agentId": 1393,
                "accountId": "5153184",
                "divisionId": "677793",
                "hostname": "DC-C0FY5VD-L",
                "agentName": "856win10agent",
                "status": "Error",
                "sensorName": "856win10agent",
                "type": "Agent",
                "agentLicense": "9E38430DB99D75B3",
                "updatePreference": 1,
                "updateAvailable": false
            }
        ],
        "totalCount": 14,
        "totalPages": 2
    }

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
searchCriteriaListoptionalarrayFilter results by specified values. For definitions, see the Filter options for searchCriteriaList table below.
Example:
divisionIdsrequiredarrayDivision IDs.
startIndexoptionalintegerIndex of the first result.
Default:1
pageSizeoptionalintegerNumber of records per page.
Allowed values: 0 to 512
Default: 50
sortingoptionalobjectSorting details.
An object with key/value pairs that describe how to sort the results.Each key is the name of a field that you can use for sorting. Each value describes whether to sort in ascending ASC or descending DESC order.
Allowed keys: AGENTNAME, AGENTSTATUS, HOSTNAME, AGENTYPE.
Allowed values:DESC (descending: 9-0, Z-A), ASC (ascending: 0-9, A-Z).
Examples:
“sorting”: {“AGENTNAME”: “ASC”}
Sorts results in ascending order by agent name.

Response parameters

NameTypeDescription
errorobjectObject with error details, if any.
dataobjectObject with response data.
.. agentListobjectObject with details about the agents that meet the search criteria.
.. agentIdintegerAgent ID.
.. accountIdstringAccount ID.
.. divisionIdstringDivision ID.
.. hostnamestringName of the host.
.. agentNamestringName of the agent.
.. statusstringStatus of the agent.
Possible values: Error, Configured, Not Configured, Suspended, Upgrading, Void .
.. sensorLicenseKeystringLicense key associated with the sensor.
Note: Only returned if AGENTTYPE is selected as Agentless.
.. sensorNamestringName of the sensor.
.. typestringType of the agent.
Possible values: Agent, Agentless.
.. agentLicensestringLicense of the agent.
.. updatePreferenceintegerAgent upgrade preference.
.. updateAvailablebooleanIndicates whether a new agent upgrade is available.
Possible values: false.
.. managementIpstringManagement IP. For more information, see Sensor automation on F5 load balancer.
Note: Only returned if AGENTTYPE is selected as Agentless.
totalCountintegerTotal number of agents based on the filter criteria.
totalPagesintegerTotal number of pages for the agents based on filter criteria.

Filter options for searchCriteriaList

The array includes key, operation, and value.

KeyOperationValue
AGENTTYPEEQUALSAgent, Agentless.
AGENTNAMEEQUALSName of the agent.
AGENTSTATUSEQUALSError, Configured, Not Configured, Suspended, Upgrading, Void.
LICENSEKEYEQUALSLicense key of the user.
SENSOREQUALSName of the sensor.