Skip to main content

Credentials

Overview

The Credentials API allows you to manage authentication credentials used by ChangeTracker to connect to various systems and services. This API provides endpoints for creating, retrieving, updating, and deleting credentials for different credential types including Shell, Database, FTP, Cloud, ESX, ITSM, and Splunk.

Credentials are identified by a unique key and include various parameters specific to the credential type. The API requires authentication and the CredentialsManage permission to perform operations.

Endpoints

Get Credentials

Retrieves credentials for a specified type and key.

HTTP Request

GET /credentials

Query Parameters

ParameterTypeRequiredDescription
keystringYesUnique identifier for the credentials
typestringYesType of credentials (Shell, Database, FTP, Cloud, ESX, ITSM, Splunk)

Response Returns a Credentials object with the following properties:

{
"Version": 0,
"CredentialType": "Shell",
"DeviceOnlineDetection": "None",
"Key": "example-key",
"PublicKeys": ["string"],
"Parameters": {"username": "user", "password": "***"},
"Prompts": ["string"],
"LastModifiedDateUtc": "2025-08-21T10:23:32.0000000Z",
"IsTrusted": true,
"NotTrustedReason": "",
"DiscoveryTaskId": 0,
"DiscoveryStatusMessage": "",
"DiscoveryTaskStatus": "Complete"
}

Create Credentials

Adds new credentials for a specified type and key.

HTTP Request

POST /credentials/add

Authentication Requires authentication and the CredentialsManage permission.

Request Body

{
"Credentials": {
"CredentialType": "Shell",
"DeviceOnlineDetection": "None",
"Key": "example-key",
"PublicKeys": ["string"],
"Parameters": {"username": "user", "password": "secret"},
"Prompts": ["string"],
"DecryptionErrors": {},
"LastModifiedDateUtc": "2025-08-21T10:23:32.0000000Z",
"IsTrusted": false,
"NotTrustedReason": "",
"DiscoveryTaskId": 0,
"DiscoveryStatusMessage": "",
"DiscoveryTaskStatus": "AwaitingPickup"
}
}

Parameters

ParameterTypeRequiredDescription
CredentialTypeenumYesType of credential (Unknown, Shell, Database, FTP, Cloud, ESX, ITSM, Splunk)
DeviceOnlineDetectionenumNoMethod for detecting if device is online (None, Ping, TcpConnect)
KeystringYesUnique identifier for the credentials
PublicKeysarrayNoList of public keys
ParametersobjectYesDictionary of credential parameters (e.g., username, password)
PromptsarrayNoList of prompts
IsTrustedbooleanNoWhether the credential is trusted

Response Returns the created Credentials object.

Update Credentials

Updates existing credentials for a specified type and key.

HTTP Request

POST /credentials/update

Authentication Requires authentication and the CredentialsManage permission.

Request Body Similar to the Create Credentials endpoint, but updates an existing credential.

Response Returns the updated Credentials object.

Delete Credentials

Deletes credentials for a specified type and key.

HTTP Request

POST /credentials/delete

Authentication Requires authentication and the CredentialsManage permission.

Query Parameters

ParameterTypeRequiredDescription
keystringYesUnique identifier for the credentials to delete
typestringYesType of credentials to delete

Response Returns a success status code (200) if the credentials were successfully deleted.

Credential Types

The following credential types are supported:

TypeDescription
ShellCommand-line shell credentials
DatabaseDatabase connection credentials
FTPFile Transfer Protocol credentials
CloudCloud service credentials
ESXVMware ESX/ESXi credentials
ITSMIT Service Management credentials
SplunkSplunk credentials

Online Detection Methods

The following online detection methods are available:

MethodDescription
NoneNo online detection
PingUse ICMP ping to detect if device is online
TcpConnectUse TCP connection to detect if device is online