Datastax Record

POST /api/2.0/fo/auth/datastax/

Create, update, list, and delete DataStax records for authenticated scans of DataStax instances. Compliance scans are supported (using PC).

Both basic and vault based authentication are supported. Vault based authentication is
supported for the following vaults:
• CyberArk AIM
• Thycotic Secret Server
• HashiCorp
• Azure Key

Input ParametersInput Parameters

Parameter Required/Optional Data Type  Description
 action={action}  Required  String Specify any one of the following:
create, update, list,delete.
 title={value}   Required to create a record  String  A title for the record.
Optional to update record.
 ips={value}  Required
Optional to update record
 Integer IPs to be added to your DataStax record.
You may enter a combination of IPs and IP ranges to identify
compliance hosts. Multiple entries are comma separated.

Overwrites (replaces) the IP list for the authentication record. The IPs you specify are added and any existing IPs are removed
username={value} Optional  String The username to be used for authentication to DataStax.
password={value} Optional  String The password to be used for authentication to DataStax.
login_type={basic|vault} Required  Boolean The login type is basic by default. You can choose
vault (for vault based authentication). Set to vault if a third party vault is used to retrieve the password.

 For vault based authentication, vault parameters need to be provided in the record.

vault_id={value} Required if login_type=vault Integer  The ID of the vault to be used to retrieve the password for login.
vault_type={value}  Required if login_type=vault  String The third party vault to be used to retrieve the password for login. Certain vaults support this capability. View our latest Vault Support Matrix.
port={value}  Optional  Integer The port number that the DataStax database instance is running on.
ssl_verify_with_host={0|1}  Optional Boolean SSL verification. Set to 1 if you want to verify the server’s certificate is valid and trusted.
hosts={value} Required if ssl_verify_with_host=1 String A list of FQDNs for all host IP addresses on which a custom SSL certificate signed by a
trusted root CA is installed.
require_cert={0|1} Optional Boolean Set this to 1 when you want to authenticate the DataStax instance via certificate and private_key.
Enabling this from API switch on the Require Certificate toggle on UI.
certificate={value} Required if require_cert is set to 1. String Certificate content
private_key={value} Required if require_cert is set to 1. String private_key details
confpath={value} Optional String The full path to DataStax yaml/yuml file.
basepath={value} Optional String The base path to DataStax installation.
dseconfpath={value} Optional String Configuration path of DataStax conf file.
cleartext={0|1} Optional Boolean Set to 1 to send user credentials in clear text.
ids={value} Required to update record Integer DataStax Record IDs to update. Specify record IDs and/or ID ranges (for example, 1359-1407). Multiple entries are comma separated.
passphrase={value} Optional String Specify password passphrase. If a client certificate is required, the private key specifies the client certificate. If this key is protected by a passphrase, you can provide it via this
parameter.
use_vault_passphrase={0|1} Optional Boolean Set to 1 if you want to store passphrase to vault. Enabling this from API switches the Get passphrase from vault toggle to Yes on the UI.
pp_vault_type={value} Required if use_vault_passphrase parameter is set to 1 String If the passphrase is stored in a vault, this parameter indicates its vault type. Enter the type of the vault that stores the
passphrase.
pp_vault_record={value} Required if use_vault_passphrase parameter is set to 1 Integer If the passphrase is stored in a vault, this parameter indicates its vault ID. Enter the ID of the vault that stores the passphrase.
pp_<vault_parameters>={value} Optional   If use_vault_passphrase parameter is set to 1 then
all vault parameter fields must be added with prefix 'pp_'
For example, pp_vault_type,pp_vault_record.
Vault specific parameters required depend on the vault type you've selected. See Vault Parameters.

 

Sample Create RecordSample Create Record

API Request

curl-s -S -H 'X-Requested-With:curl demo2' -u "xx_xx:yyyy123#" -d "action=create&title=datastax_API&login_type=basic&username=test&password=abc123&ips=1.1.1.2&port=12" "https://<qualys_base_url>/api/2.0/fo/auth/datastax/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BATCH_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/batch_return.dtd">
<BATCH_RETURN>
  <RESPONSE>
    <DATETIME>2024-08-23T13:40:49Z</DATETIME>
    <BATCH_LIST>
      <BATCH>
        <TEXT>Successfully Created</TEXT>
        <ID_SET>
          <ID>5380731</ID>
        </ID_SET>
      </BATCH>
    </BATCH_LIST>
  </RESPONSE>
</BATCH_RETURN>


Sample Update RecordSample Update Record

API Request

curl-s -S -H 'X-Requested-With:curl demo2' -u "xx_xx:yyyy123#" -d "action=update&title=datastax_APIupdate&login_type=basic&username=testupdate&password=abc12312&ids=5380731&port=12" "https://<qualys_base_url>/api/2.0/fo/auth/datastax/"

XML Output

<?xml version="1.0" encoding="utf-8"?>
<batch_return>
  <response>
    <datetime>2024-08-23T13:43:33Z</datetime>
    <batch_list>
      <batch>
        <text>Successfully Updated</text>
        <id_set>
          <id>5380731</id>
        </id_set>
      </batch>
    </batch_list>
  </response>
</batch_return>

Sample Delete RecordSample Delete Record

API Request

curl-s -S -H 'X-Requested-With:curl demo2' -u "xx_xx:yyyy123#" -d "action=delete&ids=5380731" "https://<qualys_base_url>/api/2.0/fo/auth/datastax/"

XML Output

<?xml version="1.0" encoding="utf-8"?>
<batch_return>
  <response>
    <datetime>2024-08-23T13:52:18Z</datetime>
    <batch_list>
      <batch>
        <text>Successfully Deleted</text>
        <id_set>
          <id>5380731</id>
        </id_set>
      </batch>
    </batch_list>
  </response>
</batch_return>

List RecordsList Records

API Request

curl-s -S -H 'X-Requested-With:curl demo2' -u "xx_xx:yyyy123#" -d "action=list&ids=5380731" "https://<qualys_base_url>/api/2.0/fo/auth/datastax/"

XML Output

<?xml version="1.0" encoding="utf-8"?>
<auth_datastax_list_output>
  <response>
    <datetime>2024-08-23T13:44:50Z</datetime>
    <auth_datastax_list>
      <auth_datastax>
        <id>5380731</id>
        <title>datastax_APIupdate</title>
        <username>testupdate</username>
        <ip_set>
          <ip>1.1.1.1</ip>
        </ip_set>
        <require_cert>0</require_cert>
        <port>12</port>
        <ssl_verify_with_host>0</ssl_verify_with_host>
        <login_type>basic</login_type>
        <created>
          <datetime>2024-08-23T13:40:49Z</datetime>
          <by>xx_xx</by>
        </created>
        <last_modified>
          <datetime>2024-08-23T13:43:33Z</datetime>
        </last_modified>
      </auth_datastax>
    </auth_datastax_list>
  </response>
</auth_datastax_list_output>        

Type your dropdown text here

DTDs for DataStax records

Qualys API Server URL/api/2.0/fo/auth/datastax/auth_datastax_list