get_accounts
Gets accounts.
Path:
/lib/server/get_accounts.js
Parameters:
Name | Type | Description |
---|---|---|
mode | String | Specifies the mode to retrieve accounts for. Can be set to: ManagedAccounts, UnmanagedAccounts, or FavoriteAccounts |
newcode | String | |
localOnly | Boolean | Specifies if only local accounts should be retrieved. |
Example Request:
{
"Script":"@/lib/server/get_accounts.js",
args :
{
"mode" : "ManagedAccounts",
"newcode" : "",
"localOnly" : false
}
}
Example Response:
{
"success": true,
"Result": {
"IsAggregate": false,
"Count": 62,
"Columns": [
{
"Name": "ID",
"IsHidden": false,
"DDName": "_ID",
"Title": "ID",
"DDTitle": "ID",
"Description": "Row Identifier (primary key)",
"Type": 12,
"Format": null,
"Width": 0,
"TableKey": "Primary",
"ForeignKey": null,
"TableName": "VaultAccount"
},
...
],
"FullCount": 62,
"Results": [
{
"Entities": [
{
"Type": "VaultAccount",
"Key": "55b71...",
"IsForeignKey": false
},
{
"Type": "Server",
"Key": "3318be...",
"IsForeignKey": false
}
],
"Row": {
"Name": "Server.Name",
"User": "123",
"AccountDiscoveredTime": null,
"Status": "Unknown",
"UseWheel": false,
"ID": "55b71...",
"Host": "3318b...",
"IsManaged": false,
"Mode": null,
"Description": "",
"ActiveCheckouts": 0,
"ComputerClass": "CheckPointGaia",
"FQDN": "1.1.1.1",
"PasswordResetLastError": null,
"DefaultCheckoutTime": null,
"WorkflowEnabled": null,
"ProxyUser": null,
"SessionType": "Ssh",
"PasswordResetRetryCount": null,
"WorkflowApprover": null,
"NeedsPasswordReset": "NotNeeded",
"LastChange": null,
"MissingPassword": false,
"ServerID": "3318b..."
}
},
{
"Entities": [
{
"Type": "VaultAccount",
"Key": "695fa5...",
"IsForeignKey": false
},
{
"Type": "Server",
"Key": "ddbde...",
"IsForeignKey": false
}
],
"Row": {
"Name": "Server.Name",
"User": "aaa",
"AccountDiscoveredTime": null,
"Status": "Unknown",
"UseWheel": false,
"ID": "695fa5...",
"Host": "ddbde...",
"IsManaged": false,
"Mode": null,
"Description": null,
"ActiveCheckouts": 0,
"ComputerClass": "CheckPointGaia",
"FQDN": "127.0.0.2",
"PasswordResetLastError": null,
"DefaultCheckoutTime": null,
"WorkflowEnabled": null,
"ProxyUser": null,
"SessionType": "Ssh",
"PasswordResetRetryCount": null,
"WorkflowApprover": null,
"NeedsPasswordReset": "NotNeeded",
"LastChange": null,
"MissingPassword": false,
"ServerID": "ddbdef..."
}
},
...
],
"ReturnID": ""
},
"Message": null,
"MessageID": null,
"Exception": null,
"ErrorID": null,
"ErrorCode": null,
"InnerExceptions": null
}
Updated almost 5 years ago