BeyondInsight and Password Safe 24.2
API Guide
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC:9/4/2024
Table of Contents
BeyondInsight and Password Safe API overview 14
Usage 15
API key 15
Session state 15
Base endpoint 15
Authorization header 15
Two-Factor authentication 16
OAuth public API authentication 16
Use certificates with APIs 17
Request body 17
Common response codes 17
Authentication 22
POST Auth/SignAppin 22
POST Auth/Signout 23
OAuth public API authentication 24
POST Auth/Connect/Token 24
POST Auth/SignAppIn 25
BeyondInsight APIs 26
Access levels 27
GET AccessLevels 27
POST UserGroups/{userGroupId}/SmartRules/{smartRuleId}/AccessLevels 28
Address groups 29
GET Organizations/{orgID}/AddressGroups 29
GET AddressGroups 30
GET AddressGroups/{addressGroupId}/Addresses 31
POST AddressGroups/{id}/Addresses 32
DELETE AddressGroups/{addressGroupId} 33
DELETE AddressGroups/{addressGroupId}/Addresses 34
GET AddressGroups/?name={name} 35
GET AddressGroups/{id} 36
PUT AddressGroups/{id} 36
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
2
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
POST AddressGroups 37
GET Addresses/{id} 38
DELETE Addresses/{id} 39
PUT Addresses/{id} 40
API registrations 42
GET ApiRegistrations 42
GET ApiRegistrations/{id} 44
POST ApiRegistrations 45
PUT ApiRegistrations/{id} 48
DELETE ApiRegistrations/{id} 52
POST ApiRegistrations/{id}/Rotate 52
GET ApiRegistrations/{id}/Key 53
Assets 55
GET Assets/{id} 56
GET Workgroups/{workgroupID}/Assets 57
GET Workgroups/{workgroupName}/Assets 59
GET Workgroups/{workgroupName}/Assets?name={name} 61
POST Workgroups/{workgroupID}/Assets 62
POST Workgroups/{workgroupName}/Assets 64
PUT Assets/{id} 66
POST Assets/Search 68
DELETE Assets/{id} 70
DELETE Workgroups/{workgroupName}/Assets?name={name} 71
Smart Rule Assets 72
GET SmartRules/{id}/Assets 72
Asset attributes 74
GET Assets/{assetID}/Attributes 74
POST Assets/{assetID}/Attributes/{attributeID} 75
DELETE Assets/{assetID}/Attributes 76
DELETE Assets/{assetID}/Attributes/{attributeID} 76
Attribute types 78
GET AttributeTypes 78
GET AttributeTypes/{id} 79
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
3
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
POST AttributeTypes 79
DELETE AttributeTypes/{id} 80
Attributes 82
GET AttributeTypes/{attributeTypeID}/Attributes 82
GET Attributes/{id} 83
POST AttributeTypes/{attributeTypeID}/Attributes 84
DELETE Attributes/{id} 86
Configuration 87
GET Configuration/Version 87
Databases 88
GET Databases 88
GET Databases/{id} 89
GET Assets/{id}/Databases 90
POST Assets/{id}/Databases 91
PUT Databases/{id} 92
DELETE Databases/{id} 93
EPM Policies 95
POST /{id}/epmapplications/add 95
Entitlements 97
GET Entitlements 97
GET Entitlements?groupIDs={groupID1,groupID2,groupID3…} 98
Imports 100
POST Imports 100
Operating Systems 102
GET OperatingSystems 102
Organizations 103
GET Organizations 103
GET Organizations/{id} 104
GET Organizations?name={name} 104
Permissions 106
GET Permissions 106
User group permissions 107
GET UserGroups/{userGroupID}/Permissions 107
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
4
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
POST UserGroups/{userGroupId}/Permissions 107
DELETE UserGroups/{userGroupId}/Permissions 108
Smart Rules 110
GET SmartRules 110
GET SmartRules/{id} 111
GET UserGroups/{id}/SmartRules/ 112
GET SmartRules?title={title} 113
GET Organizations/{orgID}/SmartRules?title={title} 114
POST SmartRules/FilterAssetAttribute 115
POST SmartRules/{id}/Process 116
DELETE SmartRules/{id} 117
DELETE SmartRules?title={title} 118
DELETE Organizations/{orgID}/SmartRules?title={title} 119
Subscription delivery (Cloud only) 120
GET Subscriptions/Delivery 120
POST Subscriptions/Delivery/download?id={id} 121
User groups 123
GET UserGroups 123
GET UserGroups/{id} 124
GET UserGroups?name={name} 125
POST UserGroups 126
DELETE UserGroups/{id} 129
DELETE UserGroups?name={name} 130
User group memberships 132
GET Users/{userID}/UserGroups 132
POST Users/{userID}/UserGroups/{userGroupID} 133
DELETE Users/{userID}/UserGroups/{userGroupID} 134
User audits 135
GET UserAudits 135
GET UserAudits/{auditId:int}/UserAuditDetails 136
Users 138
GET Users 138
GET UserGroups/{userGroupId}/Users 140
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
5
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
GET Users/{id} 141
POST Users 142
POST Users/{id}/Quarantine 145
POST UserGroups/{userGroupId}/Users 146
POST/{id}/Users/{id}/RecycleClientSecret 148
PUT Users/{id} 148
DELETE Users/{id} 150
Workgroups 152
GET Workgroups 152
GET Workgroups/{id} 153
GET Workgroups?name={name} 153
POST Workgroups 154
Deprecated 156
Imports 156
Smart Rules 157
User Groups 159
Workgroups 160
Password Safe APIs 162
Access policies 163
GET AccessPolicies 163
POST AccessPolicies/Test 164
Aliases 166
GET Aliases 166
GET Aliases/{id} 167
GET Aliases?name={name} 168
Applications 171
GET Applications 171
GET Applications/{id} 172
Attributes 174
GET ManagedAccounts/{managedAccountID}/Attributes 174
GET ManagedSystems/{managedSystemID}/Attributes 175
POST ManagedAccounts/{managedAccountID}/Attributes/{attributeID} 176
POST ManagedSystems/{managedSystemID}/Attributes/{attributeID} 177
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
6
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
DELETE ManagedAccounts/{managedAccountID}/Attributes 178
DELETE ManagedAccounts/{managedAccountID}/Attributes/{attributeID} 179
DELETE ManagedSystems/{managedSystemID}/Attributes 179
DELETE ManagedSystems/{managedSystemID}/Attributes/{attributeID} 180
Credentials 182
GET Credentials/{requestId} 182
GET Aliases/{aliasId}/Credentials/{requestId} 183
Custom platforms 185
GET CustomPlatforms 185
GET CustomPlatforms/{id} 186
POST CustomPlatforms/Import 187
POST CustomPlatforms/{id}/Export 188
Directories 189
GET Directories 189
GET Directories/{id} 190
POST Workgroups/{id}/Directories 191
PUT Directories/{id} 194
DELETE Directories 196
Oracle internet directories 198
GET OracleInternetDirectories 198
GET OracleInternetDirectories/{id} 199
GET Organizations/{id}/OracleInternetDirectories 199
POST OracleInternetDirectories/{id}/Services/Query 200
POST OracleInternetDirectories/{id}/Test 201
DSS key policies 203
GET DSSKeyRules 203
GET DSSKeyRules/{id} 204
Entity types 206
GET EntityTypes 206
Functional accounts 207
GET FunctionalAccounts 207
GET FunctionalAccounts/{id} 208
POST FunctionalAccounts 209
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
7
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
DELETE FunctionalAccounts/{id} 211
ISA requests 213
POST ISARequests 213
ISA sessions 215
POST ISASessions 215
Keystrokes 217
GET Sessions/{sessionId:int}/Keystrokes 217
GET Keystrokes/{id:long} 218
POST Keystrokes/Search 218
Linked accounts 220
GET ManagedSystems/{systemID}/LinkedAccounts 220
POST ManagedSystems/{systemID}/LinkedAccounts/{accountID} 223
DELETE ManagedSystems/{systemID}/LinkedAccounts 225
DELETE ManagedSystems/{systemID}/LinkedAccounts/{accountID} 226
Managed accounts 228
Role-based access 228
GET ManagedAccounts 228
GET ManagedAccounts?systemName={systemName}&accountName={accountName} 232
Provisioning 233
GET ManagedAccounts/{id} 234
GET ManagedSystems/{systemID}/ManagedAccounts 237
GET ManagedSystems/{systemID}/ManagedAccounts?name={name} 240
PUT ManagedAccounts/{id} 243
POST ManagedSystems/{systemID}/ManagedAccounts 251
DELETE ManagedAccounts/{id} 261
DELETE ManagedSystems/{systemID}/ManagedAccounts/{accountName} 262
DELETE ManagedSystems/{id}/ManagedAccounts 263
Managed account credentials 264
PUT ManagedAccounts/{managedAccountID}/Credentials 264
PUT Credentials?workgroupName={workgroupName}&assetName=
{assetName}&accountName={accountName} 265
POST ManagedAccounts/{managedAccountID}/Credentials/Test 266
POST ManagedAccounts/{managedAccountID}/Credentials/Change 267
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
8
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
POST ManagedSystems/{systemId}/ManagedAccounts/Credentials/Change 268
Quick rule managed accounts 270
GET QuickRules/{quickRuleID}/ManagedAccounts 270
PUT QuickRules/{quickRuleID}/ManagedAccounts 273
POST QuickRules/{quickRuleID}/ManagedAccounts/{accountID} 276
DELETE QuickRules/{quickRuleID}/ManagedAccounts/{accountID} 278
Smart Rule managed accounts 280
GET SmartRules/{smartRuleID}/ManagedAccounts 280
Managed account applications 283
GET ManagedAccounts/{accountID}/Applications 283
POST ManagedAccounts/{accountID}/Applications/{applicationID} 284
DELETE ManagedAccounts/{accountID}/Applications/{applicationID} 285
Response codes 286
DELETE ManagedAccounts/{accountID}/Applications 286
Managed systems 287
GET ManagedSystems/{id} 288
GET ManagedSystems 291
GET Assets/{assetId}/ManagedSystems 296
GET Databases/{databaseID}/ManagedSystems 299
GET FunctionalAccounts/{id}/ManagedSystems 302
GET Workgroups/{id}/ManagedSystems 307
PUT ManagedSystems/{id} 311
POST Assets/{assetId}/ManagedSystems 319
POST Databases/{databaseID}/ManagedSystems 325
POST Workgroups/{id}/ManagedSystems 329
DELETE ManagedSystems/{id} 337
Quick rule managed systems 338
GET QuickRules/{quickRuleID}/ManagedSystems 338
PUT QuickRules/{quickRuleID}/ManagedSystems 340
POST QuickRules/{quickRuleID}/ManagedSystems/{systemID} 341
DELETE QuickRules/{quickRuleID}/ManagedSystems/{systemID} 343
Smart Rule managed systems 345
Nodes 348
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
9
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
Password policies 350
GET PasswordRules 350
GET PasswordRules?enabledproducts={productName} 351
GET PasswordRules/{id} 353
Platforms 355
GET Platforms 355
GET Platforms/{id} 356
GET EntityTypes/{id}/Platforms 358
Propagation action types 360
GET PropagationActionTypes 360
Propagation actions 361
GET PropagationActions 361
GET PropagationActions/{id} 362
Managed account propagation actions 363
GET ManagedAccounts/{id}/PropagationActions/ 363
POST ManagedAccounts/{id}/PropagationActions/{propagationActionID} 364
DELETE ManagedAccounts/{id}/PropagationActions/ 365
DELETE ManagedAccounts/{id}/PropagationActions/{propagationActionID} 365
Quick rules 367
POST QuickRules 367
GET QuickRules 369
GET QuickRules/{id} 369
GET QuickRules?title={title} 370
GET Organizations/{orgID}/QuickRules?title={title} 371
DELETE QuickRules/{id} 372
DELETE QuickRules?title={title} 373
DELETE Organizations/{orgID}/QuickRules?title={title} 374
Replay 375
POST pbsm/replay 375
GET pbsm/replay/{replayId} 376
PUT pbsm/replay/{replayId} 377
DELETE pbsm/replay/{replayId} 378
Requests 379
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
10
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
GET Requests 379
POST Requests 380
POST Aliases/{aliasId}/Requests 382
PUT Requests/{id}/Checkin 384
PUT Requests/{id}/Approve 385
PUT Requests/{id}/Deny 386
PUT Requests/{id}/RotateOnCheckin 387
Request termination 389
POST ManagedAccounts/{managedAccountID}/Requests/Terminate 389
POST ManagedSystems/{managedSystemID}/Requests/Terminate 390
POST Users/{userID}/Requests/Terminate 391
Request sets 392
GET RequestSets 392
POST RequestSets 393
Roles 396
GET Roles 396
User group roles 397
GET UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles 397
POST UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles 398
DELETE UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles 399
Sessions 400
GET Sessions 400
GET Sessions/{id} 402
POST Requests/{requestID}/Sessions 404
POST Sessions/Admin 406
Session locking 410
POST Sessions/{sessionID}/Lock 410
POST ManagedAccounts/{managedAccountID}/Sessions/Lock 411
POST ManagedSystems/{managedSystemID}/Sessions/Lock 411
Session termination 413
POST Sessions/{sessionID}/Terminate 413
POST ManagedAccounts/{managedAccountID}/Sessions/Terminate 414
POST ManagedSystems/{managedSystemID}/Sessions/Terminate 414
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
11
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
Synced accounts 416
GET ManagedAccounts/{id}/SyncedAccounts 416
POST ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID} 419
DELETE ManagedAccounts/{id}/SyncedAccounts 421
DELETE ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID} 422
Deprecated 424
Aliases 424
Keystrokes 425
Managed account credentials 427
Ticket systems 429
GET TicketSystems 429
Secrets Safe APIs 430
Folders 431
POST Secrets-Safe/Folders/ 431
POST Secrets-Safe/Folders/{id} 432
GET Secrets-Safe/Folders/ 433
PUT Secrets-Safe/Folders/{id} 434
DELETE Secrets-Safe/Folders/{id} 435
GET Secrets-Safe/Folders/{id} 436
Secrets 437
POST Secrets-Safe/Folders/{folderId:guid}/secrets 437
POST Secrets-Safe/Folders/{folderId:guid}/secrets/text 439
POST Secrets-Safe/Folders/{folderId:guid}/secrets/file 441
PUT Secrets-Safe/Secrets/{secretId:guid}/ 443
PUT Secrets-Safe/Secrets/{secretId:guid}/text 445
PUT Secrets-Safe/Secrets/{secretId:guid}/file 447
GET Secrets-Safe/Secrets 449
GET Secrets-Safe/Secrets/{secretId:guid} 451
GET Secrets-Safe/Folders/{folderId:guid}/secrets 452
GET Secrets-Safe/Secrets/{secretId:guid}/text 453
GET Secrets-Safe/Secrets/{secretId:guid}/file 455
GET Secrets-Safe/Secrets/{secretId:guid}/file/download 456
DELETE Secrets-Safe/Secrets/{secretId:guid}/ 457
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
12
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
Appendix 458
Migration from v1 or v2 458
Authorization header 458
Endpoint comparison 458
Endpoint mapping 459
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
13
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
This page needed for table of
contents. Do not delete.
BeyondInsight and Password Safe API overview
This document specifies the Representational State Transfer (REST) compliant Application Programmer Interface (API) over HTTPS for
BeyondInsight and Password Safe. It is a way to integrate a portion of the BeyondInsight and Password Safe functionality into your own
applications.
Using the REST API makes it easier for users to build customized solutions for their specific needs while ensuring secure data
transmission. The API provides a set of predefined operations, or endpoints, that can be accessed using HTTP Requests, including GET
requests to retrieve data, POST requests to create new data, PUT requests to update existing data, and DELETE requests to remove
data.
This resource is intended for readers with knowledge of HTTPS request and response processing, web development, and JSON notation.
For more information about enabling API Access, please see the following:
l
BeyondInsight User Guide at https://www.beyondtrust.com/docs/beyondinsight-password-safe/bi/user/index.htm
l
Password Safe Admin Guide at https://www.beyondtrust.com/docs/beyondinsight-password-safe/ps/admin/index.htm
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
14
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Usage
API key
The API key is a cryptographically strong random sequence of numbers hashed into a 128-character string. It is encrypted and stored
internally using AES 256 encryption. Any language with a Representational State Transfer (REST) compliant interface can access the API
with the API key and RunAs in the authorization header.
Note: Some environments may still use an old-style API key, which is a formatted Globally Unique Identifier (GUID). Rotating
the API Key produces the new-style API key described above.
Session state
Session state is maintained between API calls. The method is dependent on the scripting language. Initiate a session using API POST
Auth/SignAppIn and always call POST Auth/Signout when you are done.
Base endpoint
The following base endpoint is used throughout this document. For on-premises instances, the-server is a placeholder and should be
replaced with the server name in your environment.
<base> = https://the-server/BeyondTrust/api/public/v3
For cloud instances, the-cloud-instance-url is a placeholder and should be replaced with the cloud instance URL in your environment.
<base> = https://the-cloud-instance-url/BeyondTrust/api/public/v3
SSL is required to use the Password Safe Public API.
Authorization header
Use the web request authorization header to communicate the API application key, the RunAs username, and the user password:
l
key: The API key configured in BeyondInsight for your application.
l
runas: The username of a BeyondInsight user that has been granted permission to use the API key.
l
pwd: The RunAs user password surrounded by square brackets (optional; required only if the User Password is required on the
application API registration).
Authorization=PS-Auth key=c479a66f…c9484d; runas=doe-main\johndoe; pwd=[un1qu3];
Note: The API keys in the examples have been shortened for brevity. A domain user is being used. When using a domain
user, depending on the programming or scripting tool used, you may need to escape the backslash (\) character between the
domain name and username.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
15
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Two-Factor authentication
Depending on how the two-factor server is configured, a programmatic two-factor challenge is sometimes required.
No challenge
If the two-factor server is configured to authenticate through a push or mobile two-factor challenge, a challenge response is often not
required. The first call to POST Auth/SignAppIn logs the user in, as long as the authentication request to the two-factor server does not
time out.
Challenge
When a two-factor challenge is configured, two calls to POST Auth/SignAppIn are required and session state must be maintained
between these two calls to validate the two-factor challenge.
The initial call to POST Auth/SignAppIn results in a 401 Unauthorized response which contains a header WWW-Authenticate-2FA
containing the prompt from the authentication service. The prompt can be used to prompt the user for the challenge answer.
Note: If the WWW-Authenticate-2FA header is not present, a two-factor authentication challenge has not been configured for
the user.
When the challenge answer has been received from the user, POST Auth/SignAppIn is called again with the challenge answer in the
authorization header, similar to the other authorization parameters:
l
challenge: The answer to the two-factor challenge.
Authorization=PS-Auth key=c479a66f…c9484d; runas=doe-main\johndoe; pwd=[un1qu3];
challenge=543687;
Note: The challenge answer is only required on the second call to POST Auth/SignAppIn and not on subsequent requests.
OAuth public API authentication
The OAuth sign-in method uses the OAuth client credential flow. The client credentials grant type is used by clients to obtain an access
token outside of the context of a user.
Only users with user type Application, who are associated to an API Access Policy API registration in BeyondInsight, can use this
authentication method.
Note: Impersonation for the OAuth client credential flow is different than API key. Instead of providing the RunAs user as part
of the Authorization header you provide the RunAs user using a new RunAs header. You can only impersonate users who are
in the same group as the application user.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
16
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Note: Setting up an OAuth authentication method requires the following steps:
l
Create an API Registration using the API Access Policy type
l
Create an application user
l
Assign your access policy to the user
l
Record their client ID and secret for later use
l
Assign user to a group with necessary permissions
For more information, please see OAuth 2.0 Client Credentials Grant at https://oauth.net/2/grant-types/client-credentials.
Use certificates with APIs
When Client certificate required is enabled on API authentication, the following items are required to authenticate via API:
l
Client certificate must be present on the calling machine/instance.
l
Client certificate must be trusted by the appliance/Instance.
l
Client certificate must be included in script when calling Password Safe API.
For cloud certificate authentication, the client certificate must be signed by a well-known CA for cloud instance to trust it and allow
authentication.
Tip: The client cert can be downloaded from the Password Safe appliance/Instance in the Configuration > System >
Downloads menu.
For examples of utilizing a client cert in your API script, refer to the default scripts in the resource kit for your relevant version.
Request body
For Password Safe API Endpoints, some request bodies have multiple versions available. The request body versions allow for different
sets of data to be sent to a API endpoint dependent on what needs to be accomplished by the request. Each request body version is
outlined on its relevant endpoint and these body versions are only relevant to their listed URI.
When using a request body, if no version is specified in the URI, the default listed version is used (typically v3.0). To use a specific version,
the version must be included in the URI.
Example: https://server/BeyondTrust/api/public/v3.1/endpoint
Common response codes
Below are response codes common to all APIs. Custom responses are detailed in the individual endpoints.
l
200 Request successful.
l
204 Request successful. No content in body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
17
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
400 Bad Request Validation failure, missing request body, or string values exceed the maximum length. Reason in response
body.
l
401 Unauthorized User is not authenticated. Typical reasons include:
o
An invalid product license was detected.
o
The request headers were not set properly.
o
The server could not verify the validity of the request (due to one or more API factors).
o
The user session has expired.
o
The API key has been rotated but has not been updated in the calling script or application.
Tip: When you encounter a 401 error due to factor validation failure, a User Audit entry is created in BeyondInsight and an
email is sent to the administrator detailing the reason. Look here first for the reason why authorization failed.
l
403: Access forbidden. User does not have the appropriate role or permission.
Tip: A 403 can also occur when SSL trust cannot be established.
l
404 Object not found where expected. Reason in response body.
l
500 Unexpected server error occurred. Please contact the developers.
Examples
Example: C#
Create and reuse a persistent connection using the System.Net.Http.HttpClient class.
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization",
"PS-Auth key= c479a66f…c9484d; runas=doe-main\\johndoe;");
string json = Newtonsoft.Json.JsonConvert.SerializeObject(null);
System.Net.Http.StringContent content = new StringContent(json);
content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue
("application/json");
HttpResponseMessage signInResponse = client.PostAsync("<base>/Auth/SignAppin",
content).Result;
Subsequent calls:
HttpResponseMessage getResponse = client.GetAsync("<base>/ManagedAccounts").Result;
User Password Factor Enabled (header example only)
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
18
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization",
"PS-Auth key= c479a66f…c9484d; runas=doe-main\\johndoe; pwd=[un1qu3];");
Example: Powershell
Powershell internally creates a session variable to use for each subsequent call; Invoke-RestMethod CmdLet options -
SessionVariable and -WebSession respectively. In the below example, the variable is named "session" and has script-level
scope.
$headers = @{ Authorization="PS-Auth key=c479a66f…c9484d; runas=doe-main\\johndoe;"; };
$uri = "<base>/Auth/SignAppin";
$signinResult = Invoke-RestMethod -Uri $uri -Method POST -Headers $headers -
SessionVariable script:session;
Subsequent calls:
$uri = "<base>/ManagedAccounts";
$accounts = Invoke-RestMethod -Uri $uri -Method GET -WebSession $script:session -Headers
$headers;
Example: Java
Create and reuse a persistent connection using the java.net.HttpURLConnection class.
URL baseURL = new URL("HTTPS", "the-server", 443, "/BeyondTrust/api/public/v3/");
URL url = new URL(baseURL, "Auth/SignAppIn");
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setRequestProperty("Authorization","PS-Auth key=c479a66f…c9484d; runas=doe-
main\\johndoe;");
Example: Ruby
Using the rest-client gem, carry over the ASP.NET_SessionId header.
samp_key = 'PS-Auth key= c479a66f…c9484d; runas=doe-main\\johndoe;'
result = RestClient::Request.execute(method: :post, url: '<base>/Auth/SignAppin',
:headers => {‘Authorization’ => samp_key} )
session_id = result.cookies["ASP.NET_SessionId"]
Subsequent calls:
result = RestClient::Request.execute(method: :get, url: '<base>/ManagedAccounts',
:headers=>{‘Authorization’ => samp_key, :cookies => {'ASP.NET_SessionId' => session_id}}
)
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
19
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Example: Python
Create and reuse a persistent connection using the requests module.
header = {'Authorization': 'PS-Auth key=c479a66f…c9484d; runas=doe-main\\johndoe;'}
session = requests.Session()
session.headers.update(header)
response = session.post('<base>/Auth/SignAppin')
Subsequent calls:
accounts = session.get('<base>/ManagedAccounts')
Example: Bash
Using curl, option –c stores authentication information for subsequent requests and –b uses it in subsequent API calls.
curl -i -c apiToken -X POST https:<base>/Auth/SignAppin -H "Content-Type:
application/json" -H "Authorization: PS-Auth key=c479a66f…c9484d; runas=doe-
main\\johndoe;" -d ""
Subsequent calls:
curl -i -b apiToken -X GET https:<base>/ManagedAccounts
Workflow
There are some loose dependencies between the APIs. A typical sequence is to list accounts or find an account, request a password,
retrieve that password (once approved), and then release the password.
Create and manage an asset, create user group, assign roles
Case: Create and manage an asset, create a managed account, create a managed account quick rule, create/provision an
LDAP/AD/BeyondInsight user group, grant Read access to new Smart Rule with requester role and access policy.
l
POST <base>/Auth/SignAppin
l
POST <base>/Workgroups/{ID}/Assets
l
POST <base>/Assets/{assetId}/ManagedSystems
l
POST <base>/ManagedSystems/{managedSystemId}/ManagedAccounts
l
POST <base>/QuickRules
l
POST <base>/UserGroups
l
POST <base>/UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles
l
POST <base>/Auth/Signout
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
20
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Retrieve a password
Case: request, retrieve, and check in a password for a managed account:
l
POST <base>/Auth/SignAppin
l
GET <base>/ManagedAccounts OR GET <base>/ManagedAccounts?systemName={systemName}&accountName=
{accountName}
l
POST <base>/Requests
l
GET <base>/Credentials/{requestId}
l
PUT <base>/Requests/{requestId}/Checkin
l
POST <base>/Auth/Signout
Create a session
Case: request a session, create a session, and check in the request for a managed account:
l
POST <base>/Auth/SignAppin
l
GET <base>/ManagedAccounts OR GET <base>/ManagedAccounts?systemName={systemName}&accountName=
{accountName}
l
POST <base>/Requests (AccessType="RDP" or AccessType="SSH" or AccessType="App")
l
POST <base>/Requests/{requestId}/Sessions (SessionType == Request.AccessType above)
l
PUT <base>/Requests/{requestId}/Checkin
l
POST <base>/Auth/Signout
Retrieve a password as an ISA
Case: create an ISA password request:
l
POST <base>/Auth/SignAppin
l
GET <base>/ManagedAccounts OR GET <base>/ManagedAccounts?systemName={systemName}&accountName=
{accountName}
l
POST <base>/ISARequests
l
POST <base>/Auth/Signout
Create a session as an ISA
Case: create an ISA session:
l
POST <base>/Auth/SignAppin
l
GET <base>/ManagedAccounts OR GET <base>/ManagedAccounts?systemName={systemName}&accountName=
{accountName}
l
POST <base>/ISASessions
l
POST <base>/Auth/Signout
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
21
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Authentication
Quick navigation
l
"POST Auth/SignAppin" on page 22
l
"POST Auth/Signout" on page 23
l
"POST Auth/Connect/Token " on page 24 (OAuth)
l
"POST Auth/SignAppIn " on page 25 (OAuth)
POST Auth/SignAppin
Purpose
Authenticates the provided credentials and creates a user session.
Required permissions
A user group to which the user belongs must be granted access to the API key given in authorization header. Must be running script from a
valid source address as configured in API registration for the given API key.
Request body
None.
Response body
Content-Type: application/json
{
UserId: int,
SID: string,
EmailAddress: string,
UserName: string,
Name: string
}
Response codes
l
200 Request successful. User model in the response body.
l
403 Access forbidden. Returned if the Password Safe license is not valid.
l
410 API version has been disabled.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
22
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
POST Auth/Signout
Purpose
Terminates the current user session.
Required permissions
None.
Request body
None.
Response body
None.
Response codes
l
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
23
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
OAuth public API authentication
POST Auth/Connect/Token
Purpose
Authenticates the provided credentials and allows access to the public API.
Required permissions
Application user must be associated to an API Access Policy API registration and must belong to a user group with necessary
permissions.
Request body
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=[user-client-id]&client_secret=[user-client-secret]
Response body
Content-Type: application/x-www-form-urlencoded
{
access_token: string,
expires_in: int,
token_type:string = “Bearer”,
scope: string
}
Response body details
l
access_token: The privileged credential to use in the Authorization header for API requests to authenticate the use.
l
expires_in: Lifetime (in seconds) that the token is valid.
l
token_type: Describes the access token (always Bearer).
l
scope: Describes the scope of the access token, which is what the token is allowed to perform. For application users, this consists
of only a scope called publicapi.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
24
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Auth/SignAppIn
Request body
None .
Header
Authorization: Bearer [access_token]
Note: Cookies are still supported using this sign-in method.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
25
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
BeyondInsight APIs
The BeyondInsight APIs require a valid BeyondInsight license and are available to Password Safe-licensed installs.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
26
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Access levels
(i.e., None, Read, Read/Write)
Quick navigation
l
"GET AccessLevels" on page 27
l
"POST UserGroups/{userGroupId}/SmartRules/{smartRuleId}/AccessLevels" on page 28
GET AccessLevels
Purpose
Returns a list of access levels for permissions, for example, None, Read, and Read/Write.
Required permissions
User Accounts Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
AccessLevelID:int,
Name: string,
},
]
Response codes
200 - Request successful. Access Levels in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
27
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST UserGroups/{userGroupId}/SmartRules/
{smartRuleId}/AccessLevels
Purpose
Sets the Access Level for a User Group Smart Rule.
Required permissions
l
User Accounts Management (Read/Write).
URL parameters
l
userGroupId: ID of the user group.
l
smartRuleId: ID of the Smart Rule.
Request body
Content-Type: application/json
{
AccessLevelID: int
}
Response body
None.
Response codes
l
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
28
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Address groups
Quick navigation
l
"GET Organizations/{orgID}/AddressGroups" on page 29
l
"GET AddressGroups" on page 30
l
"GET AddressGroups/{id}" on page 36
l
"GET AddressGroups/{addressGroupId}/Addresses" on page 31
l
"GET AddressGroups/?name={name}" on page 35
l
"POST AddressGroups/{id}/Addresses" on page 32
l
"POST AddressGroups" on page 37
l
"DELETE AddressGroups/{addressGroupId}" on page 33
l
"DELETE AddressGroups/{addressGroupId}/Addresses" on page 34
l
"PUT AddressGroups/{id}" on page 36
l
"GET Addresses/{id}" on page 38
l
"DELETE Addresses/{id}" on page 39
l
"PUT Addresses/{id}" on page 40
GET Organizations/{orgID}/AddressGroups
Purpose
List the address groups for a given organization.
Required permissions
l
Current user has access to the organization.
l
Asset Management (Read).
URL parameters
orgId: Organization ID.
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
29
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[
{
AddressGroupID: int,
Name: string,
OrganizationID: guid // can be null
}
]
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
GET AddressGroups
Purpose
List the address groups.
Required permissions
l
Current user has access to the organization.
l
Asset Management (Read).
URL parameters
None.
Request body
None.
Response body
Content-Type: application/json
[
{
AddressGroupID: int,
Name: string,
OrganizationID: guid // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
30
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
]
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
GET AddressGroups/{addressGroupId}/Addresses
Purpose
List the addresses for an address group.
Required permissions
l
Current user has access to the organization.
l
Asset Management (Read).
URL parameters
addressGroupId: Address Group ID.
Request body
None.
Response body
Content-Type: application/json
[
{
AddressID: int,
AddressGroupID: int,
Omit: boolean,
Type: int,
Value: string,
LastUpdatedDate: datetime
}
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
31
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body details
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
POST AddressGroups/{id}/Addresses
Purpose
Create an address in an Address Book.
Required permissions
l
Asset Management (Read/Write).
URL parameters
addressGroupId: Address Group ID.
Request body
{
Type: int,
Value: string,
Omit: bool
}
Request body details
l
Max string length for Value is 225.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
32
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response body
Content-Type: application/json
{
AddressID: int,
AddressGroupID: int,
Omit: bool,
Type: int,
Value: string,
LastUpdatedDate: datetime
}
Response body details
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response codes
201 - Request successful. Address in the response body.
For more information, please see "Common response codes" on page 17.
DELETE AddressGroups/{addressGroupId}
Purpose
Delete the address group and all it's addresses.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
33
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
l
Current user has access to the organization.
l
Asset Management (Read/Write).
URL parameters
addressGroupId: Address Group ID.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE AddressGroups/{addressGroupId}/Addresses
Purpose
Delete the addresses within the address group.
Required permissions
l
Current user has access to the organization.
l
Asset Management (Read/Write).
URL parameters
addressGroupId: Address Group ID.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
34
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
GET AddressGroups/?name={name}
Purpose
Returns the Address Group by name.
Required permissions
l
Asset Management (Read).
Query parameters
name: Name of the Address Group.
Request body
None.
Response body
Content-Type: application/json
{
AddressGroupID: int,
Name: string
}
Response codes
200 - Request successful. Address Group in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
35
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET AddressGroups/{id}
Purpose
Returns the Address Group by ID.
Required permissions
l
Asset Management (Read).
URL parameters
id: ID of the Address Group.
Request body
None.
Response body
Content-Type: application/json
{
AddressGroupID: int,
Name: string
}
Response codes
200 - Request successful. Address Group in the response body.
For more information, please see "Common response codes" on page 17.
PUT AddressGroups/{id}
Purpose
Updates and Address Group by ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
36
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
l
Asset Management (Read/Write).
Request body
Content-Type: application/json
{
Name: string,
}
Request body details
Max string length for Name is 225.
Response body
Content-Type: application/json
{
AddressGroupID: int,
Name: string
}
Response codes
200 - Request successful. Address Group in the response body.
For more information, please see "Common response codes" on page 17.
POST AddressGroups
Purpose
Creates an Address Book.
Required permissions
l
Asset Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
37
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
Content-Type: application/json
{
Name: string
}
Request body details
Max string length for Name is 225.
Response body
Content-Type: application/json
{
AddressGroupID: int,
Name: string
}
Response codes
201 - Request successful. Address Group in the response body.
For more information, please see "Common response codes" on page 17.
GET Addresses/{id}
Purpose
Returns the Address by ID.
Required permissions
l
Asset Management (Read).
URL parameters
id: ID of the Address.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
38
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
{
AddressId: int,
AddressGroupId : int,
Omit: bool,
Type: int,
Value: string,
LastUpdateDate: datetime
}
Response body details
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response codes
200 - Request successful. Address in the response body.
For more information, please see "Common response codes" on page 17.
DELETE Addresses/{id}
Purpose
Deletes an Address by ID.
Required permissions
Asset Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
39
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
PUT Addresses/{id}
Purpose
Updates and Address by ID.
Required permissions
l
Asset Management (Read/Write).
Request body
Content-Type: application/json
{
Type: int,
Value: string,
Omit: bool
}
Request body details
l
Max string length for Value is 225.
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
40
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response body
Content-Type: application/json
{
AddressD: int,
AddressGroupID: int,
Omit: bool,
Type: int,
Value: string,
LastUpdateDate: datetime
}
Response body details
l
Type: The Address type
o
1: Single IP Address
o
2: IP Address Range
o
3: CIDR Notation
o
4: Named Host
l
Omit: true to omit this entry, otherwise false.
Response codes
200 - Request successful. Address in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
41
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
API registrations
Quick navigation
l
"GET ApiRegistrations" on page 42
l
"GET ApiRegistrations/{id}" on page 44
l
"POST ApiRegistrations" on page 45
l
"PUT ApiRegistrations/{id}" on page 48
l
"DELETE ApiRegistrations/{id}" on page 52
l
"POST ApiRegistrations/{id}/Rotate" on page 52
l
"GET ApiRegistrations/{id}/Key" on page 53
GET ApiRegistrations
Purpose
Returns a list of all API registrations.
Required permissions
API Registration Management (Read).
Query parameters
...
Request body
None.
Response body
Content-Type: application/json
{
Id: int,
Name: string,
RegistrationType: string,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
UserPasswordRequired: bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
42
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate: date
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
CreatedDate: date
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate: date
},
...
]
}
Response codes
200 Request successful. API Registration in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
43
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ApiRegistrations/{id}
Purpose
Returns an API registration by ID.
Required permissions
API Registration Management (Read).
Query parameters
Id: ID of the API registration.
Request body
None.
Response body
Content-Type: application/json
{
Id: int,
Name: string,
RegistrationType: string,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
UserPasswordRequired: bool,
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate: date
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
44
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
CreatedDate: date
},
...
],
XForwardedForAuthenticationRules: [
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate: date
},
...
]
}
Response codes
200 Request successful. API Registration in the response body.
For more information, please see "Common response codes" on page 17.
POST ApiRegistrations
Purpose
Creates an API registration.
Required permissions
API Registration Management (Read/Write).
Query parameters
...
Request body
The request body differs by RegistrationType.
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
45
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ApiKeyPolicy
{
Id: int,
Name: string,
RegistrationType: string = “ApiKeyPolicy”,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
UserPasswordRequired: bool,
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
]
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
46
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ApiAccessPolicy
{
Id: int,
Name: string,
RegistrationType: string = “ApiAccessPolicy”,
AccessTokenDuration: int = 60,
Active: bool,
Visible: bool,
ClientCertificateRequired: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
]
}
Response body
Content-Type: application/json
{
Id: int,
Name: string,
RegistrationType: string,
AccessTokenDuration: int,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
UserPasswordRequired: bool,
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
47
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
CreatedDate; date
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
CreatedDate; date
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate; date
},
...
]
}
Response codes
200 Request successful. API Registration in the response body.
For more information, please see "Common response codes" on page 17.
PUT ApiRegistrations/{id}
Purpose
Updates an API registration by ID.
Required permissions
API Registration Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
48
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Query parameters
Id: ID of the API registration.
Request body
The request body differs by Registration Type.
Content-Type: application/json
ApiKeyPolicy
{
Id: int,
Name: string,
RegistrationType: string = “ApiKeyPolicy”,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
UserPasswordRequired: bool,
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
49
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
},
...
]
}
ApiAccessPolicy
{
Id: int,
Name: string,
RegistrationType: string = “ApiAccessPolicy”,
AccessTokenDuration: int = 60,
Active: bool,
Visible: bool,
ClientCertificateRequired: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
},
...
]
}
Response body
Content-Type: application/json
{
Id: int,
Name: string,
RegistrationType: string,
AccessTokenDuration: int,
Active: bool,
Visible: bool,
MultiFactorAuthenticationEnforced: bool,
ClientCertificateRequired: bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
50
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
UserPasswordRequired: bool,
VerifyPsrunSignature: bool,
IPAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate; date
},
...
],
PSRUNRules:[
{
Id:int,
IPAddress: string,
MacAddress: string,
SystemName: string,
FQDN: string,
DomainName: string,
UserId: string,
RootVolumeId: string,
OSVersion: string,
CreatedDate; date
},
...
],
XForwardedForAuthenticationRules:[
{
Id: int,
Type: string,
Value: string,
Description: string,
CreatedDate; date
},
...
]
}
Response codes
200 Request successful. API Registration in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
51
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ApiRegistrations/{id}
Purpose
Deletes the API Registration for the ID provided.
Required permissions
API Registration Management (Read/Write).
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
POST ApiRegistrations/{id}/Rotate
Note: For API Key Policy only.
Purpose
Rotates the API key for an API Key policy API Registration
Required permissions
API Registration Management (Read/Write).
Query parameters
...
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
52
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
string
Response codes
201 Request successful. API key in the response body.
For more information, please see "Common response codes" on page 17.
GET ApiRegistrations/{id}/Key
Note: For API Key Policy only.
Purpose
Retrieves the API key for an API Key policy API Registration.
Required permissions
API Registration Management (Read/Write).
Query parameters
...
Request body
None.
Response body
Content- Type: application/json
string
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
53
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. API Key in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
54
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Assets
Quick navigation
l
"GET Assets/{id}" on page 56
l
"GET Workgroups/{workgroupID}/Assets" on page 57
l
"GET Workgroups/{workgroupName}/Assets" on page 59
l
"GET Workgroups/{workgroupName}/Assets?name={name}" on page 61
l
"POST Workgroups/{workgroupID}/Assets" on page 62
l
"POST Workgroups/{workgroupName}/Assets" on page 64
l
"PUT Assets/{id}" on page 66
l
"POST Assets/Search" on page 68
l
"DELETE Assets/{id}" on page 70
l
"DELETE Workgroups/{workgroupName}/Assets?name={name}" on page 71
l
"GET SmartRules/{id}/Assets" on page 72
For more information on related topics, please see:
l
"Workgroups" on page 152
l
"Smart Rules" on page 110
l
"Managed systems" on page 287
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
55
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Assets/{id}
Purpose
Returns an asset by ID.
Required permissions
Asset Management (Read).
URL parameters
id: ID of the asset.
Request body
None.
Response body
Content-Type: application/json
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
}
Response codes
200 - Request successful. Asset in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
56
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Workgroups/{workgroupID}/Assets
Purpose
Returns a list of assets by Workgroup ID.
Required permissions
Asset Management (Read).
URL parameters
workgroupID: ID of the Workgroup.
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can be used in conjunction only with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
57
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
}
Response codes
200 - Request successful. Assets in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
58
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Workgroups/{workgroupName}/Assets
Purpose
Returns a list of assets by Workgroup name.
Required permissions
Asset Management (Read).
URL parameters
workgroupName: Name of the Workgroup.
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can only be used in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
59
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
}
Response codes
200 - Request successful. Assets in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
60
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Workgroups/{workgroupName}/Assets?name={name}
Purpose
Returns an asset by Workgroup name and asset name.
Required permissions
Asset Management (Read).
URL parameters
workgroupName: Name of the Workgroup.
Query parameters
name: Name of the asset.
Request body
None.
Response body
Content-Type: application/json
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
}
Response codes
200 - Request successful. Asset in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
61
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Workgroups/{workgroupID}/Assets
Purpose
Creates a new asset in the Workgroup, referenced by ID.
Required permissions
Asset Management (Read/Write).
URL parameters
workgroupID: ID of the Workgroup.
Request body
Content-Type: application/json
{
IPAddress: string,
AssetName: string,
DnsName: string,
DomainName: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string
}
Request body details
l
IPAddress: (required) Asset IP address. Max string length is 45.
l
AssetName: (optional) Asset name. If not given, a padded IP address is used. Max string length is 128.
l
DnsName: (optional) Asset DNS name. Max string length is 255.
l
DomainName: (optional) Asset domain name. Max string length is 64.
l
MacAddress: (optional) Asset MAC address. Max string length is 128.
l
AssetType: (optional) Asset type. Max string length is 64.
l
OperatingSystem: (optional) Asset operating system. Max string length is 255.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
62
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
}
Response codes
201 - Request successful. Asset in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
63
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Workgroups/{workgroupName}/Assets
Purpose
Creates a new asset in the Workgroup referenced by name.
Required permissions
Asset Management (Read/Write).
URL parameters
workgroupName: Name of the Workgroup.
Request body
Content-Type: application/json
{
IPAddress: string,
AssetName: string,
DnsName: string,
DomainName: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string
}
Request body details
l
IPAddress: (required) Asset IP address. Max string length is 45.
l
AssetName: (optional) Asset name. If not given, a padded IP address is used. Max string length is 128.
l
DnsName: (optional) Asset DNS name. Max string length is 255.
l
DomainName: (optional) Asset domain name. Max string length is 64.
l
MacAddress: (optional) Asset MAC address. Max string length is 128.
l
AssetType: (optional) Asset type. Max string length is 64.
l
OperatingSystem: (optional) Asset operating system. Max string length is 255.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
64
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
}
Response codes
201 - Request successful. Asset in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
65
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PUT Assets/{id}
Purpose
Updates an existing asset by ID.
Tip: Call GET Assets/{id} (or equivalent) first to get the current state of the asset before calling PUT Assets/{id} to update it
with new values.
Required permissions
Asset Management (Read/Write).
URL parameters
id: ID of the asset.
Request body
Content-Type: application/json
{
WorkgroupID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
}
Request body details
l
WorkgroupID: (required) ID of the Workgroup to which the asset belongs.
l
AssetName: (required) Asset name.
l
DnsName: (required) Asset DNS name.
l
DomainName: (required) Asset domain name.
l
IPAddress: (required) Asset IP address.
l
MacAddress: (required) Asset MAC address. An empty value is accepted and clears any existing value.
l
AssetType: (required) Asset type. An empty value is accepted and clears any existing value.
l
OperatingSystem: (required) Asset operating system. An empty value is accepted and clears any existing value.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
66
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
}
Response codes
200 - Request successful. Asset in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
67
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Assets/Search
Purpose
Returns a list of assets that match the given search criteria.
Required permissions
Asset Management (Read).
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can only be used in conjunction with limit).
Request body
Content-Type: application/json
{
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
}
Request body details
At least one request body property should be provided; any property not provided is ignored. All search criteria is case insensitive and is
an exact match (equality), except for IPAddress.
IPAddress can be a single IP address (10.0.0.1), a comma-delimited list of IPs (10.0.0.1,10.0.0.2,10.0.0.3), an IP range (10.0.0.1-
10.0.0.25), or CIDR notation (10.0.0.0/24).
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
68
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
}
Response codes
200 - Request successful. Assets in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
69
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE Assets/{id}
Purpose
Deletes an asset by ID.
Required permissions
Asset Management (Read/Write).
URL parameters
id: ID of the asset.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
70
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE Workgroups/{workgroupName}/Assets?name={name}
Purpose
Deletes an asset by Workgroup name and asset name.
Required permissions
Asset Management (Read/Write).
URL parameters
workgroupName: Name of the Workgroup.
Query parameters
name: Name of the asset.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
71
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Smart Rule Assets
GET SmartRules/{id}/Assets
Purpose
Returns a list of assets by Smart Rule ID.
Required permissions
Read access to the Smart Rule referenced by ID.
URL parameters
id: ID of the Smart Rule.
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can be used only in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
72
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[
{
WorkgroupID: int,
AssetID: int,
AssetName: string,
DnsName: string,
DomainName: string,
IPAddress: string,
MacAddress: string,
AssetType: string,
OperatingSystem: string,
CreateDate: datetime,
LastUpdateDate: datetime
},
]
}
Response codes
200 - Request successful. Assets in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
73
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Asset attributes
Quick navigation
l
"GET Assets/{assetID}/Attributes" on page 74
l
"POST Assets/{assetID}/Attributes/{attributeID}" on page 75
l
"DELETE Assets/{assetID}/Attributes" on page 76
l
"DELETE Assets/{assetID}/Attributes/{attributeID}" on page 76
GET Assets/{assetID}/Attributes
Purpose
Returns a list of attributes by Asset ID.
Required permissions
Asset Management (Read), Attribute Management (Read).
URL parameters
assetID: ID of the asset.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int, AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
74
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. Attributes associated with the asset in the response body.
For more information, please see "Common response codes" on page 17.
POST Assets/{assetID}/Attributes/{attributeID}
Purpose
Assigns an attribute to an asset.
Required permissions
Asset Management (Read/Write), Attribute Management (Read/Write).
URL parameters
l
assetID: ID of the asset.
l
attributeID: ID of the attribute Request Body.
Response body
Content-Type: application/json
{
AttributeID : int, AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
}
Response codes
201 Request successful. Attributes in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
75
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE Assets/{assetID}/Attributes
Purpose
Deletes all asset attributes by asset ID.
Required permissions
Asset Management (Read/Write), Attribute Management (Read/Write).
URL parameters
assetID: ID of the asset.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
DELETE Assets/{assetID}/Attributes/{attributeID}
Purpose
Deletes an asset attribute by asset ID and attribute ID.
Required permissions
l
Asset Management (Read/Write).
l
Attribute Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
76
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
assetID: ID of the asset attributeID and ID of the attribute.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
77
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Attribute types
Quick navigation
l
"GET AttributeTypes" on page 78
l
"GET AttributeTypes/{id}" on page 79
l
"POST AttributeTypes" on page 79
l
"DELETE AttributeTypes/{id}" on page 80
GET AttributeTypes
Purpose
Returns a list of attribute types.
Required permissions
Attribute Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeTypeID : int,
Name : string,
IsReadOnly: bool
},
]
Response codes
200 Request successful. Attribute types in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
78
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET AttributeTypes/{id}
Purpose
Returns an attribute type by ID.
Required permissions
Attribute Management (Read).
URL parameters
id: ID of the attribute type.
Request body
None.
Response body
Content-type: application/json
{
AttributeTypeID : int,
Name : string,
IsReadOnly: bool
}
Response codes
200 Request successful. Attribute type in the response body.
For more information, please see "Common response codes" on page 17.
POST AttributeTypes
Purpose
Creates a new attribute type.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
79
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
Attribute Management (Read/Write).
Request body
Content-Type: application/json
{
Name : string
}
Request body details
Max string length for Name is 64.
Response body
Content-type: application/json
{
AttributeTypeID : int,
Name : string,
IsReadOnly: bool
}
Response codes
201 Request successful. Attribute type in the response body.
For more information, please see "Common response codes" on page 17.
DELETE AttributeTypes/{id}
Purpose
Deletes an attribute type and all related attributes by ID.
Required permissions
Attribute Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
80
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
id: ID of the attribute type.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
81
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Attributes
Quick navigation
l
"GET AttributeTypes/{attributeTypeID}/Attributes" on page 82
l
"GET Attributes/{id}" on page 83
l
"POST AttributeTypes/{attributeTypeID}/Attributes" on page 84
l
"DELETE Attributes/{id}" on page 86
GET AttributeTypes/{attributeTypeID}/Attributes
Purpose
Returns a list of attribute definitions by attribute type.
Required permissions
Attribute Management (Read).
URL parameters
attributeTypeID: ID of the attribute type.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
ChildAttributes :
[
{
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
82
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int,
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
},
]
},
]
Response codes
200 Request successful. Attributes in the response body.
For more information, please see "Common response codes" on page 17.
GET Attributes/{id}
Purpose
Returns an attribute definition by ID.
Required permissions
Attribute Management (Read).
URL parameters
id: ID of the attribute.
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
83
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
ChildAttributes :
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int,
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
},
]
}
Response codes
200 Request successful. Attributes in the response body.
For more information, please see "Common response codes" on page 17.
POST AttributeTypes/{attributeTypeID}/Attributes
Purpose
Creates a new attribute definition by attribute type ID.
Required permissions
Attribute Management (Read/Write).
URL parameters
attributeTypeID: ID of the attribute type.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
84
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
Content-Type: application/json
{
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int // can be null
}
Request body details
Max string length for ShortName and LongName is 64. Max string length for Description is 255.
Response body
Content-Type: application/json
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
ChildAttributes :
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int,
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool,
},
]
}
Response codes
201 Request successful. Attributes in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
85
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
DELETE Attributes/{id}
Purpose
Deletes an attribute definition by ID.
Required permissions
Attribute Management (Read/Write).
URL parameters
id: ID of the attribute.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
86
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Configuration
GET Configuration/Version
Purpose
Returns the current system version.
Request body
None.
Response body
Content-Type: application/json
{
Version : string
}
Response codes
200 Request successful. Version model in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
87
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Databases
Quick navigation
l
"GET Databases" on page 88
l
"GET Databases/{id}" on page 89
l
"GET Assets/{id}/Databases" on page 90
l
"POST Assets/{id}/Databases" on page 91
l
"PUT Databases/{id}" on page 92
l
"DELETE Databases/{id}" on page 93
For more information on related topics, please see:
l
"Assets" on page 55
l
"Platforms" on page 355
l
"Managed systems" on page 287
GET Databases
Purpose
Returns a list of databases.
Required permissions
Asset Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
AssetID: int,
DatabaseID : int,
PlatformID : int,
InstanceName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
88
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
IsDefaultInstance : bool,
Port : int,
Version : string,
Template:string
},
]
Response codes
201 Request successful. Databases in the response body.
For more information, please see "Common response codes" on page 17.
GET Databases/{id}
Purpose
Returns a database by ID.
Required permissions
Asset Management (Read).
URL parameters
id: ID of the database.
Request body
None.
Response body
Content-Type: application/json
{
AssetID:int,
DatabaseID : int,
PlatformID : int,
InstanceName : string,
IsDefaultInstance : bool,
Port : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
89
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Version : string
}
Response codes
201 Request successful. Databases in the response body.
For more information, please see "Common response codes" on page 17.
GET Assets/{id}/Databases
Purpose
Returns a list of databases for the given asset.
Required permissions
Asset Management (Read).
URL parameters
id: ID of the asset.
Request body
None.
Response body
Content-Type: application/json
[
{
AssetID: int,
DatabaseID : int,
PlatformID : int,
InstanceName : string,
IsDefaultInstance : bool,
Port : int,
Version : string,
Template:string
},
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
90
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
201 Request successful. Databases in the response body.
For more information, please see "Common response codes" on page 17.
POST Assets/{id}/Databases
Purpose
Creates a new database in the asset referenced by ID.
Required permissions
Asset Management (Read/Write).
URL parameters
id: ID of the asset.
Request body
Content-Type: application/json
{
PlatformID : int,
InstanceName : string,
IsDefaultInstance : bool,
Port : int,
Version : string,
Template : string,
}
Request body details
l
PlatformID: (required) ID of the platform
l
InstanceName: Name of the database instance. Required when IsDefaultInstance is false. Max string length is 100.
l
IsDefaultInstance: True if the database instance is the default instance, otherwise false.
Note: Only MS SQL Server and MySQL platforms support setting this value to true.
l
Port: (required) The database port.
l
Version: The database version. Max string value is 20.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
91
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
Template: The database connection template.
Response body
Content-Type: application/json
{
AssetID: int,
DatabaseID : int,
PlatformID : int,
InstanceName : string,
IsDefaultInstance : bool,
Port : int,
Version : string,
Template:string
}
Response codes
200 Request successful. Databases in the response body.
For more information, please see "Common response codes" on page 17.
PUT Databases/{id}
Purpose
Updates an existing database by ID.
Required permissions
Asset Management (Read/Write).
URL parameters
id: ID of the database.
Request body
Content-Type: application/json
{
PlatformID: int,
InstanceName: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
92
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
IsDefaultInstance: bool,
Port: int,
Version: string,
Template: string
}
Request body details
l
PlatformID: (required) ID of the platform.
l
InstanceName: Name of the database instance. Required when IsDefaultInstance is false. Max string length is 100.
l
IsDefaultInstance: True if the database instance is the default instance, otherwise false.
Note: Only MS SQL Server and MySQL platforms support setting this value to true.
l
Port: The database port.
l
Version: The database version. Max string length is 20.
l
Template: The database connection template.
Response body
Content-Type: application/json
{
AssetID: int,
DatabaseID: int,
PlatformID: int,
InstanceName: string,
IsDefaultInstance: bool,Port: int,
Version: string,
Template: string
}
Response codes
200 Request successful. Databases in the response body.
For more information, please see "Common response codes" on page 17.
DELETE Databases/{id}
Purpose
Deletes a database by ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
93
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
Asset Management (Read/Write).
URL parameters
id: ID of the database.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
94
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
EPM Policies
POST /{id}/epmapplications/add
Purpose
Edits a policy to add an application, and updates this policy in the BeyondInsight database. Touches the LastModifiedDate to indicate
that a change is made. Updated policy is deployed to agents per the usual process in BeyondInsight.
Required permissions
EPM (Read/Write)
EPM Policy (Read/Write)
Query parameters (optional)
{id} is a Policy Guid
Request body
Content-Type: application/json
{
GroupName: string,
Name: string,
Path: string,
Publisher: string,
ChildrenInheritToken: boolean
}
Request body details
All fields are required.
Example request
{
"GroupName":"powershell - Add",
"Name":"notepad3.exe",
"Path":"C:\\Windows\\System32\\notepad2.exe",
"Publisher":"Microsoft2",
"ChildrenInheritToken":"false"
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
95
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
<empty>
}
Response codes
200 OK, successful
400 Invalid Policy ID
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
96
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Entitlements
Quick navigation
l
"GET Entitlements" on page 97
l
"GET Entitlements?groupIDs={groupID1,groupID2,groupID3…}" on page 98
GET Entitlements
Purpose
Returns user entitlements.
Required permissions
Analytics and Reporting (Read).
URL parameters
None.
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
SmartRuleId : int,
DistinguishedName : string,
AccessLevel : string, // can be null
RoleId : int,
RoleName : string,
DedicatedAccountPermissionOverride : string, // can be null
DedicatedToAppUserID : int, // can be null
DedicatedToAppUserName : string, // can be null
IsAdministratorGroup : bool,
UserID : int,
UserName : string,
ManagedAccountId : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
97
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AccountName : string,
RationalizedSystemName : string,
ApplicationName : string,
AccessPolicyName : string
}
]
GET Entitlements?groupIDs={groupID1,groupID2,groupID3…}
Purpose
Returns user entitlements for the specified group IDs.
Required permissions
Analytics and Reporting (Read).
URL parameters
groupIDs: Comma separated list of group IDs
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
SmartRuleId : int,
Title : string,
SmartRuleType : string,
AccessLevel : string, // can be null
RoleId : int,
RoleName : string,
DedicatedAccountPermissionOverride : string, // can be null
DedicatedToAppUserID : int, // can be null
DedicatedToAppUserName : string, // can be null
IsAdministratorGroup : bool,
UserID : int,
UserName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
98
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ManagedAccountId : int,
AccountName : string,
RationalizedSystemName : string,
ApplicationName : string,
AccessPolicyName : string
}
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
99
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Imports
POST Imports
Purpose
Queues a third-party import.
Required permissions
Scan Management (Read/Write).
Request body
Content-Type: application/json
{
WorkgroupID: int,
ImportType: string,
Filter: string,
FileName: string,
FileContents: byte[],
Base64FileContents: string
}
Note: Provide either FileContents or Base64FileContents.
Request body details
l
WorkgroupID: ID of the Workgroup to import the assets into
l
ImportType: (case-senstitive, default: PASSWORDSAFE) Type of import being queued:
o
PASSWORDSAFE: Password Safe import file. Expected file extension: .xml.
o
RETINARTD: Retina© RTD file. Expected file extension: .rtd.
Note: Support for the following file types has been deprecated and will be removed from the product in a future
version.
o
NESSUS: Nessus© import file. Expected file extension: .csv.
o
NESSUSSECCEN: NessusSecurityCenter© import file. Expected file extension: .csv.
o
NEXPOSE: Nexpose© import file. Expected file extension: .csv or .xml.
o
QUALYSGUARD: QualysGuard© file. Expected file extension: .csv or .xml.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
100
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
METASPLOIT: METASPLOIT© import file. Expected file extension: .xml.
o
MCAFEEVM: McAfee Vulnerability Management© import file. Expected file extension: .csv.
o
TRIPWIRE: Tripwire© import file. Expected file extension: .csv.
l
Filter: (default: All Assets) Asset selection filter:
o
All Assets: No filter, import all.
o
Single IPv4 address (i.e. 10.0.0.1).
o
IPv4 range (i.e. 10.0.0.1-10.0.0.5).
o
CIDR (i.e. 10.0.0.0/24).
l
FileName: Filename (including extension) of the import file. One of the following is required:
o
FileContents: The array containing the content of the import file.
o
Base64FileContents: Base64 string containing the content of the import file.
Response body
Content-Type: application/json
{
ImportID: int
}
Response codes
200 Request successful. Import ID in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
101
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Operating Systems
GET OperatingSystems
Purpose
Returns a list of operating systems.
Required permissions
Asset Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
OperatingSystemID : int,
Name : string
},
]
Response codes
200 Request successful. Operating systems in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
102
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Organizations
Quick navigation
l
"GET Organizations" on page 103
l
"GET Organizations/{id}" on page 104
l
"GET Organizations?name={name}" on page 104
GET Organizations
Purpose
Returns a list of organizations to which the current user has permission.
Required permissions
Asset Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
OrganizationID : string,
Name : string,
IsActive : bool
},
]
Response codes
200 Request successful. Organizations in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
103
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Organizations/{id}
Purpose
Returns an organization by ID.
Required permissions
l
Current user has permission to the organization.
l
Asset Management (Read).
URL parameters
id: ID of the organization.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : string,
Name : string,
IsActive : bool
}
Response codes
200 Request successful. Organizations in the response body.
For more information, please see "Common response codes" on page 17.
GET Organizations?name={name}
Purpose
Returns an organization by name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
104
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
l
Current user has permission to the organization
l
Asset Management (Read).
Query parameters
name: Name of the organization.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : string,
Name : string,
IsActive : bool
}
Response codes
200 Request successful. Organizations in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
105
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Permissions
(i.e., Asset Management, User Accounts Management, Scan Management, etc.)
Quick navigation
l
"GET Permissions" on page 106
l
"User group permissions" on page 107
l
"GET UserGroups/{userGroupID}/Permissions" on page 107
l
"POST UserGroups/{userGroupId}/Permissions" on page 107
l
"DELETE UserGroups/{userGroupId}/Permissions" on page 108
GET Permissions
Purpose
Returns a list of permissions.
Required permissions
User Accounts Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PermissionID : int,
Name : string
},
]
Response codes
200 Request successful. Permissions in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
106
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User group permissions
GET UserGroups/{userGroupID}/Permissions
Purpose
Gets all permissions for the user group referenced by ID.
Required permissions
User Accounts Management (Read).
URL parameters
userGroupId: ID of the user group.
Request body
None.
Response body
Content-Type: application/json
[
{
PermissionID : int,
AccessLevelID : int
},
…]
Response codes
200 Request successful. Permissions in the response body.
For more information, please see "Common response codes" on page 17.
POST UserGroups/{userGroupId}/Permissions
Purpose
Sets permissions for the user group referenced by ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
107
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
User Accounts Management (Read/Write).
Note:
l
Adding the Secrets Safe feature/permission to a user group requires the caller to be an administrator.
l
The access level for Secrets Safe cannot be changed to disabled if the group has associated secrets.
URL parameters
userGroupId: ID of the user group.
Request body
Content-Type: application/json
[
{
PermissionID : int,
AccessLevelID : int
},
]
Response body
None.
Response codes
204 Request successful. No content in body.
For more information, please see "Common response codes" on page 17.
DELETE UserGroups/{userGroupId}/Permissions
Purpose
Deletes all permissions for the user group referenced by ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
108
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
User Accounts Management (Read/Write).
Note:
l
Removing the Secrets Safe feature/permission from a user group requires the caller to be an administrator.
l
Permissions for a User Group that has the Secrets Safe feature enabled cannot be deleted if the group has associated
secrets.
URL parameters
userGroupId: ID of the user group.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
109
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Smart Rules
Quick navigation
l
"GET SmartRules" on page 110
l
"GET SmartRules/{id}" on page 111
l
"GET UserGroups/{id}/SmartRules/" on page 112
l
"GET SmartRules" on page 110
l
"GET Organizations/{orgID}/SmartRules?title={title}" on page 114
l
"POST SmartRules/FilterAssetAttribute" on page 115
l
"POST SmartRules/{id}/Process" on page 116
l
"DELETE SmartRules/{id}" on page 117
l
"DELETE SmartRules?title={title}" on page 118
l
"DELETE Organizations/{orgID}/SmartRules?title={title}" on page 119
For more information on related topics, please see:
l
"Quick rules" on page 367
l
"Assets" on page 55
l
"GET SmartRules/{id}/Assets" on page 72
l
"Smart Rule managed accounts" on page 280
l
"GET SmartRules/{smartRuleID}/ManagedAccounts" on page 280
l
"GET QuickRules/{quickRuleID}/ManagedAccounts" on page 270
l
"Managed systems" on page 287
l
"Smart Rule managed systems" on page 345
GET SmartRules
Purpose
Returns a list of Smart Rules to which the current user has at least read access.
Query parameters
type: (optional, default: all) Type of Smart Rules to return (all, managed account, managed system, and asset).
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
110
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
[
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
},
]
Response codes
200 Request successful. Smart Rule in the response body.
For more information, please see "Common response codes" on page 17.
GET SmartRules/{id}
Purpose
Returns a Smart Rule by ID.
Required permissions
Read access to the Smart Rule referenced by ID.
URL parameters
id: ID of the Smart Rule.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
111
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
}
Response codes
200 Request successful. Smart Rule in the response body.
For more information, please see "Common response codes" on page 17.
GET UserGroups/{id}/SmartRules/
Purpose
Returns a list of Smart Rules to which the given user group ID has at least read access.
Requirements
User Accounts Management (Read).
URL parameters
id: ID of the user group.
Query parameters
accessLevel: (optional, default: 1,3) User group Smart Rule access level - A single value or comma-delimited list of values:
l
0: None.
l
1: Read.
l
3: Read/Write.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
112
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
[{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string,
AccessLevelID: int,
}
,...
]
Response codes
200 Request successful. Smart Rules with user group access level in the response body.
GET SmartRules?title={title}
Purpose
Returns a Smart Rule by title.
In a multi-tenant environment, assumes global organization.
Required permissions
Read access to the Smart Rule referenced by title.
Query parameters
title: Title of the Smart Rule.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
113
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
}
Response codes
200 Request successful. Smart Rule in the response body.
For more information, please see "Common response codes" on page 17.
GET Organizations/{orgID}/SmartRules?title={title}
Purpose
Returns a Smart Rule by organization ID and title. This is only valid in a multi-tenant environment.
Required ermissions
Read access to the Smart Rule referenced by organization and title.
URL parameters
orgID: ID of the organization.
Query parameters
title: Title of the Smart Rule.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
114
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
}
Response codes
200 Request successful. Smart Rule in the response body.
For more information, please see "Common response codes" on page 17.
POST SmartRules/FilterAssetAttribute
Purpose
Specialized action for creating an asset type Smart Rule for filtering assets by attributes.
Required permissions
Asset Management (Read/Write).
Request body
Content-Type: application/json
{
AttributeIDs: [ int, …],
Title: string,
Category: string,
Description: string,
ProcessImmediately: bool
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
115
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
l
AttributeIDs: (required) A list of attribute IDs to filter by. All the attributes must be of the same attribute type.
l
Title: (required) The title/name of the new Smart Rule. Must be unique across all Smart Rules. Max string length is 75.
l
Category: (required) The category in which to place the Smart Rule. Max string length is 50.
l
Description: (optional, default: <value of Title>) The Smart Rule description.
l
ProcessImmediately: (optional, default: true) True to process the Smart Rule immediately, otherwise false to defer processing to
the background Smart Rule processor.
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool
}
Response codes
201 - Request successful. Smart Rule in response body.
For more information, please see "Common response codes" on page 17.
POST SmartRules/{id}/Process
Purpose
Process a Smart Rule by ID.
Required permissions
Read/Write access to the Smart Rule.
URL parameters
ID: ID of the Smart Rule.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
116
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Query parameters
Queue: (default: false) True to queue the Smart Rule for processing; false to process the Smart Rule immediately.
Request body
None.
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
}
Response codes
l
200 Request successful. Smart Rule in the response body.
l
409 Conflict: the Smart Rule is currently processing.
For more information, please see "Common response codes" on page 17.
DELETE SmartRules/{id}
Purpose
Deletes a Smart Rule by ID.
Required permissions
Read/Write access to the Smart Rule referenced by ID
URL parameters
ID: ID of the Smart Rule.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
117
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
DELETE SmartRules?title={title}
Purpose
Deletes a Smart Rule by title.
In a multi-tenant environment, assumes global organization.
Required permissions
Read/Write access to the Smart Rule referenced by title.
Query parameters
title: Title of the Smart Rule.
Request body
None.
Response body
None.
Response codes
200 Request successful.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
118
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
DELETE Organizations/{orgID}/SmartRules?title={title}
Purpose
Deletes a Smart Rule by organization ID and title.
Only valid in a multi-tenant environment.
Required permissions
Read/Write access to the Smart Rule referenced by organization and title.
URL parameters
orgID: ID of the organization.
Query parameters
title: Title of the Smart Rule.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
119
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Subscription delivery (Cloud only)
Quick navigation
l
"GET Subscriptions/Delivery" on page 120
l
"POST Subscriptions/Delivery/download?id={id}" on page 121
GET Subscriptions/Delivery
Purpose
Returns a list of IDs for all subscription deliveries that a user has access to. Administrators have access to all deliveries while other users
only have access to deliveries they created.
Required permissions
Analytics and Reporting (Read).
URL parameters
None.
Request body
None.
Response body
Content-Type: application/json
[
{
int[]
}
]
Response body details
A list of ints that reference the ReportDeliveryId field for every subscription delivery that the user has access to.
Response codes
200 Request successful. Ids in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
120
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
POST Subscriptions/Delivery/download?id={id}
Purpose
Returns the subscription delivery for the requested id.
Required permissions
Analytics and Reporting (Read).
URL parameters
id: ID of the request for which to retrieve the subscription delivery.
Request body
None.
Response body
Content-Type: application/json
[
{
ReportDeliveryId : int,
ScheduleId : int,
Filename : string,
ApplicationType : string,
Snapshot : string,
}
]
Response body details
l
ReportDeliveryId: The ID of this subscription delivery in the database.
l
ScheduleId: Schedule ID of the subscription associated with this subscription delivery.
l
ApplicationType: The MIME type string identifying the format of the file. Will be one of the following:
o
application/msword (Word)
o
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (Excel)
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
121
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
application/pdf (Pdf)
o
image/tiff (TIFF)
o
text/csv (CSV)
l
Snapshot: A Base64 string representing the byte array of the subscription delivery file itself.
Response codes
200 Request successful. Subscription delivery in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
122
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User groups
Quick navigation
l
"GET UserGroups" on page 123
l
"GET UserGroups/{id}" on page 124
l
"GET UserGroups?name={name}" on page 125
l
"POST UserGroups" on page 126
l
"DELETE UserGroups/{id}" on page 129
l
"DELETE UserGroups?name={name}" on page 130
GET UserGroups
Purpose
Returns a list of active and inactive user groups.
Required permissions
User Accounts Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
DistinguishedName : string,
Description : string,
GroupType : string,
AccountAttribute : string,
ApplicationRegistrationIDs : string,
MembershipAttribute : string,
IsActive : bool
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
123
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. User group in the response body.
For more information, please see "Common response codes" on page 17.
GET UserGroups/{id}
Purpose
Returns a user group by ID.
Required permissions
User Accounts Management (Read).
URL parameters
id: ID of the user group.
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
DistinguishedName : string,
Description : string,
GroupType : string,
AccountAttribute : string,
ApplicationRegistrationIDs : string,
MembershipAttribute : string,
IsActive : bool
}
]
Response codes
200 Request successful. User group in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
124
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
GET UserGroups?name={name}
Purpose
Returns a user group by name.
Required permissions
User Accounts Management (Read).
Query parameters
name: Name of the user group.
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
DistinguishedName : string,
GroupType : string,
AccountAttribute : string,
ApplicationRegistrationIDs : string,
MembershipAttribute : string,
IsActive : bool
}
]
Response codes
200 Request successful. User group in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
125
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST UserGroups
Purpose
Creates a new user group with permissions, and, optionally, Smart Rule access and application registration IDs.
Required permissions
User Accounts Management (Read/Write).
Note: Creating a user group that has the Secrets Safe feature/permission enabled requires the caller to be an administrator.
Request body
The request body differs for the different group types available: BeyondInsight, ActiveDirectory, LdapDirectory.
BeyondInsight group type
Request body
Content-Type: application/json
{
groupType : string = "BeyondInsight",
groupName : string,
description : string,
isActive : bool,
Permissions : [ { PermissionID: int, AccessLevelID: int }, ... ],
SmartRuleAccess : [ { SmartRuleID: int, AccessLevelID: int }, ... ],
ApplicationRegistrationIDs: [ int, … ]
}
Request body details
l
groupName: (required) Name of the BeyondInsight user group. Max string length is 200.
l
description: (required) Description of the user group. Max string length is 255.
For more information, please see "Common request body details" on page 128.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
126
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ActiveDirectory group type
Request body
Content-Type: application/json
{
groupType : string = "ActiveDirectory",
groupName : string,
forestName : string,
domainName : string,
description : string,
bindUser : string,
bindPassword : string,
useSSL : bool,
isActive : bool,
ExcludedFromGlobalSync : bool,
OverrideGlobalSyncSettings : bool,
Permissions : [ { PermissionID: int,
AccessLevelID: int }, ... ],
SmartRuleAccess : [ { SmartRuleID: int, AccessLevelID: int }, ... ],
ApplicationRegistrationIDs: [ int, … ]
}
Request body details
l
groupName: (required) Name of the Active Directory group. Max string length is 200.
l
domainName: (required) The directory domain name. Max string length is 250.
l
description: (required) Description of the user group. Max string length is 255.
l
bindUser: Username for directory binding. If not given, attempts to use existing credentials for the directory. If specifying an
existing credential, you also need Credential Management – Read. If specifying a new credential, you also need Credential
Management – Read/Write.
o
bindPassword: Password for directory binding (required if bindUser is given).
o
forestName: The directory forest name (required when bindUser is given). Max string length is 300.
l
useSSL: (default: false) Flag indicating whether to use SSL.
l
ExcludedFromGlobalSync: (default false) Flag indicating if the Active Directory group uses the global group synchronization
settings.
l
OverrideGlobalSyncSettings: (default false) Flag indicating if the Active Directory group overrides the global group
synchronization settings.
For more information, please see "Common request body details" on page 128.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
127
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
LdapDirectory group type
Request body
Content-Type: application/json
{
groupType : string = "LdapDirectory",
groupName : string,
groupDistinguishedName : string,
hostName : string,
bindUser : string,
bindPassword : string,
port : int,
useSSL : bool,
membershipAttribute : string,
accountAttribute : string,
isActive : bool,
Permissions : [ { PermissionID: int,
AccessLevelID: int }, ... ],
SmartRuleAccess : [ { SmartRuleID: int, AccessLevelID: int }, ... ],
ApplicationRegistrationIDs: [ int, … ]
}
Request body details
l
groupName: (required) Name of the LDAP group. Max string length is 200.
l
groupDistinguishedName: (required) Distinguished name of the LDAP group. Max string length is 500.
l
hostName: (required) The directory server host name or IP. Max string length is 50.
l
bindUser: Username for directory binding. If not given, attempts to use existing credentials for the directory. If specifying an
existing credential, you also need Credential Management – Read. If specifying a new credential, you also need Credential
Management – Read/Write.
o
bindPassword: Password for directory binding (Note: required if bindUser is given).
o
port: Directory server port (valid range: 1 to 65535) (required if bindUser is given).
o
useSSL: (default: false) Flag indicating whether to use SSL (required if bindUser is given).
l
membershipAttribute: (required) Directory group membership attribute. Max string length is 255.
l
accountAttribute: (required) Directory account naming attribute. Max string length is 255.
For more information, please see "Common request body details" on page 128.
Common request body details
l
isActive: (default: true) True if the group should be created as active, otherwise false.
l
Permissions: One or more permissions and access levels to set for the new user group.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
128
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
SmartRuleAccess: One or more Smart Rules and access levels to set for the new user group.
l
ApplicationRegistrationIDs: Zero or more IDs representing the API application registrations to grant the new user group. If
given, enables API for the user group.
Response body
Content-Type: application/json
[
{
GroupID : int, Name : string,
DistinguishedName : string,
Description : string,
GroupType : string,
AccountAttribute : string,
MembershipAttribute : string,
IsActive : bool
}
]
Response codes
201 Request successful. User group in the response body.
For more information, please see "Common response codes" on page 17.
DELETE UserGroups/{id}
Purpose
Deletes a user group by ID.
Required permissions
User Accounts Management (Read/Write).
Note:
l
Deleting a user group that has the Secrets Safe feature/permission enabled requires the caller to be an administrator.
l
User Groups that have the Secrets Safe feature enabled cannot be deleted if the group has associated secrets.
URL parameters
id: ID of the user group.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
129
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
DELETE UserGroups?name={name}
Purpose
Deletes a user group by name.
Required permissions
User Accounts Management (Read/Write).
Note: Deleting a user group that has the Secrets Safe feature/permission enabled requires the caller to be an administrator.
Query parameters
name: Name of the user group.
Request body
None.
Response body
None.
Response codes
200 Request successful.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
130
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
131
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User group memberships
Quick navigation
l
"GET Users/{userID}/UserGroups" on page 132
l
"POST Users/{userID}/UserGroups/{userGroupID}" on page 133
l
"DELETE Users/{userID}/UserGroups/{userGroupID}" on page 134
GET Users/{userID}/UserGroups
Purpose
Returns the user group memberships for an existing user.
Required permissions
User Accounts Management (Read).
URL parameters
userID: ID of the user.
Request body
None.
Response body
Content-Type: application/json
[
{
GroupID : int,
Name : string,
DistinguishedName : string,
GroupType : string,
AccountAttribute : string,
MembershipAttribute : string,
IsActive : bool
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
132
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. User group in the response body.
For more information, please see "Common response codes" on page 17.
POST Users/{userID}/UserGroups/{userGroupID}
Purpose
Adds an existing user to a user group.
Required permissions
User Accounts Management (Read/Write).
URL parameters
l
userID: ID of the user.
l
userGroupID: ID of the user group.
Request body
None.
Response body
Content-Type: application/json
{
GroupID : int, Name : string,
DistinguishedName : string,
GroupType : string,
AccountAttribute : string,
MembershipAttribute : string,
IsActive : bool
}
Response codes
201 Request successful. User group in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
133
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
DELETE Users/{userID}/UserGroups/{userGroupID}
Purpose
Removes a user from a user group.
Required permissions
User Accounts Management (Read/Write).
URL parameters
l
userID: ID of the user.
l
userGroupID: ID of the user group.
Request body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
134
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User audits
GET UserAudits
Purpose
Returns a list of user audits.
Required permissions
User Audit Management (Read).
Query parameters (optional)
l
username: User name.
l
actiontype: Action type.
l
section: Section.
l
startdate: Start date.
l
enddate: End date.
l
limit: (default: 1000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning records.
Request body
None.
Response body
Content-Type: application/json
{
TotalCount : int,
Data: [
{
AuditID : int,
ActionType : string,
Section : string,
UserID : int,
UserName : string,
IPAddress : string,
CreateDate : datetime
},
...
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
135
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
]
}
Response codes
200 Request successful. User Audits in response body.
Default sort
By default the records are sorted by CreateDate in descending order (latest entries are shown first)
GET UserAudits/{auditId:int}/UserAuditDetails
Purpose
Returns a list of user audit details.
Required permissions
User Audit Management (Read).
Query parameters
l
auditid: Audit ID
l
limit: (default: 1000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning records.
Request body
None.
Response body
Content-Type: application/json
{
TotalCount: int,
Data: [
{
AuditDetailsID : int,
Name: string,
OldValue : string,
NewValue : string
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
136
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
},
...
]
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
137
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Users
Quick navigation
l
"GET Users" on page 138
l
"GET UserGroups/{userGroupId}/Users" on page 140
l
"GET Users/{id}" on page 141
l
"POST Users" on page 142
l
"POST Users/{id}/Quarantine" on page 145
l
"POST UserGroups/{userGroupId}/Users" on page 146
l
"PUT Users/{id}" on page 148
l
"DELETE Users/{id}" on page 150
l
"POST/{id}/Users/{id}/RecycleClientSecret" on page 148
GET Users
Purpose
Returns a list of all users if username parameter is not supplied. Otherwise returns the requested user.
Note: Some usernames may be in the format hostname\username, if not represented by an email address.
Required permissions
User Accounts Management (Read).
Query parameters (optional)
username: The user to return, in one of following formats:
l
username: returns the BeyondInsight users.
l
domain\username or universal principal name: returns Active Directory or LDAP users.
includeInactive: (optional, default: false) True to return all users including users that are inactive, otherwise False.
Note: A username search without a domain finds local users; if domain is added to the search, it finds the user for a given
domain.
Note: Use of the optional query parameters results in the supplied value being recorded in the web server log file.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
138
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
LastLoginDate : DateTime,
LastLoginAuthenticationType : string,
LastLoginConfigurationName : string,
LastLoginSAMLIDPURL : string,
LastLoginSSOURL : string,
IsQuarantined: bool,
IsActive : bool
},
]
Application user type:
Note: ClientSecret has no value; it can only be retrieved via API by initial creation or recycling it. Please see "Users" on page
138.
{
ClientID: string,
ClientSecret: string = null,
AccessPolicyID: int,
UserID: int,
UserType: string = "Application",
UserName: string,
DomainName: string = null,
DistinguishedName: string = null,
FirstName: string = null,
LastName: string = null,
EmailAddress: string = null,
IsQuarantined: bool,
IsActive : bool
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
139
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. Users in the response body.
For more information, please see "Common response codes" on page 17.
GET UserGroups/{userGroupId}/Users
Purpose
Returns a list of users for the user group referenced by ID.
Note: For Active Directory, Entra ID, or LDAP user groups, calling this endpoint also triggers the membership synchronization
between the directory and BeyondInsight for the group identified by userGroupId.
Required permissions
User Accounts Management (Read).
URL parameters
userGroupId: ID of the user group.
Request body
None.
Response body
Content-Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
LastLoginDate : DateTime,
LastLoginAuthenticationType : string,
LastLoginConfigurationName : string,
LastLoginSAMLIDPURL : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
140
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
LastLoginSSOURL : string,
IsQuarantined: bool,
IsActive : bool
},
]
Response codes
200 Request successful. Users in the response body.
For more information, please see "Common response codes" on page 17.
GET Users/{id}
Purpose
Returns a user by ID.
Required permissions
User Accounts Management (Read).
URL parameters
id: ID of the user.
Request body
None.
Response body
Content-Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
141
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
LastLoginDate : DateTime,
LastLoginAuthenticationType : string,
LastLoginConfigurationName : string,
LastLoginSAMLIDPURL : string,
LastLoginSSOURL : string,
IsQuarantined: bool,
IsActive : bool
}
]
Application user type
Note: ClientSecret has no value; it can only be retrieved via API by initial creation or recycling it. Please see "Users" on page
138.
{
ClientID: string,
ClientSecret: string = null,
AccessPolicyID: int,
UserID: int,
UserType: string = "Application",
UserName: string,
DomainName: string = null,
DistinguishedName: string = null,
FirstName: string = null,
LastName: string = null,
EmailAddress: string = null,
IsQuarantined: bool,
IsActive : bool
}
Response codes
200 Request successful. User in the response body.
For more information, please see "Common response codes" on page 17.
POST Users
Purpose
Creates a new user with no user group associations.
Required permissions
User Accounts Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
142
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
The request body differs for the different user types available: BeyondInsight, ActiveDirectory, LdapDirectory
BeyondInsight user type
Content-Type: application/json
{
UserType : string = "BeyondInsight",
UserName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
Password : string
}
Request body details
l
UserName: (required) Username of the user account. Max string length is 64.
l
FirstName: (required) First name of the user. Max string length is 64.
l
LastName: (optional) Last name of the user. Max string length is 64.
l
EmailAddress: (required must be a properly formatted address) - Email address for the user. Max string length is 255.
l
Password: (required) The password they would use to login to BeyondInsight.
ActiveDirectory user type
Content-Type: application/json
{
UserType : string = "ActiveDirectory",
UserName : string,
ForestName : string,
DomainName : string,
BindUser : string,
BindPassword : string,
UseSSL : bool,
}
Request body details
l
UserName: (required) Name of the Active Directory user. Max string length is 64.
l
DomainName: (required) The directory domain name. Max string length is 250.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
143
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
BindUser: Username for directory binding. If not given, attempts to use existing credentials for the directory.
o
BindPassword: Password for directory binding (required when BindUser is given).
o
ForestName: The directory forest name (required when BindUser is given). Max string length is 300.
l
UseSSL: (default: false) Flag indicating whether to use SSL.
LdapDirectory user type
Content-Type: application/json
{
UserType: string = "LdapDirectory",
HostName: string,
DistinguishedName: string,
AccountNameAttribute: string,
BindUser: string,
BindPassword: string,
Port: int,
UseSSL: bool
}
Request body details
l
HostName: (required) The directory server host name or IP.
l
DistinguishedName: (required) The DistinguishedName of the user to create. Max string length is 255.
l
AccountNameAttribute: (required) The LDAP attribute to use for creating the username.
l
BindUser: Username for directory binding. If not given, attempts to use existing credentials for the directory.
o
BindPassword: Password for directory binding. (required if BindUser is given).
o
Port: The directory server port. (used when BindUser and BindPassword are given).
o
UseSSL: Flag indicating whether to use SSL (used when BindUser and BindPassword are given).
Application user type
{
UserType: string = "Application",
UserName: string,
AccessPolicyID: int
}
For more information, please see "Common request body details" on page 128.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
144
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
IsQuarantined: bool,
IsActive : bool
}
]
Application user type
{
ClientID: string,
ClientSecret: string,
AccessPolicyID: int,
UserID: int,
UserType: string = "Application",
UserName: string,
DomainName: string = null,
DistinguishedName: string = null,
FirstName: string = null,
LastName: string = null,
EmailAddress: string = null,
IsQuarantined: bool,
IsActive : bool
}
Response codes
200 Request successful. User in the response body.
For more information, please see "Common response codes" on page 17.
POST Users/{id}/Quarantine
Purpose
Quarantines the user referenced by ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
145
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
id: ID of the BeyondInsight user.
Request body
None.
Response body
Content- Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
IsQuarantined: bool,
IsActive : bool
}
]
Response codes
200 Request successful. User in the response body.
For more information, please see "Common response codes" on page 17.
POST UserGroups/{userGroupId}/Users
Purpose
Creates a user in a BeyondInsight-type user group.
Required permissions
User Accounts Management (Read/Write).
URL parameters
userGroupId: ID of the user group.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
146
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
Content-Type: application/json
{
UserName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
Password : string
}
Request body details
l
UserName: (required) Username of the user account. Max string length is 64.
l
FirstName: (required) First name of the user. Max string length is 64.
l
LastName: (optional) Last name of the user. Max string length is 64.
l
EmailAddress: (required and must be a properly formatted address) Email address for the user. Max string length is 255.
l
Password: (required) The password they would use to login to BeyondInsight.
Response body
Content-Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
IsQuarantined: bool,
IsActive : bool
}
]
Response codes
201 Request successful. User in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
147
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST/{id}/Users/{id}/RecycleClientSecret
Note: For application user type only.
Purpose
Recycles the client secret for an application user.
Required permissions
User Accounts Management (Read/Write) or logged in as the user being affected.
Request body
None.
Response body
Content- Type: application/json
string
Response codes
200 Request successful. New client secret in the body.
For more information, please see "Common response codes" on page 17.
PUT Users/{id}
Purpose
Updates a BeyondInsight user by ID.
Note: Cannot update ActiveDirectory or LDAP users.
Required permissions
User Accounts Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
148
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
id: ID of the BeyondInsight user.
Request body
Content-Type application/json
{
UserName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
Password: string
}
Request body details
l
UserName: (required) Username of the user account.
l
FirstName: (required) First name of the user.
l
LastName: (optional) Last name of the user.
l
EmailAddress: (required and must be a properly formatted address) Email address for the user.
l
Password: (optional) The password they would use to log in to BeyondInsight. If given, replaces the current password.
Application user type
{
UserName: string,
AccessPolicyID: int
}
Response body
Content- Type: application/json
[
{
UserID : int,
UserName : string,
DomainName : string,
DistinguishedName : string,
FirstName : string,
LastName : string,
EmailAddress : string,
IsQuarantined: bool,
IsActive : bool
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
149
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
}
]
Application user type
Note: ClientSecret has no value; it can only be retrieved via API by initial creation or recycling it. Please see "Users" on page
138.
{
ClientID: string,
ClientSecret: string = null,
AccessPolicyID: int,
UserID: int,
UserType: string = "Application",
UserName: string,
DomainName: string = null,
DistinguishedName: string = null,
FirstName: string = null,
LastName: string = null,
EmailAddress: string = null,
IsQuarantined: bool,
IsActive : bool
}
Response codes
200 Request successful. User in the response body.
For more information, please see "Common response codes" on page 17.
DELETE Users/{id}
Purpose
Deletes a user by ID.
Required permissions
User Accounts Management (Read/Write).
Note:
l
Users that have the Secrets Safe feature enabled cannot be deleted if that user is the only owner of at least one
secret.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
150
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
If the user is not the sole owner of any secrets, but is one of multiple owners of a secret, then no error will be presented
and the user can be deleted successfully. They will also be removed from the secrets they are part owners to.
URL parameters
id: ID of the user.
Request body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
151
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Workgroups
Quick navigation
l
"GET Workgroups" on page 152
l
"GET Workgroups/{id}" on page 153
l
"GET Workgroups?name={name}" on page 153
l
"POST Workgroups" on page 154
GET Workgroups
Purpose
Returns a list of Workgroups to which the current user has permission.
Request body
None.
Response body
Content-Type: application/json
[
{
OrganizationID : string, ID : int,
Name : string
},
]
Response codes
200 Request successful. Workgroups in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
152
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Workgroups/{id}
Purpose
Returns a Workgroup by ID.
Required permissions
l
Current user has permission to the Workgroup Organization.
l
Asset Management (Read) or Scan Management (Read/Write).
Query parameters
id: ID of the Workgroup.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : string,
ID : int,
Name : string
}
Response codes
200 Request successful. Workgroups in the response body.
For more information, please see "Common response codes" on page 17.
GET Workgroups?name={name}
Purpose
Returns a Workgroup by name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
153
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
Current user has permission to the Workgroup Organization. Asset Management (Read) or Scan Management (Read/Write).
Query parameters
name: Name of the Workgroup.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : string,
ID : int,
Name : string
}
Response codes
200 Request successful. Workgroups in the response body.
For more information, please see "Common response codes" on page 17.
POST Workgroups
Purpose
Creates a Workgroup.
Required permissions
Asset Management (Read/Write).
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
154
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
OrganizationID: string,
Name : string
}
Request body details
l
Organization ID: (optional) The ID of the organization in which to place the new Workgroup. If empty, the Workgroup is placed in
the default organization.
l
Name: The name of the Workgroup. Max string length is 256.
Response body
Content-Type: application/json
{
OrganizationID : string,
ID : int,
Name : string
}
Response codes
201 Request successful. Workgroups in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
155
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Deprecated
The content in this section of the guide has been deprecated and is compatible with earlier versions only.
Quick navigation
l
"[deprecated] POST Imports/QueueImportFile" on page 156
l
"[deprecated] POST SmartRules/FilterSingleAccount" on page 157
l
"[deprecated] GET UserGroups/{name}" on page 159
l
"[deprecated] DELETE UserGroups/{name}" on page 160
l
"[deprecated] GET Workgroups/{name}" on page 160
Imports
[deprecated] POST Imports/QueueImportFile
Note: This API has been deprecated and is available for backwards compatibility only. Use POST Imports with
Base64FileContents instead.
Purpose
Queues a Password Safe XML import using multi-part form-data content.
Required permissions
Scan Management (Read/Write).
Request body
Content-Type: multipart/form-data
{
Content-type: application/json
{
WorkgroupID: int,
FileName: string
}
application/octet-stream
{
<string-encoded byte array representing the file>
}
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
156
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
l
WorkgroupID: ID of the Workgroup to import the assets into.
l
FileName: Filename (including extension) of the import file.
Response body
Content-Type: application/json
{
ImportID: int
}
Response codes
l
200 Request successful. Import ID in the response body.
l
400 The import file was not found in the body of the request, or a request body validation error has occurred.
Smart Rules
[deprecated] POST SmartRules/FilterSingleAccount
Note: This API has been deprecated and is available for backwards compatibility only. Use QuickRules instead.
Purpose
Specialized action for creating a Managed Account-type Smart Rule for filtering a single Managed Account by System Name and Account
Name.
Required permissions
Smart Rule Management - Managed Account (Read/Write).
Request body
Content-type: application/json
{
AccountID: int,
Title: string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
157
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
l
AccountID: (required) ID of the managed account you want to filter by parent System Name and Account Name.
l
Title: (optional) The title/name of the new Smart Rule. If omitted, a unique title is auto-generated.
Response body
Content-Type: application/json
{
SmartRuleID: int,
OrganizationID : string, // can be null
Title: string,
Description: string,
Category: string,
Status: int,
LastProcessedDate: datetime,
IsReadOnly: bool,
RuleType: string
}
Response codes
201 Request successful. Smart Rule in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
158
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User Groups
[deprecated] GET UserGroups/{name}
Note: This API has been deprecated and is available for backwards compatibility only. Use GET UserGroups?name=
{name} instead.
Purpose
Returns a user group by name.
Required permissions
User Accounts Management (Read).
URL parameters
name: Name of the user group.
Request body
None.
Response body
Content-Type: application/json
{
GroupID : int, Name : string,
DistinguishedName : string,
GroupType : string,
AccountAttribute : string,
MembershipAttribute : string,
IsActive : bool
}
Response codes
200 Request successful. User group in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
159
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[deprecated] DELETE UserGroups/{name}
Note: This API has been deprecated and is available for backwards compatibility only. Use DELETE UserGroups?name=
{name} instead.
Purpose
Deletes a user group by name.
Required permissions
User Accounts Management (Read/Write).
URL parameters
name: Name of the user group.
Request body
None.
Response body
None.
Response Codes
200 Request successful.
Workgroups
[deprecated] GET Workgroups/{name}
Note: This API has been deprecated and is available for backwards compatibility only. Use GET Workgroups?name=
{name} instead.
Purpose
Returns a Workgroup by name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
160
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
Current user has permission to the Workgroup Organization. Asset Management (Read) or Scan Management (Read/Write).
Query parameters
name: Name of the Workgroup.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : string,
ID : int,
Name : string
}
Response codes
200 Request successful. Workgroups in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
161
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Password Safe APIs
Password Safe APIs require a valid Password Safe license.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
162
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Access policies
Quick navigation
l
"GET AccessPolicies" on page 163
l
"POST AccessPolicies/Test" on page 164
GET AccessPolicies
Purpose
Returns a list of Password Safe access policies.
Required permissions
Password Safe Role Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
AccessPolicyID:int,
Name:string,
Description:string,
Schedules :
[
{
ScheduleID : int,
RequireReason : bool,
RequireTicketSystem : bool,
TicketSystemID : short?,
AccessTypes :
[
{
AccessType : string,
IsSession : bool,
RecordSession : bool,
MinApprovers : int,
MaxConcurrent : int
},
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
163
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
]
},
]
},
]
Response codes
200 - Request successful. Access policies in response body.
For more information, please see "Common response codes" on page 17.
POST AccessPolicies/Test
Purpose
Tests access to a managed account and returns a list of Password Safe access policies that are available in the request window.
Required roles
Requestor role.
Request body
Content-Type: application/json
{
SystemId: int,
AccountId: int,
DurationMinutes : int
}
Response body
Content-Type: application/json
[
{
AccessPolicyID:int,
Name:string,
Description:string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
164
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Schedules :
[
{
ScheduleID : int,
RequireReason : bool,
RequireTicketSystem : bool,
TicketSystemID : short?,
AccessTypes :
[
{
AccessType : string,
IsSession : bool,
RecordSession : bool,
MinApprovers : int,
MaxConcurrent : int
},
]
},
]
},
]
Response codes
l
200 - Request successful. Access policies in response body.
l
403 - User does not have permissions to request the indicated account or the account does not have API access enabled.
Response body contains a status code indicating the reason for this forbidden access:
o
4031 - User does not have permission to request the account or the account is not valid for the system.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
165
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Aliases
Quick navigation
l
"GET Aliases" on page 166
l
"GET Aliases/{id}" on page 167
l
"GET Aliases?name={name}" on page 168
GET Aliases
Purpose
Returns a list of requestable managed account aliases.
Required roles
Requestor or Requestor/Approver role for the preferred managed account referenced by the alias.
Query parameters
l
state (optional, default: 1, 2): Zero or more state values, i.e., 'state=2', 'state=1,2', 'state=0,1,2'.
o
0: Unmapped
o
1: Mapped
o
2: Highly Available
Note: Only Aliases with a mapped state of 1 or 2 can be used for API POST Aliases/{id}/Requests.
Request body
None.
Response body
Content-Type: application/json
[
{
AliasId: int,
AliasName: string,
AliasState: int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
166
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
SystemId: int,
SystemName: string,
AccountId: int,
AccountName: string,
DomainName: string,
InstanceName: string,
DefaultReleaseDuration: int,
MaximumReleaseDuration: int,
LastChangeDate: datetime,
NextChangeDate: datetime,
IsChanging: bool,
ChangeState: int,
MappedAccounts :
[
{
AliasID: int,
ManagedSystemID: int,
ManagedAccountID: int,
Status: string
},
]
}
]
Response codes
200 - Request successful. Aliases in response body.
For more information, please see "Common response codes" on page 17.
GET Aliases/{id}
Purpose
Returns a requestable managed account alias by ID.
Required roles
Requestor or Requestor/Approver role for the preferred managed account referenced by the alias.
URL parameters
id: ID of the managed account alias.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
167
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
{
AliasId: int,
AliasName: string,
AliasState: int,
SystemId: int,
SystemName: string,
AccountId: int,
AccountName: string,
DomainName: string,
InstanceName: string,
DefaultReleaseDuration: int,
MaximumReleaseDuration: int,
LastChangeDate: datetime,
NextChangeDate: datetime,
IsChanging: bool,
ChangeState: int,
MappedAccounts :
[
{
AliasID: int,
ManagedSystemID: int,
ManagedAccountID: int,
Status: string
},
]
}
Response codes
200 - Request successful. Alias in response body.
For more information, please see "Common response codes" on page 17.
GET Aliases?name={name}
Purpose
Returns a requestable managed account alias by name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
168
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required roles
Requestor or Requestor/Approver role for the preferred managed account referenced by the alias.
URL parameters
name: Name of the managed account alias.
Request body
None.
Response body
Content-Type: application/json
{
AliasId: int,
AliasName: string,
AliasState: int,
SystemId: int,
SystemName: string,
AccountId: int,
AccountName: string,
DomainName: string,
InstanceName: string,
DefaultReleaseDuration: int,
MaximumReleaseDuration: int,
LastChangeDate: datetime,
NextChangeDate: datetime,
IsChanging: bool,
ChangeState: int,
MappedAccounts :
[
{
AliasID: int,
ManagedSystemID: int,
ManagedAccountID: int,
Status: string
},
]
}
Response codes
200 - Request successful. Alias in response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
169
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
170
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Applications
Quick navigation
l
"GET Applications" on page 171
l
"GET Applications/{id}" on page 172
GET Applications
Purpose
Returns a list of applications.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
ApplicationID : int,
Name : string,
DisplayName : string,
Version : string,
Command : string,
Parameters : string,
Publisher : string,
ApplicationType : string,
FunctionalAccountID : int, // can be null
ManagedSystemID : int, // can be null
IsActive : bool,
SmartRuleID : int // can be null
}
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
171
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful. Applications in response body.
For more information, please see "Common response codes" on page 17.
GET Applications/{id}
Purpose
Returns an application by ID.
Required permissions
Password Safe Account Management (Read).
URL parameters
id: ID of the application.
Request body
None.
Response body
Content-Type: application/json
{
ApplicationID : int,
Name : string,
DisplayName : string,
Version : string,
Command : string,
Parameters : string,
Publisher : string,
ApplicationType : string,
FunctionalAccountID : int, // can be null
ManagedSystemID : int, // can be null
IsActive : bool,
SmartRuleID : int // can be null
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
172
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful. Application in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
173
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Attributes
Quick navigation
l
"GET ManagedAccounts/{managedAccountID}/Attributes" on page 174
l
"GET ManagedSystems/{managedSystemID}/Attributes" on page 175
l
"POST ManagedAccounts/{managedAccountID}/Attributes/{attributeID}" on page 176
l
"POST ManagedSystems/{managedSystemID}/Attributes/{attributeID}" on page 177
l
"DELETE ManagedAccounts/{managedAccountID}/Attributes" on page 178
l
"DELETE ManagedAccounts/{managedAccountID}/Attributes/{attributeID}" on page 179
l
"DELETE ManagedSystems/{managedSystemID}/Attributes" on page 179
l
"DELETE ManagedSystems/{managedSystemID}/Attributes/{attributeID}" on page 180
GET ManagedAccounts/{managedAccountID}/Attributes
Purpose
Returns a list of attributes by managed account ID.
Required permissions
Password Safe Account Management (Read), Attribute Management (Read).
URL parameters
managedAccountID: ID of the managed account.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
174
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Description : string, ValueInt : int, // can be null
IsReadOnly: bool
},
]
Response codes
201 - Request successful. Attributes associated with the asset in the response body.
For more information, please see "Common response codes" on page 17.
GET ManagedSystems/{managedSystemID}/Attributes
Purpose
Returns a list of attributes by managed system ID.
Required permissions
Password Safe System Management (Read), Attribute Management (Read).
URL parameters
managedSystemID: ID of the managed system.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
175
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
},
]
Response codes
200 - Request successful. Attributes associated with the Managed System in the response body.
For more information, please see "Common response codes" on page 17.
POST ManagedAccounts/{managedAccountID}/Attributes/{attributeID}
Purpose
Assigns an attribute to a managed account.
Required permissions
Password Safe Account Management (Read/Write), Attribute Management (Read/Write).
URL parameters
l
managedAccountID: ID of the managed account.
l
attributeID: ID of the attribute.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string, ValueInt : int, // can be null
IsReadOnly: bool
},
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
176
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
]
Response codes
201 - Request successful. Attribute in the response body.
For more information, please see "Common response codes" on page 17.
POST ManagedSystems/{managedSystemID}/Attributes/{attributeID}
Purpose
Assigns an attribute to a managed system.
Required permissions
Password Safe System Management (Read/Write), Attribute Management (Read/Write).
URL parameters
managedSystemID: ID of the managed system.
attributeID: ID of the attribute.
Request body
None.
Response body
Content-Type: application/json
[
{
AttributeID : int,
AttributeTypeID : int,
ParentAttributeID : int, // can be null
ShortName : string,
LongName : string,
Description : string,
ValueInt : int, // can be null
IsReadOnly: bool
},
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
177
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
]
Response codes
201 - Request successful. Attribute in the response body.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{managedAccountID}/Attributes
Purpose
Deletes all managed account attributes by managed account ID.
Required permissions
Password Safe Account Management (Read/Write), Attribute Management (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
178
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedAccounts/{managedAccountID}/Attributes/
{attributeID}
Purpose
Deletes a managed account attribute by managed account ID and attribute ID.
Required permissions
Password Safe Account Management (Read/Write), Attribute Management (Read/Write).
URL parameters
l
managedAccountID: ID of the managed account.
l
attributeID: ID of the attribute.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedSystems/{managedSystemID}/Attributes
Purpose
Deletes all managed system attributes by managed system ID.
Required permissions
Password Safe System Management (Read/Write), Attribute Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
179
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
managedSystemID: ID of the managed system.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedSystems/{managedSystemID}/Attributes/{attributeID}
Purpose
Deletes a managed system attribute by managed system ID and attribute ID.
Required permissions
Password Safe System Management (Read/Write), Attribute Management (Read/Write).
URL parameters
managedSystemID: ID of the managed system.
attributeID: ID of the attribute.
Request body
None.
Response body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
180
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
181
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Credentials
Quick navigation
l
"GET Credentials/{requestId}" on page 182
l
"GET Aliases/{aliasId}/Credentials/{requestId}" on page 183
For more information on related topics, please see:
l
"Requests" on page 379
l
"Aliases" on page 166
l
"Managed accounts" on page 228
GET Credentials/{requestId}
Purpose
Retrieves the credentials for an approved and active (not expired) credentials release request.
Required permissions
None.
URL parameters
requestId: ID of the request for which to retrieve the credentials.
Query parameters
l
type: (optional, default: password) Type of credentials to retrieve.
o
password: Returns the password in the response body.
o
dsskey: Returns the DSS private key in the response body.
Note: The key is returned in the state in which it was set. For example, an encrypted key is returned encrypted.
o
passphrase: Returns the DSS key passphrase in the response body.
Note: passphrase supported only for encrypted DSS keys.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
182
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Credentials: string
Response codes
l
200 - Request successful. Credentials in the response body.
l
403 - User does not have permissions to request credentials for the indicated account or the account does not have API access
enabled.
o
4031 - User does not have permission to request credentials. 4034 - Request is not yet approved.
l
404 - Could not find the request to release. The specified request ID may have already been released or has expired.
For more information, please see "Common response codes" on page 17.
GET Aliases/{aliasId}/Credentials/{requestId}
Purpose
Retrieves the credentials and alias details for an approved and active (not expired) credentials release request for an alias.
Required permissions
None.
URL parameters
l
aliasId: ID of the alias.
l
requestId: ID of the request for which to retrieve the credentials.
Query parameters
l
type: (optional, default: password) Type of credentials to retrieve.
l
password: Returns the password in response body property Password.
l
dsskey: Returns the DSS private key in response body property PrivateKey.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
183
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Note: The key is returned in the state in which it was set. For example, an encrypted key is returned encrypted.
l
passphrase: returns the DSS key passphrase in response body property Passphrase.
Note: passphrase supported only for encrypted DSS keys.
Request body
None.
Response body
Content-Type: application/json
{
AliasID: int,
AliasName: string,
SystemID: int,
SystemName: string,
AccountID: int,
AccountName: string,
DomainName: string,
Password: string,
PrivateKey: string,
Passphrase: string
}
Response codes
l
200 - Request successful. Account details and credentials in the response body.
l
403 - User does not have permissions to request credentials for the indicated alias or the account referenced by the alias does not
have API access enabled.
o
4031 - User does not have permission to request credentials.
o
4034 - Request is not yet approved.
l
404 - Could not find the request to release. The specified request ID may have already been released or has expired.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
184
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Custom platforms
Administrators have the ability to to export the custom platform configuration data from a customer's on-premises Password Safe instance
and import the configuration data into a Password Safe Cloud instance.
Quick navigation
l
"GET CustomPlatforms" on page 185
l
"GET CustomPlatforms/{id}" on page 186
l
"POST CustomPlatforms/Import" on page 187
l
"POST CustomPlatforms/{id}/Export" on page 188
GET CustomPlatforms
Purpose
Returns a list of platforms for managed systems.
Required permissions
Password Safe Configuration Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PlatformID : int,
Name : string
},
]
Response body details
l
PlatformID: Platform ID.
l
Name: Platform Name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
185
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
GET CustomPlatforms/{id}
Purpose
Returns a custom platform by ID.
Required permissions
Password Safe Configuration Management (Read).
URL parameters
id: ID of the platform.
Request body
None.
Response body
Content-Type: application/json
[
{
PlatformID : int,
Name : string
},
]
Response body details
l
PlatformID: Platform ID.
l
Name: Platform Name.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
186
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
POST CustomPlatforms/Import
Purpose
Imports a custom platform.
Required permissions
Password Safe Configuration Management (Read/Write).
URL parameters
None.
Request body
{
CustomPlatform : string
}
Response body
Content-Type: application/json
[
{
PlatformId : int,
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
187
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body details
l
PlatformId: The ID of the custom platform.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
POST CustomPlatforms/{id}/Export
Purpose
Exports a particular custom platform.
Required permissions
Password Safe Configuration Management (Read).
URL parameters
id: ID of the custom platform.
Request body
None.
Response body
Content-Type: application/xml
Response body details
The custom platform XML data is returned in the response..
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
188
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Directories
Quick navigation
l
"GET Directories" on page 189
l
"GET Directories/{id}" on page 190
l
"POST Workgroups/{id}/Directories" on page 191
l
"PUT Directories/{id}" on page 194
l
"DELETE Directories" on page 196
For more information on related topics, please see "Managed systems" on page 287.
GET Directories
Purpose
Returns a list of directories.
Required permissions
One of: Password Safe System Management (Read), Password Safe Domain Management (Read).
Request body
None.
Response body
Content-type: application/json [
{
DirectoryID : int,
WorkgroupID : int,
PlatformID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
189
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
}
]
Response codes
200 - Request successful. Directory in response body.
For more information, please see "Common response codes" on page 17.
GET Directories/{id}
Purpose
Returns a directory by ID.
Required permissions
One of: Password Safe System Management (Read), Password Safe Domain Management (Read).
URL parameters
id: ID of the directory.
Request body
None.
Response body
Content-Type: application/json
{
DirectoryID : int,
WorkgroupID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
190
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PlatformID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
POST Workgroups/{id}/Directories
Purpose
Creates a new directory in the Workgroup referenced by ID.
Required permissions
One of: Password Safe System Management (Read/Write), Password Safe Domain Management (Read/Write).
URL parameters
id: ID of the Workgroup.
Request body
Content-Type: application/json
{
PlatformID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
191
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
Request body details
l
PlatformID: (required) ID of the platform
l
DomainName: (required) Name of the domain. Max string length is 128.
l
ForestName: (required for Active Directory only, not applicable to LDAP) Name of the directory forest. Max string length is 64.
l
NetBiosName: (required for Active Directory, optional for LDAP) NetBIOS name of the directory. Max string length is 15.
l
UseSSL: (default: false) True to use an SSL connection, otherwise false.
l
Port: (set automatically for Active Directory, optional for LDAP) The port used to connect to the host. If null and the related
Platform is LDAP, Password Safe uses Platform.DefaultPort.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
Description: (optional) Description of the directory. Max string length is 255.
l
ContactEmail: Max string length is 1000.
l
PasswordRuleID: (default: 0) ID of the default password rule assigned to managed accounts created under this managed
system.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AccountNameFormat: (Active Directory only, default: 0) Account Name format to use:
o
0: Domain and Account. Use ManagedAccount.DomainName\ManagedAccount.AccountName
o
1: UPN. Use the Managed Account UPN
o
2: SAM. Use the Managed Account SAM Account Name
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the functional account used for managed account
password changes. FunctionalAccount.PlatformID must match the PlatformID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
192
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month
n
last: Changes scheduled for the last day of the month
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays)
o
ChangeFrequencyDays: (days: 1-999, required if ChangeFrequencyType is xdays) When ChangeFrequencyType is
xdays, password changes take place this configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
Response body
Content-Type: application/json
{
DirectoryID : int,
WorkgroupID : int,
PlatformID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
Response codes
201 - Request successful. Directory in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
193
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PUT Directories/{id}
Purpose
Updates an existing directory by ID.
Required permissions
One of: Password Safe System Management (Read/Write), Password Safe Domain Management (Read/Write).
URL parameters
id: ID of the directory.
Request body
Content-Type: application/json
{
PlatformID : int,
WorkgroupID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
Request body details
l
WorkgroupID: (required) ID of the Workgroup.
l
PlatformID: (required) ID of the platform.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
194
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
DomainName: (required) Name of the domain. Max string length is 128.
l
ForestName: (required for Active Directory only, not applicable to LDAP) Name of the directory forest. Max string length is 64..
l
NetBiosName: (required for Active Directory, optional for LDAP) NetBIOS Name of the directory. Max string length is 15.
l
UseSSL: (default: false) True to use an SSL connection, otherwise false.
l
Port: (set automatically for Active Directory, optional for LDAP) The port used to connect to the host. If null and the related
Platform is LDAP, Password Safe uses Platform.DefaultPort.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
Description: (optional) Description of the directory. Max string length is 255.
l
ContactEmail: Max string length is 1000.
l
PasswordRuleID: (default: 0) ID of the default password rule assigned to managed accounts created under this managed
system.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AccountNameFormat: (Active Directory only, default: 0) Account name format to use:
o
0: Domain and Account. Use ManagedAccount.DomainName\ManagedAccount.AccountName
o
1: UPN. Use the Managed Account UPN
o
2: SAM. Use the Managed Account SAM Account Name
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the functional account used for managed account
password changes. FunctionalAccount.PlatformID must match the PlatformID.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month
n
last: Changes scheduled for the last day of the month
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays)
o
ChangeFrequencyDays: (days: 1-999, required if ChangeFrequencyType is xdays) When ChangeFrequencyType is
xdays, password changes take place this configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
Response body
Content-Type: application/json
{
DirectoryID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
195
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
WorkgroupID : int,
PlatformID : int,
DomainName : string,
ForestName : string,
NetBiosName : string,
UseSSL : bool,
Port : int, // can be null
Timeout : short,
Description : string,
ContactEmail : string,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AccountNameFormat : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
Response codes
200 - Request successful. Directory in response body.
For more information, please see "Common response codes" on page 17.
DELETE Directories
Purpose
Deletes a directory by ID.
Required permissions
One of: Password Safe System Management (Read/Write), Password Safe Domain Management (Read/Write).
URL parameters
id: ID of the directory.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
196
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
197
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Oracle internet directories
Quick navigation
l
"GET OracleInternetDirectories" on page 198
l
"GET OracleInternetDirectories/{id}" on page 199
l
"GET Organizations/{id}/OracleInternetDirectories" on page 199
l
"POST OracleInternetDirectories/{id}/Services/Query" on page 200
l
"POST OracleInternetDirectories/{id}/Test" on page 201
GET OracleInternetDirectories
Purpose
Returns a list of Oracle Internet Directories.
Required permissions
Password Safe System Management (Read).
Request body
None.
Response body
Content-type: application/json
[{
OrganizationID : Guid,
OracleInternetDirectoryID : Guid,
Name : string,
Description : string,
},
…]
Response codes
200 Request successful. Oracle Internet Directories in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
198
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET OracleInternetDirectories/{id}
Purpose
Returns an Oracle Internet Directory by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the Oracle Internet Directory.
Request body
None.
Response body
Content-Type: application/json
{
OrganizationID : Guid,
OracleInternetDirectoryID : Guid,
Name : string,
Description : string,
}
Response codes
200 Request successful. Oracle Internet Directory in response body.
For more information, please see "Common response codes" on page 17.
GET Organizations/{id}/OracleInternetDirectories
Purpose
Returns a list of Oracle Internet Directories by organization ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
199
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the organization.
Request body
None.
Response body
Content-Type: application/json
[{
OrganizationID : Guid,
OracleInternetDirectoryID : Guid,
Name : string,
Description : string,
},
…]
Response codes
200 Request successful. Oracle Internet Directories in response body.
For more information, please see "Common response codes" on page 17.
POST OracleInternetDirectories/{id}/Services/Query
Purpose
Queries and returns DB Services for an Oracle Internet Directory by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
id: ID of the Oracle Internet Directory.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
200
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
{
Success : bool,
Message : string,
Services : [{
Name : string,
},
…]
}
Response codes
200 - Request successful. Oracle Internet Directory query result in response body.
For more information, please see "Common response codes" on page 17.
POST OracleInternetDirectories/{id}/Test
Purpose
Tests the connection to an Oracle Internet Directory by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
id: ID of the Oracle Internet Directory.
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
201
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
Success : bool,
}
Response codes
200 Request successful. Oracle Internet Directory test result in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
202
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DSS key policies
Note: DSS Key Policies are formerly known as DSS Key Rules but the API remains DSSKeyRules to be compatible with
earlier versions.
Quick navigation
l
"GET DSSKeyRules" on page 203
l
"GET DSSKeyRules/{id}" on page 204
GET DSSKeyRules
Purpose
Returns a list of DSS Key Rules.
Required permissions
Password Safe System Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
DSSKeyRuleID: int,
Name: string,
Description: string,
KeyType: string,
KeySize: int,
EncryptionType: char,
PasswordRuleID: int, // can be null
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
203
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body details
l
KeyType: (RSA, DSA) The type of key to generate.
l
EncryptionType: The type of key encryption to use:
o
A: Auto-managed passphrase, generated using the associated password rule (see PasswordRuleID).
o
N: No encryption.
l
PasswordRuleID: (given when EncryptionType is A) ID of the password rule used to auto-generate the passphrase for DSS key
encryption.
Response codes
200 - Request successful. DSS Key Rules in the response body.
For more information, please see "Common response codes" on page 17.
GET DSSKeyRules/{id}
Purpose
Returns a DSS Key Rule by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the DSS Key Rule.
Request body
None.
Response body
Content-Type: application/json
{
DSSKeyRuleID: int,
Name: string,
Description: string,
KeyType: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
204
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
KeySize: int,
EncryptionType: char,
PasswordRuleID: int, // can be null
}
Response body details
l
KeyType: The type of key to generate (RSA, DSA).
l
EncryptionType: The type of key encryption to use:
o
A: Auto-managed passphrase, generated using the associated password rule (see PasswordRuleID).
o
N: No encryption.
l
PasswordRuleID: (given when EncryptionType is A) ID of the password rule used to auto-generate the passphrase for DSS key
encryption.
Response codes
200 - Request successful. DSS Key Rule in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
205
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Entity types
Entity types define the types of entities within Password Safe (for example, asset, database, directory, and cloud).
For more information on related topics, please see "Platforms" on page 355.
GET EntityTypes
Purpose
Returns a list of entity types.
Required permissions
None.
Request body
None.
Response body
Content-Type: application/json
[
{
EntityTypeID: int,
Name: string,
Description: string,
},
]
Response codes
200 - Request successful. Entity types in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
206
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Functional accounts
Quick navigation
l
"GET FunctionalAccounts" on page 207
l
"GET FunctionalAccounts/{id}" on page 208
l
"POST FunctionalAccounts" on page 209
l
"DELETE FunctionalAccounts/{id}" on page 211
GET FunctionalAccounts
Purpose
Returns a list of functional accounts.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
FunctionalAccountID : int,
PlatformID : int,
DomainName : string,
AccountName : string,
DisplayName : string,
Description : string,
ElevationCommand : string,
SystemReferenceCount : int,
TenantID : string,
ObjectID : string
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
207
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body details
l
PlatformID: ID of the platform to which the account belongs.
l
DomainName: Domain name of the account.
l
AccountName: Name of the account (does not include domain name).
l
DisplayName: The display name or alias for the account.
l
Description: Description of the account.
l
ElevationCommand: Elevation command used for SSH connections (sudo, pbrun, pmrun).
l
SystemReferenceCount: The count of managed systems that reference the functional account.
l
TenantID: TenantID of the account (if applicable).
l
ObjectID: ObjectID of the account (if applicable).
Response codes
200 - Request successful. Functional account in the response body.
For more information, please see "Common response codes" on page 17.
GET FunctionalAccounts/{id}
Purpose
Returns a functional account by ID.
Required permissions
Password Safe Account Management (Read).
URL parameters
id: ID of the functional account.
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
208
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
FunctionalAccountID : int,
PlatformID: int, DomainName : string,
AccountName : string,
DisplayName : string,
Description : string,
ElevationCommand : string,
SystemReferenceCount : int,
TenantID : string,
ObjectID : string
}
Response body details
l
PlatformID: ID of the platform to which the account belongs.
l
DomainName: Domain name of the account.
l
AccountName: Name of the account (does not include domain name).
l
DisplayName: The display name or alias for the account.
l
Description: Description of the account.
l
ElevationCommand: Elevation command used for SSH connections (sudo, pbrun, pmrun).
l
SystemReferenceCount: The count of managed systems that reference the functional account.
l
TenantID: TenantID of the account (if applicable).
l
ObjectID: ObjectID of the account (if applicable).
Response codes
200 - Request successful. Functional Account in the response body.
For more information, please see "Common response codes" on page 17.
POST FunctionalAccounts
Purpose
Creates a functional account.
Required permissions
Password Safe Account Management (Read/Write).
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
209
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
PlatformID : int,
DomainName : string,
AccountName : string,
DisplayName : string,
Password : string,
PrivateKey : string,
Passphrase : string,
Description : string,
ElevationCommand : string,
TenantID : string,
ObjectID : string,
Secret : string
}
Request body details
l
PlatformID: (required) ID of the platform to which the account belongs.
l
DomainName: (optional) Domain name of the account. Can be set if Platform.DomainNameFlag is true. Max string length is 50.
l
AccountName: (required) Name of the account (do not include domain name). Max string length is 245.
l
DisplayName: (optional) The display name or alias for the account. If not given, uses the AccountName. Must be unique for the
platform. Max string length is 100.
l
Password: (required when Platform.RequiresSecret is false) The current account password.
l
PrivateKey: (optional) DSS private key. Can be set if Platform.DSSFlag is true.
l
Passphrase: (required when PrivateKey is an encrypted DSS key) DSS passphrase. Can be set if Platform.DSSFlag is true.
l
Description: (optional) Description of the account. Max string length is 1000.
l
ElevationCommand: (optional) Elevation command to use for SSH connections. Can be set if Platform.SupportsElevationFlag
is true (sudo, pbrun, pmrun). Max string length is 80.
l
TenantID: string (required when Platform.RequiresTenantID is true). Max string length is 36.
l
ObjectID: string (required when Platform.RequiresObjectID is true). Max string length is 36.
l
Secret: string: (required when Platform.RequiresSecret is true). Max string length is 255.
Response body
Content-Type: application/json
{
FunctionalAccountID : int,
PlatformID : int,
DomainName : string,
AccountName : string,
DisplayName : string,
Description : string,
ElevationCommand : string,
SystemReferenceCount : int,
TenantID : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
210
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ObjectID : string
}
Response body details
l
PlatformID: ID of the platform to which the account belongs.
l
DomainName: Domain name of the account.
l
AccountName: Name of the account (does not include domain name).
l
DisplayName: The display name or alias for the account.
l
Description: Description of the account.
l
ElevationCommand: Elevation command used for SSH connections (sudo, pbrun, pmrun).
l
SystemReferenceCount: The count of managed systems that reference the functional account.
l
TenantID: TenantID of the account (if applicable).
l
ObjectID: ObjectID of the account (if applicable).
Response codes
201 - Request successful. Functional Account in the response body.
For more information, please see "Common response codes" on page 17.
DELETE FunctionalAccounts/{id}
Purpose
Deletes a functional account by ID.
Required permissions
Password Safe Account Management (Read/Write).
Other requirements
The functional account cannot be referenced by any managed systems.
URL parameters
id: ID of the functional account.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
211
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
212
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ISA requests
The ISARequests endpoint is for Information Systems Administrator (ISA) role access.
For more information on Requestor and Requestor/Approver role access, please see "POST Requests" on page 380.
POST ISARequests
Purpose
Creates a new Information Systems Administrator (ISA) release request and returns the requested credentials.
Similar to POST Requests (AccessType=View) and GET Credentials in a single call.
Required roles
ISA Role to managed account referenced by ID.
Query parameters
l
type: (optional, default: password) Type of credentials to retrieve.
o
password: Returns the password in the response body.
o
dsskey: Returns the DSS private key in the response body.
Note: The key is returned in the state in which it was set. For example, an encrypted key is returned encrypted.
o
passphrase: Returns the DSS key passphrase in the response body.
Note: passphrase supported only for encrypted DSS keys.
Request body
Content-Type: application/json
{
SystemID: int,
AccountID: int,
DurationMinutes: int, // can be null
Reason: string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
213
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
l
SystemID: (required) ID of the managed system to request.
l
AccountID: (required) ID of the managed account to request.
l
DurationMinutes: (optional) The request duration (in minutes). If omitted, uses the value
ManagedAccount.ISAReleaseDuration.
l
Reason: (optional) The reason for the request.
Response body
{
Credentials: string
}
Response codes
201 - Request successful. Credentials in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
214
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ISA sessions
The ISASessions endpoint is for Information Systems Administrator (ISA) role access.
For more information on Requestor and Requestor/Approver role access, please see the following:
l
"POST Requests" on page 380
l
"POST Requests/{requestID}/Sessions" on page 404
POST ISASessions
Purpose
Creates a new Information Systems Administrator (ISA) release request and returns the requested session.
Similar to POST Requests and POST Sessions in a single call.
Required roles
l
ISA role to managed account referenced by ID.
Request body
Content-Type: application/json
{
SessionType : string,
SystemID: int,
AccountID: int,
DurationMinutes : int, // can be null
ApplicationID: int, // can be null
Reason : string
}
Request body details
l
SessionType: (required) The type of session to create.
l
SystemID: (required) ID of the managed system to request.
l
AccountID: (required) ID of the managed account to request.
l
DurationMinutes: (optional) The request duration (in minutes). If omitted, uses the value
ManagedAccount.ISAReleaseDuration.
l
ApplicationID: (required when AccessType = App or AccessType = AppFile) ID of the application to request.
l
Reason: (optional) The reason for the request.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
215
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (SSH or sshticket)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
TicketAtHost : string,
Link : string,
Command : string
}
Response body (RDP or rdpticket)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string
}
Response body (rdpfile or appfile)
RDP file as an attachment.
Response codes
201- Request successful. Session details or RDP file in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
216
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Keystrokes
Quick navigation
l
"GET Sessions/{sessionId:int}/Keystrokes" on page 217
l
"GET Keystrokes/{id:long}" on page 218
l
"POST Keystrokes/Search" on page 218
GET Sessions/{sessionId:int}/Keystrokes
Purpose
Returns a list of keystrokes by session ID.
Required roles
Password Safe Auditor role, ISA role, or a member of BeyondInsight Administrators group.
URL parameters
sessionId: ID of recorded RDP/SSH session.
Response body
Content-Type: application/json
[
{
KeystrokeID: long,
SessionID: int,
TimeMarker: long,
Type: byte,
Data: string
},
]
Response codes
200 - Request successful. Keystrokes are in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
217
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Keystrokes/{id:long}
Purpose
Returns a keystroke by ID.
Required roles
Password Safe Auditor role, ISA role, or a member of BeyondInsight Administrators group.
URL parameters
id: ID of a keystroke.
Response body
Content-Type: application/json
{
KeystrokeID: long,
SessionID: int,
TimeMarker: long,
Type: byte ,
Data: string
}
Response codes
200 - Request successful. Keystroke in response body.
For more information, please see "Common response codes" on page 17.
POST Keystrokes/Search
Purpose
Search for keystrokes.
Required roles
Password Safe Auditor role, ISA role, or a member of BeyondInsight Administrators group.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
218
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
Content-Type: application/json
{
Data: string,
Type: byte
}
Request body details
l
Data: (required) Keyword(s) for which to search.
l
Type: (default: 0) Type of keystrokes:
o
0: All
o
1: StdIn
o
2: StdOut
o
4: Window Event
o
5: User Event
Response body
Content-Type: application/json
[
{
KeystrokeID: long,
SessionID: int,
TimeMarker: long,
Type: byte,
Data: string
},
]
Response codes
200 - Request successful. Keystrokes are in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
219
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Linked accounts
Linked accounts are Directory managed accounts that are linked to asset-based managed systems.
Note: Directory accounts can be linked only to managed assets and managed databases.
Quick navigation
l
"GET ManagedSystems/{systemID}/LinkedAccounts" on page 220
l
"POST ManagedSystems/{systemID}/LinkedAccounts/{accountID}" on page 223
l
"DELETE ManagedSystems/{systemID}/LinkedAccounts" on page 225
l
"DELETE ManagedSystems/{systemID}/LinkedAccounts/{accountID}" on page 226
GET ManagedSystems/{systemID}/LinkedAccounts
Purpose
Returns a list of linked directory managed accounts by managed system ID.
Required permissions
Password Safe System Management (Read).
URL parameters
systemID: ID of the managed system.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
220
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
221
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (see ChangeServicesFlag),
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 means unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (see IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 - Request successful. Linked managed account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
222
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedSystems/{systemID}/LinkedAccounts/{accountID}
Purpose
Links a directory managed account to the managed system referenced by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
l
systemID: ID of the managed system.
l
accountID: ID of the directory managed account.
Request body
None.
Response body
Content-Type: application/json
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
223
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging: bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
}
Response body details
l
AccountName: The name of the account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (see ChangeServicesFlag),
otherwise false.
l
ReleaseDuration:(minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
224
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
l
200 - Account was already linked. Directory Managed Account in the response body.
l
201 - Account was linked successfully. Directory Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
DELETE ManagedSystems/{systemID}/LinkedAccounts
Purpose
Unlinks all directory managed accounts from the managed system by ID.
Required permissions
Password Safe System Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
225
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
systemID: ID of the managed system.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedSystems/{systemID}/LinkedAccounts/{accountID}
Purpose
Unlinks a directory managed account from the managed system by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
l
systemID: ID of the managed system.
l
accountID: ID of the directory managed account.
Request body
None.
Response body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
226
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
227
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Managed accounts
There are two different ways to interact with managed accounts:
1. Role-based:Requestor, Requestor/Approver, or ISA role assigned for requesting access to a specific managed account.
2. Permission-based: A user with appropriate Password Safe Account Management permission for provisioning accounts and
viewing the definition of a managed account.
Role-based access
Quick navigation
l
"GET ManagedAccounts" on page 228
l
"GET ManagedAccounts?systemName={systemName}&accountName={accountName}" on page 232
For more information on related topics, please see:
l
"Managed systems" on page 287
l
"Requests" on page 379
l
"Quick rules" on page 367
l
"Smart Rules" on page 110
GET ManagedAccounts
Note: When specifying a directory managed account name in the GET ManagedAccounts API call, the account name must
be in the UPN or Domain\AccountName format, even if the option type=domainlinked is specified.
For example:
GET managedaccounts?accountname=domain\directoryAccount&type=domainlinked
type=domainlinked is not necessary in the example above.
type=domainlinked can be used to limit the returned results to domain accounts when an account name is not included in the
call. type=domainlinked can also be useful when you want to exclude local accounts when specifying the systemname.
If a managed account name is not specified, then type=domainlinked can be used to get all the domain linked accounts that
the logged-in user has access to.
Purpose
Returns a list of managed accounts (or a single managed account depending on the query parameters provided) that can be requested by
the current user.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
228
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required roles
Requestor, Requestor/Approver, or ISA role.
Other requirements
Only managed accounts with the Enable for API Access setting enabled are returned.
Query parameters
l
systemName: (optional) Name of the managed system.
l
accountName: (optional) Name of the managed account.
l
systemID: (optional) ID of the Managed System.
l
workgroupName: (optional) Name of the Workgroup.
l
applicationDisplayName: (optional, when given, type must be application) Display name of the application.
l
ipAddress: (optional, when given type must be one of system, domainlinked, or database) IP Address of the managed asset.
l
type: (optional/recommended) Type of the managed account to return.
o
system: Returns local accounts.
o
recent: Returns recently used accounts.
o
domainlinked: Returns domain accounts linked to systems.
o
database: Returns database accounts.
o
cloud: Returns cloud system accounts.
o
application: Returns application accounts
l
limit: (optional) (default: 1000) Number of records to return
l
offset: (optional) (default: 0) Number of records to skip before returning <limit> records
Request body
None
Response body (when both systemName or systemID, and accountName are
given)
Content-Type: application/json
{
PlatformID : int,
SystemId : int,
SystemName : string,
DomainName : string,
AccountId : int,
AccountName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
229
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
InstanceName : string,
UserPrincipalName : string,
ApplicationID : int,
ApplicationDisplayName : string,
DefaultReleaseDuration : int,
MaximumReleaseDuration : int,
LastChangeDate : datetime,
NextChangeDate : datetime,
IsChanging : bool,
ChangeState : int,
IsISAAccess : bool,
PreferredNodeID : string
}
Response body (all other combinations of query parameters)
Content-Type: application/json
[
{
PlatformID : int,
SystemId : int,
SystemName : string,
DomainName : string,
AccountId : int,
AccountName : string,
InstanceName : string,
UserPrincipalName : string,
ApplicationID : int,
ApplicationDisplayName : string,
DefaultReleaseDuration : int,
MaximumReleaseDuration : int,
LastChangeDate : datetime,
NextChangeDate : datetime,
IsChanging : bool,
ChangeState : int,
IsISAAccess : bool,
PreferredNodeID : string
},
]
Response body details
l
PlatformID: ID of the managed system platform.
l
SystemId: ID of the managed system.
l
SystemName: Name of the managed system.
l
DomainName: The domain name for a domain-type account.
l
AccountId: ID of the managed account.
l
AccountName: Name of the managed account.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
230
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
InstanceName: Database instance name of a database-type managed system, or empty for the default instance.
l
UserPrincipalName: User Principal Name of the managed account.
l
ApplicationID: ID of the application for application-based access.
l
ApplicationDisplayName: Display name of the application for application-based access.
l
DefaultReleaseDuration (minutes): Default release duration.
l
MaximumReleaseDuration (minutes): Maximum release duration.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
IsISAAccess: True if the account is for Information Systems Administrator (ISA) access, otherwise false.
Note: If true, credential access is through POST ISARequests and session access is through POST ISASessions.
If false, credential access is through POST Requests and GET Credentials; session access is through POST Requests and
POST Sessions.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
l
PreferredNodeID: ID of the node that is preferred for establishing sessions. If no node is preferred, returns the local node ID.
For more information, please see the following:
l
"ISA requests" on page 213
l
"ISA sessions" on page 215
l
"POST Requests" on page 380
l
"Credentials" on page 182
l
"POST Requests/{requestID}/Sessions" on page 404
Response codes
200 - Request successful. Requestable Account(s) in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
231
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedAccounts?systemName={systemName}&accountName=
{accountName}
Note: This API has had optional query parameters added to better isolate specific results as needed in specific applications
while using GET ManagedAccounts.
For more information, please see "GET ManagedAccounts" on page 228.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
232
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Provisioning
Quick navigation
l
"GET ManagedAccounts/{id}" on page 234
l
"GET ManagedSystems/{systemID}/ManagedAccounts" on page 237
l
"GET ManagedSystems/{systemID}/ManagedAccounts?name={name}" on page 240
l
"PUT ManagedAccounts/{id}" on page 243
l
"POST ManagedSystems/{systemID}/ManagedAccounts" on page 251
l
"DELETE ManagedAccounts/{id}" on page 261
l
"DELETE ManagedSystems/{systemID}/ManagedAccounts/{accountName}" on page 262
l
"DELETE ManagedSystems/{id}/ManagedAccounts" on page 263
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
233
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedAccounts/{id}
Purpose
Returns a managed account by ID.
Required permissions
Password Safe Account Management (Read).
URL parameters
id: ID of the managed account.
Request body
None.
Response body
Content-Type: application/json
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
UserPrincipalName : string,
SAMAccountName : string,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
234
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate: datetime, // can be null
NextChangeDate: datetime, // can be null
IsChanging: bool
ChangeState : int,
UseOwnCredentials: bool,
WorkgroupID : int // can be null
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
ObjectID : string
}
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
UserPrincipalName: (Active Directory managed systems only) The account user principal name of an Active Directory account.
l
SAMAccountName: (Active Directory managed systems only) The account SAM account name of an Active Directory account.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, default: 1) Maximum number of concurrent password requests for this account. A value of
zero denotes unlimited requests.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
235
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / No change taking place or scheduled within 5 minutes.
o
1: Changing / Managed Account Credential currently changing.
o
2: Queued / Managed Account Credential is queued to change or scheduled to change within 5 minutes.
l
UseOwnCredentials: True if the current account credentials should be used during change operations, otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
l
ObjectID: (required when Platform.RequiresObjectID is true). ObjectID of the account (if applicable).
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response code
200 - Request successful. Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
236
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedSystems/{systemID}/ManagedAccounts
Purpose
Returns a list of managed accounts by managed system ID.
Required permissions
Password Safe Account Management (Read).
URL parameters
systemID: ID of the managed system.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
UserPrincipalName : string,
SAMAccountName : string,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
237
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
WorkgroupID : int // can be null
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
UserPrincipalName: (Active Directory managed systems only) The account user principal name of an Active Directory account.
l
SAMAccountName: (Active Directory managed systems only) The account SAM account name of an Active Directory account.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
238
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
MaxConcurrentRequests: (0-999, default: 1) Maximum number of concurrent password requests for this account. A value of
zero denotes unlimited requests.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
l
WorkgroupID: ID of the assigned Workgroup.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 - Request successful. Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
239
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedSystems/{systemID}/ManagedAccounts?name={name}
Purpose
Returns a managed account by managed system ID and managed account name.
Required permissions
Password Safe Account Management (Read).
URL parameters
systemID: ID of the managed system.
Query parameters
name: Name of the managed account.
Request body
None.
Response body
Content-Type: application/json
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
UserPrincipalName : string,
SAMAccountName : string,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
240
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate: datetime, // can be null
NextChangeDate: datetime, // can be null
IsChanging: bool
ChangeState : int,
UseOwnCredentials: bool,
WorkgroupID : int // can be null
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
}
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
UserPrincipalName: (Active Directory managed systems only) The account user principal name of an Active Directory account.
l
SAMAccountName: (Active Directory managed systems only) The account SAM account name of an Active Directory account.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, default: 1) Maximum number of concurrent password requests for this account. A value of
zero denotes unlimited requests.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
241
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / No change taking place or scheduled within 5 minutes.
o
1: Changing / Managed Account Credential currently changing.
o
2: Queued / Managed Account Credential is queued to change or scheduled to change within 5 minutes.
l
UseOwnCredentials: True if the current account credentials should be used during change operations, otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 - Request successful. Managed Account in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
242
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PUT ManagedAccounts/{id}
Purpose
Updates an existing managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
id: ID of the managed account.
l
version: (optional, default: 3.0) Request body model version (3.0, 3.1, 3.2, 3.3, 3.4, 3.5).
Request body (version 3.0)
Content-Type: application/json
{
AccountName : string,
ManagedSystemID: int,
Password : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
243
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body (version 3.1)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool
}
Request body (version 3.2)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
244
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool
}
Request body (version 3.3)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
245
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null
}
Request body (version 3.4)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
246
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null,
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
}
Request body (version 3.5)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
247
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
ObjectID : string
}
Request body details
l
AccountName: (required) The name of the account. Must be unique on the system. Max string length is 245.
l
ManagedSystemID: (required) ID of the managed system.
l
Password: (required if AutoManagementFlag is false) The account password.
l
DomainName: (optional) This can be given but it must be exactly the same as the directory. If empty or null, it is automatically
populated from the parent managed system/directory. Max string length is 50.
l
UserPrincipalName: (required for Active Directory managed systems only) The Active Directory user principal name. Max string
length is 500.
l
SAMAccountName: (required for Active Directory managed systems only) The Active Directory SAM account name (maximum
20 characters). Max string length is 20.
l
DistinguishedName: (required for LDAP Directory managed systems only) The LDAP distinguished name. Max string length is
1000.
l
PrivateKey: DSS private key. Can be set if Platform.DSSFlag is true.
l
Passphrase: (required when PrivateKey is an encrypted DSS key) DSS passphrase. Can be set if Platform.DSSFlag is true.
l
PasswordFallbackFlag: (default: false) True if failed DSS authentication can fall back to password authentication, otherwise
false. Can be set if Platform.DSSFlag is true.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false. Can be
set when the ManagedSystem.LoginAccountID is set.
l
Description: A description of the account. Max string length is 1024.
l
PasswordRuleID: (default: 0) ID of the password rule assigned to this managed account.
l
ApiEnabled: (default: false) True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account. Max string length is 255.
l
ChangeServicesFlag: (default: false) True if services run as this user should be updated with the new password after a password
change, otherwise false.
l
RestartServicesFlag: (default: false) True if services should be restarted after the run as password is changed
(ChangeServicesFlag), otherwise false.
l
ChangeTasksFlag: (default: false) True if scheduled tasks run as this user should be updated with the new password after a
password change, otherwise false.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited, default: 1) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: (default: false) True if DSS key auto-management is enabled, otherwise false. If set to true,
and no PrivateKey is provided, immediately attempts to generate and set a new public key on the server. Can be set if
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
248
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Platform.DSSAutoManagementFlag is true.
o
CheckPasswordFlag: (default: false) True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: (default: false) True to change passwords on release of a request, otherwise
false.
o
ResetPasswordOnMismatchFlag: (default: false) True to queue a password change when scheduled password test
fails, otherwise false.
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
o
NextChangeDate: (date format: YYYY-MM-DD) UTC date when next scheduled password change occurs. If the
NextChangeDate + ChangeTime is in the past, password change occurs at the nearest future ChangeTime.
l
UseOwnCredentials: (version 3.1+) True if the current account credentials should be used during change operations, otherwise
false.
l
ChangeIISAppPoolFlag: (version 3.2 only) True if IIS Application Pools run, as this user should be updated with the new
password after a password change, otherwise false.
l
RestartIISAppPoolFlag: (version 3.2 only) True if IIS Application Pools should be restarted after the run as password is changed
(ChangeIISAppPoolFlag), otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
l
ChangeWindowsAutoLogonFlag: (default: false) True if Windows Auto Logon should be updated with the new password after a
password change, otherwise false.
l
ChangeComPlusFlag: (default: false) True if COM+ Apps should be updated with the new password after a password change,
otherwise false.
l
ChangeDComFlag: (default: false) True if DCOM Apps should be updated with the new password after a password change,
otherwise false.
l
ChangeSComFlag: (default: false) True if SCOM Identities should be updated with the new password after a password change,
otherwise false.
l
ObjectID: (required when Platform.RequiresObjectID is true). ObjectID of the account (if applicable). Max string length is 36.
Response body
Content-Type: application/json
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
249
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate: datetime, // can be null
NextChangeDate: datetime, // can be null
IsChanging: bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
ObjectID : string
}
Response codes
200 - Request successful. Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
250
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedSystems/{systemID}/ManagedAccounts
Purpose
Creates a new managed account in the managed system referenced by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
systemID: ID of the managed system.
Query parameters
version: (optional, default: 3.0) Request body model version (3.0, 3.1, 3.2, 3.3, 3.4, 3.5).
Request body (version 3.0)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
251
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string
}
Request body (version 3.1)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool
}
Request body (version 3.2)
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
252
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool
}
Request body (version 3.3)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
253
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null
}
Request body (version 3.4)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
254
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null,
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
}
Request body (version 3.5)
Content-Type: application/json
{
AccountName : string,
Password : string,
DomainName : string,
UserPrincipalName : string,
SAMAccountName : string,
DistinguishedName : string,
PrivateKey : string,
Passphrase : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
255
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
NextChangeDate : date-formatted string,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null,
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
ObjectID : string
}
Request body details
l
AccountName: (required) The name of the account. Must be unique on the system. Max string length is 245.
l
Password: (required if AutoManagementFlag is false) The account password.
l
DomainName: (optional) This can be given but it must be exactly the same as the directory. If empty or null, it is automatically
populated from the parent managed system/directory. Max string length is 50.
l
UserPrincipalName: (required for Active Directory and Entra ID managed systems only) The Active Directory user principal
name. Max string length is 500.
l
SAMAccountName: (required for Active Directory managed systems, optional for Entra ID managed systems) The Active
Directory SAM account name (Maximum 20 characters). Max string length is 20.
l
DistinguishedName: (required for LDAP Directory managed systems only) The LDAP distinguished name. Max string length is
1000.
l
PrivateKey: DSS private key. Can be set if Platform.DSSFlag is true.
l
Passphrase: (required when PrivateKey is an encrypted DSS key) DSS passphrase. Can be set if Platform.DSSFlag is true.
l
PasswordFallbackFlag: (default: false) True if failed DSS authentication can fall back to password authentication, otherwise
false. Can be set if Platform.DSSFlag is true.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false. Can be
set when the ManagedSystem.LoginAccountID is set.
l
Description: A description of the account. Max string length is 1024.
l
PasswordRuleID: (default: 0) ID of the password rule assigned to this managed account.
l
ApiEnabled: (default: false) True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account. Max string length is 255.
l
ChangeServicesFlag: (default: false) True if services run as this user should be updated with the new password after a password
change, otherwise false.
l
RestartServicesFlag: (default: false) True if services should be restarted after the run as password is changed
(ChangeServicesFlag), otherwise false.
l
ChangeTasksFlag: (default: false) True if scheduled tasks run as this user should be updated with the new password after a
password change, otherwise false.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
256
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited, default: 1) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: (default: false) True if DSS key auto-management is enabled, otherwise false. If set to true,
and no PrivateKey is provided, immediately attempts to generate and set a new public key on the server. Can be set if
Platform.DSSAutoManagementFlag is true.
o
CheckPasswordFlag: (default: false) True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: (default: false) True to change passwords on release of a request, otherwise
false.
o
ResetPasswordOnMismatchFlag: (default: false) True to queue a password change when scheduled password test
fails, otherwise false.
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
o
NextChangeDate: (date format: YYYY-MM-DD) UTC date when next scheduled password change occurs. If the
NextChangeDate + ChangeTime is in the past, password change occurs at the nearest future ChangeTime.
l
UseOwnCredentials: (version 3.1+) True if the current account credentials should be used during change operations, otherwise
false.
l
ChangeIISAppPoolFlag: (version 3.2 only) True if IIS application pools run as this user should be updated with the new password
after a password change, otherwise false.
l
RestartIISAppPoolFlag: (version 3.2 only) True if IIS application pools should be restarted after the run as password is changed
(ChangeIISAppPoolFlag), otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
l
ChangeWindowsAutoLogonFlag: (default: false) True if Windows Auto Logon should be updated with the new password after a
password change, otherwise false.
l
ChangeComPlusFlag: (default: false) True if COM+ Apps should be updated with the new password after a password change,
otherwise false.
l
ChangeDComFlag: (default: false) True if DCOM Apps should be updated with the new password after a password change,
otherwise false.
l
ChangeSComFlag: (default: false) True if SCOM Identities should be updated with the new password after a password change,
otherwise false.
l
ObjectID: (required when Platform.RequiresObjectID is true). ObjectID of the account (if applicable). Max string length is 36.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
257
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
UserPrincipalName : string,
SAMAccountName : string,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
ObjectID : string
}
Response body details
l
AccountName: The name of the account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
UserPrincipalName: (Active Directory and Entra ID managed systems only) The account user principal name of an Active
Directory account.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
258
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
SAMAccountName: (Active Directory managed systems, optional for Entra ID managed systems) The account SAM account
name of an Active Directory account.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 means unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account, this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
l
UseOwnCredentials: True if the current account credentials should be used during change operations, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
259
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ChangeIISAppPoolFlag: True if IIS application pools run as this user should be updated with the new password after a password
change, otherwise false.
l
RestartIISAppPoolFlag: True if IIS application pools should be restarted after the run as password is changed, otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
l
ChangeWindowsAutoLogonFlag: True if Windows auto logon should be updated with the new password after a password
change, otherwise false.
l
ChangeComPlusFlag: True if COM+ apps should be updated with the new password after a password change, otherwise false.
l
ChangeDComFlag: True if DCOM apps should be updated with the new password after a password change, otherwise false.
l
ChangeSComFlag: True if SCOM identities should be updated with the new password after a password change, otherwise false.
l
ObjectID: ObjectID of the account (if applicable).
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
201 - Request successful. Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
260
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedAccounts/{id}
Purpose
Deletes a managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
id: ID of the managed account.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
261
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedSystems/{systemID}/ManagedAccounts/
{accountName}
Purpose
Deletes a managed account by managed system ID and managed account name.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
systemID: ID of the managed system.
l
accountName: Name of the managed account.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
262
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedSystems/{id}/ManagedAccounts
Purpose
Deletes all managed accounts on the managed system by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
id: ID of the managed system.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
263
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Managed account credentials
Quick navigation
l
"PUT ManagedAccounts/{managedAccountID}/Credentials" on page 264
l
"PUT Credentials?workgroupName={workgroupName}&assetName={assetName}&accountName={accountName}" on page 265
l
"POST ManagedAccounts/{managedAccountID}/Credentials/Test" on page 266
l
"POST ManagedAccounts/{managedAccountID}/Credentials/Change" on page 267
l
"POST ManagedSystems/{systemId}/ManagedAccounts/Credentials/Change" on page 268
PUT ManagedAccounts/{managedAccountID}/Credentials
Purpose
Updates the credentials for a managed account, optionally applying the change to the managed system.
Required permissions
Requires one of the following:
l
Password Safe Account Management (Read/Write).
l
ISA Role or Credentials Manager Role on a Smart Rule referencing the account.
URL parameters
managedAccountID: ID of the managed account for which to set the credentials.
Request body
Content-Type: application/json
{
Password: string,
PublicKey: string,
PrivateKey: string,
Passphrase: string,
UpdateSystem: bool
}
Request body details
l
Password: (optional) The new password to set. If not given, generates a new random password.
l
PublicKey: (required if PrivateKey is given and updateSystem = true) The new public key to set on the host.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
264
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
PrivateKey: The private key to set (provide passphrase if encrypted).
l
Passphrase: (optional) The passphrase to use for an encrypted private key.
l
UpdateSystem: (default: true) Whether to update the credentials on the referenced system.
Response body
None.
Response codes
204 - Request successful. No content in body.
For more information, please see "Common response codes" on page 17.
PUT Credentials?workgroupName={workgroupName}&assetName=
{assetName}&accountName={accountName}
Purpose
Updates the credentials for a managed account by Workgroup name, asset name, and managed account name, optionally applying the
change to the managed system.
Required permissions
Requires one of the following:
l
Password Safe Account Management (Read/Write).
l
ISA Role or Credentials Manager Role on a Smart Rule referencing the account.
Query parameters
l
workgroupName: Name of the Workgroup.
l
assetName: Name of the asset.
l
accountName: Name of the managed account for which to set the credentials.
Request body
Content-Type: application/json
{
Password: string,
PublicKey: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
265
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PrivateKey: string,
Passphrase: string,
UpdateSystem: bool
}
Request body details
l
Password: (optional) The new password to set. If not given, generates a new random password.
l
PublicKey: (required if PrivateKey is given and updateSystem = true) The new public key to set on the host.
l
PrivateKey: The private key to set (provide passphrase if encrypted).
l
Passphrase: (optional) The passphrase to use for an encrypted private key.
l
UpdateSystem: (default: true) Whether to update the credentials on the referenced system.
Response body
None.
Response codes
204 - Request Successful. No Response Body.
For more information, please see "Common response codes" on page 17.
POST ManagedAccounts/{managedAccountID}/Credentials/Test
Purpose
Tests the current credentials of a managed account.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
266
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
{
Success : bool
}
Response body details
Success: True if the credential test succeeded, otherwise false.
Response codes
200 - Request Successful.
For more information, please see "Common response codes" on page 17.
POST ManagedAccounts/{managedAccountID}/Credentials/Change
Purpose
Changes the current credentials of a managed account.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body (optional)
Content-Type: application/json
{
Queue : bool
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
267
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
Queue: (default: false) True to queue the change for background processing, otherwise false. When Queue is false the credentials
change is immediate.
Response body
None.
Response codes
204 - Request successful. No content in body.
For more information, please see "Common response codes" on page 17.
POST ManagedSystems/
{systemId}/ManagedAccounts/Credentials/Change
Purpose
Queues credentials' changes for all active managed accounts for a managed system.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
systemId: ID of the managed system.
Request body
None.
Response body
None.
Response codes
204 - Request successful. No content in body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
268
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
269
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Quick rule managed accounts
Quick navigation
l
"GET QuickRules/{quickRuleID}/ManagedAccounts" on page 270
l
"PUT QuickRules/{quickRuleID}/ManagedAccounts" on page 273
l
"POST QuickRules/{quickRuleID}/ManagedAccounts/{accountID}" on page 276
l
"DELETE QuickRules/{quickRuleID}/ManagedAccounts/{accountID}" on page 278
GET QuickRules/{quickRuleID}/ManagedAccounts
Purpose
Returns a list of managed accounts by Quick Rule ID.
Required permissions
Read access to the Quick Rule.
URL parameters
quickRuleID: ID of the Quick Rule.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
270
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
271
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
l
UseOwnCredentials: True if the current account credentials should be used during change operations, otherwise false.
l
ChangeIISAppPoolFlag: True if IIS application pools run as this user should be updated with the new password after a password
change, otherwise false.
l
RestartIISAppPoolFlag: True if IIS application pools should be restarted after the run as password is changed, otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 Request successful. Managed Accounts in the response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
272
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
PUT QuickRules/{quickRuleID}/ManagedAccounts
Purpose
Updates the entire list of managed accounts in a Quick Rule by removing all Managed Account Fields - Quick Group ID filters and
adding a new one with the managed accounts referenced by ID.
Required permissions
l
Password Safe Account Management (Read).
l
Read/Write access to the Quick Rule.
URL parameters
quickRuleID: ID of the Quick Rule.
Request body
Content-Type: application/json
{
AccountIDs: [ int, …]
}
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
273
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate: datetime, // can be null
NextChangeDate: datetime, // can be null
IsChanging: bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
274
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
l
UseOwnCredentials: True if the current account credentials should be used during change operations, otherwise false.
l
ChangeIISAppPoolFlag: True if IIS application pools run as this user should be updated with the new password after a password
change, otherwise false.
l
RestartIISAppPoolFlag: True if IIS application pools should be restarted after the run as password is changed, otherwise false.
l
WorkgroupID: ID of the assigned Workgroup.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 Request successful. Managed Accounts in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
275
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST QuickRules/{quickRuleID}/ManagedAccounts/{accountID}
Purpose
Adds the managed account referenced by ID to the Quick Rule by adding it to the first Managed Account Fields - Quick Group ID filter
found.
Required permissions
l
Password Safe Account Management (Read).
l
Read/Write access to the Quick Rule.
URL parameters
l
quickRuleID: ID of the Quick Rule.
l
accountID: ID of the managed account.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
276
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 means unlimited) Maximum number of concurrent password requests for this account.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
277
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 Request successful. Managed Accounts in the response body.
For more information, please see "Common response codes" on page 17.
DELETE QuickRules/{quickRuleID}/ManagedAccounts/{accountID}
Purpose
Removes the managed account referenced by ID from the Quick Rule by removing it from all Managed Account Fields - Quick Group
ID filters found.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
278
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
IMPORTANT!
A rule cannot be left in an invalid state. If removing the account would result in an empty filter, the filter itself will be removed. If
there are no filters left in the rule, a "400 Bad Request" is returned.
l
If you intend to replace all accounts in the rule, see "PUT QuickRules/{quickRuleID}/ManagedAccounts" on page 273.
l
If you intend to delete the rule, see "DELETE QuickRules/{id}" on page 372.
Required permissions
l
Read/Write access to the Quick Rule.
URL parameters
l
quickRuleID: ID of the Quick Rule.
l
accountID: ID of the managed account.
Request body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
279
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Smart Rule managed accounts
GET SmartRules/{smartRuleID}/ManagedAccounts
Purpose
Returns a list of managed accounts by Smart Rule ID.
Required permissions
Read access to the Smart Rule.
URL parameters
smartRuleID: ID of the Smart Rule.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ChangeTasksFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
280
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDat e: datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int // can be null
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ChangeTasksFlag: True if scheduled tasks run as this user should be updated with the new password after a password change,
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 means unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
281
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / No change taking place or scheduled within 5 minutes.
o
1: Changing / Managed Account Credential currently changing.
o
2: Queued / Managed Account Credential is queued to change or scheduled to change within 5 minutes.
l
WorkgroupID: ID of the assigned Workgroup.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 - Request successful. Managed Accounts in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
282
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Managed account applications
Quick navigation
l
"GET ManagedAccounts/{accountID}/Applications" on page 283
l
"POST ManagedAccounts/{accountID}/Applications/{applicationID}" on page 284
l
"DELETE ManagedAccounts/{accountID}/Applications/{applicationID}" on page 285
l
"DELETE ManagedAccounts/{accountID}/Applications" on page 286
GET ManagedAccounts/{accountID}/Applications
Purpose
Returns a list of applications assigned to a managed account.
Required permissions
Password Safe Account Management (Read).
URL parameters
accountID: ID of the managed account.
Request body
None.
Response body
Content-Type: application/json
[
{
ApplicationID : int,
Name : string,
DisplayName : string,
Version : string,
Command : string,
Parameters : string,
Publisher : string,
ApplicationType : string,
FunctionalAccountID : int, // can be null
ManagedSystemID : int, // can be null
IsActive : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
283
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
SmartRuleID : int // can be null
}
]
Response codes
200 - Request successful. Applications in response body.
For more information, please see "Common response codes" on page 17.
POST ManagedAccounts/{accountID}/Applications/{applicationID}
Purpose
Assigns an application to a managed account.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
accountID: ID of the managed account.
l
applicationID: ID of the application.
Request body
None.
Response body
Content-Type: application/json
{
ApplicationID : int,
Name : string,
DisplayName : string,
Version : string,
Command : string,
Parameters : string,
Publisher : string,
ApplicationType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
284
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
FunctionalAccountID : int, // can be null
ManagedSystemID : int, // can be null
IsActive : bool,
SmartRuleID : int // can be null
}
Response codes
201 - Request successful. Application in response body.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{accountID}/Applications/{applicationID}
Purpose
Unassigns an application from a managed account by managed account ID and application ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
accountID: ID of the managed account.
l
applicationID: ID of the application.
Request body
None.
Response body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
285
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{accountID}/Applications
Purpose
Unassigns all managed account applications by managed account ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
accountID: ID of the managed account.
l
applicationID: ID of the application.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
286
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Managed systems
Quick navigation
l
"GET ManagedSystems" on page 291
l
"GET ManagedSystems/{id}" on page 288
l
"GET Assets/{id}" on page 56
l
"GET Databases/{databaseID}/ManagedSystems" on page 299
l
"GET FunctionalAccounts/{id}/ManagedSystems" on page 302
l
"GET Workgroups/{id}/ManagedSystems" on page 307
l
"PUT ManagedSystems/{id}" on page 311
l
"POST Assets/Search" on page 68
l
"POST Databases/{databaseID}/ManagedSystems" on page 325
l
"POST Workgroups/{id}/ManagedSystems" on page 329
l
"DELETE ManagedSystems/{id}" on page 337
For more information on related topics, please see:
l
"Assets" on page 55
l
"Managed accounts" on page 228
l
"Password policies" on page 350
l
"DSS key policies" on page 203
l
"Platforms" on page 355
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
287
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedSystems/{id}
Purpose
Returns a managed system by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the managed system.
Request body
None.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
288
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
289
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
290
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET ManagedSystems
Purpose
Returns a list of managed systems.
Required permissions
Password Safe System Management (Read).
Query parameters (optional)
l
type: The entity type of the managed system.
l
name: The name of the managed system.
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning records (can only be used in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
291
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body (when limit is given)
Content-Type: application/json
[
{
TotalCount : int,
Data : [{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
292
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
…]
}
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
293
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed system in response body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
294
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
295
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Assets/{assetId}/ManagedSystems
Purpose
Returns a managed system for the asset referenced by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
assetId: ID of the asset.
Request body
None.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
296
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
297
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
298
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Databases/{databaseID}/ManagedSystems
Purpose
Returns a managed system for the database referenced by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
databaseID: ID of the database.
Request body
None.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
299
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
300
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
301
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET FunctionalAccounts/{id}/ManagedSystems
Purpose
Returns a list of managed systems auto-managed by the functional account referenced by ID.
Required permissions
Password Safe System Management (Read).
Password Safe Account Management (Read).
URL parameters
id: ID of the functional account.
Query parameters (optional)
l
type: The entity type of the managed system.
l
name: The name of the managed system.
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning records (can only be used in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
302
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body (when limit is given)
Content-Type: application/json
[
{
TotalCount : int,
Data : [{
WorkgroupID : int
HostName : string
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
303
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
304
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
305
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
306
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Workgroups/{id}/ManagedSystems
Purpose
Returns a list of managed systems by Workgroup ID.
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the Workgroup.
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can be used only in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
WorkgroupID : int,
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
AccountNameFormat : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
307
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool
AccessURL : string
},
…]
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[{
WorkgroupID : int,
ManagedSystemID : int,
EntityTypeID: int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
308
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
…]
}
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
309
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
310
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PUT ManagedSystems/{id}
Purpose
Updates an existing managed system by ID.
Note: PUT ManagedSystems/{id} supports all managed system types: dynamic asset, static asset, dynamic database, static
database, directory, and cloud.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
id: ID of the managed system.
Query parameters
Version: (optional, default: 3.0) Request body model version (3.0, 3.1, 3.2, 3.3)
Request body (version 3.0)
Content-Type: application/json
{
WorkgroupID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
311
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
AccessURL : string
}
Request body (version 3.1)
Content-Type: application/json
{
WorkgroupID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
312
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
AccessURL : string
}
Request body (version 3.2)
Content-Type: application/json
{
WorkgroupID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
}
Request body (version 3.3)
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
313
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
WorkgroupID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
}
Request body details
l
WorkgroupID: ID of the Workgroup.
l
HostName: (required) Name of the host (applies to Static Asset, Static Database, Directory, Cloud). Max string length is 128
characters.
o
Static Asset: Asset Name.
o
Static Database: Database Host Name.
o
Directory: Directory/Domain Name.
o
Cloud: Cloud System Name.
l
IPAddress: IPv4 address of the host (applies to Static Asset, Static Database).
l
DnsName: DNS name of the host (applies to Static Asset, Static Database).
l
InstanceName: Name of the database instance. Required when IsDefaultInstance is false (applies to Static Database only).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
314
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
IsDefaultInstance: True if the database instance is the default instance, otherwise false. Only Platforms MS SQL Server and
MySQL support setting this value to true (applies to Static Database only).
l
Template: The database connection template (applies to Static Database only).
l
ForestName: Name of the Directory Forest (applies to Directory only).
l
UseSSL (default: false) True to use an SSL connection, otherwise false (applies to Directory only).
l
PlatformID: (required) ID of the Managed System Platform.
l
NetBiosName: The NetBIOS name of the host. Can be set if Platform.NetBiosNameFlag is true.
l
Port: (optional) The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
SshKeyEnforcementMode: (default: 0/None) Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto - Auto Accept Initial Key.
o
2: Strict - Manually Accept Keys.
l
PasswordRuleID: (default: 0) ID of the default Password Rule assigned to Managed Accounts created under this Managed
System.
l
DSSKeyRuleID: (default: 0) ID of the default DSS Key Rule assigned to Managed Accounts created under this Managed System.
Can be set when Platform.DSSFlag is true.
l
LoginAccountID: (optional) ID of the Functional Account used for SSH Session logins. Can be set if the
Platform.LoginAccountFlag is true.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the Functional Account used for local Managed
Account password changes. FunctionalAccount.PlatformID must either match the ManagedSystem.PlatformID or be a
Directory Platform (AD, LDAP).
o
ElevationCommand: (optional) Elevation Command to use. Can be set if Platform.SupportsElevationFlag is true.
n
sudo
l
pbrun
l
pmrun
l
CheckPasswordFlag: True to enable password testing, otherwise false.
l
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
l
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise false.
l
RemoteClientType: (default: none) The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: (default: null, required when Platform.RequiresApplicationHost = true) Managed system ID of the target
application host. Must be an ID of a managed system whose IsApplicationHost = true.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
315
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
IsApplicationHost: (default: false) True if the managed system can be used as an application host, otherwise false. Can be set
when the Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: (default: Default URL for the selected platform) The URL used for cloud access (applies to cloud systems only). Max
string length is 2048.
Response body
Content-Type: application/json
{
WorkgroupID : int,
ManagedSystemID : int,
EntityTypeID: int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
316
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
}
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
317
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
318
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Assets/{assetId}/ManagedSystems
Purpose
Creates a managed system for the asset referenced by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
assetId: ID of the asset.
Query parameters
Version: (optional, default: 3.0) Request body model version (3.0, 3.1, 3.2)
Request body (version 3.0)
Content-Type: application/json
{
PlatformID : int,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
319
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body (version 3.1)
Content-Type: application/json
{
PlatformID : int,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string
}
Request body (version 3.2)
Content-Type: application/json
{
PlatformID : int,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
320
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string
ApplicationHostID : int, // can be null
IsApplicationHost : bool
}
Request body details
l
PlatformID:(required) ID of the managed system platform.
l
ContactEmail: Max string length is 1000.
l
Description: Max string length is 255.
l
Port: (optional) The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
SshKeyEnforcementMode: (default: 0/None) Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: (default: 0) ID of the default password rule assigned to managed accounts created under this managed
system.
l
DSSKeyRuleID: (default: 0) ID of the default DSS key rule assigned to managed accounts created under this managed system.
Can be set when Platform.DSSFlag is true.
l
LoginAccountID: (optional) ID of the functional account used for SSH Session logins. Can be set if the
Platform.LoginAccountFlag is true.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the functional account used for local managed
account password changes. FunctionalAccount.PlatformID must either match the ManagedSystem.PlatformID or be a
domain platform (AD, LDAP).
o
ElevationCommand: (optional) Elevation command to use. Can be set if Platform.SupportsElevationFlag is true
(sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
321
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999, required if ChangeFrequencyType is xdays) When ChangeFrequencyType is
xdays, password changes take place this configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: (default: null, required when Platform.RequiresApplicationHost = true) Managed system ID of the target
application host. Must be an ID of a managed system whose IsApplicationHost = true.
l
IsApplicationHost: (default: false) true if the managed system can be used as an application host, otherwise false. Can be set
when the Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
322
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be nullIs
ApplicationHost : bool,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
323
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
l
200 - Request successful - Asset was already managed. Managed System in response body.
l
201 - Request successful - Asset is now managed. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
324
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Databases/{databaseID}/ManagedSystems
Purpose
Creates a managed system for the database referenced by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
databaseID: ID of the database.
Request body
Content-Type: application/json
{
ContactEmail : string,
Description : string,
Timeout : short,
PasswordRuleID : int,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
}
Request body details
l
ContactEmail: Max string length is 1000.
l
Description: Max string length is 255.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
PasswordRuleID: (default: 0) ID of the default password rule assigned to managed accounts created under this managed
system.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
325
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the functional account used for local managed
account password changes. FunctionalAccount.PlatformID must either match the ManagedSystem.PlatformID or be a
domain platform (AD, LDAP).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: (default: first) The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999, required if ChangeFrequencyType is xdays) When ChangeFrequencyType is
xdays, password changes take place this configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59, default: 23:30) UTC time of day scheduled password changes take place.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID: int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
326
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be nullIs
ApplicationHost : bool,
AccessURL : string
},
]
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
327
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
l
200 - Request successful - Asset was already managed. Managed System in response body.
l
201 - Request successful - Asset is now managed. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
328
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Workgroups/{id}/ManagedSystems
Purpose
Creates a managed system in the Workgroup referenced by ID.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
id: ID of the Workgroup.
version: (optional, default: 3.0) Request body model version (3.0, 3.1, 3.2, 3.3).
Request body (version 3.0)
Content-Type: application/json
{
EntityTypeID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
329
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
AccessURL : string
}
Request body (version 3.1)
Content-Type: application/json
{
EntityTypeID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
330
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AccessURL : string
}
Request body (version 3.2)
Content-Type: application/json
{
EntityTypeID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
RemoteClientType : string,
AccessURL : string
}
Request body (version 3.3)
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
331
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
EntityTypeID : int,
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
}
Request body details
l
EntityTypeID: (required) Type of entity being created.
l
HostName: (required) Name of the host (applies to static asset, static database, directory, cloud). Max string length is 128
characters.
o
Static Asset: Asset name.
o
Static Database: Database host name.
o
Directory: Directory/domain name.
o
Cloud: Cloud system name.
l
IPAddress: IPv4 address of the host (applies to static asset, static database). Max string length is 45.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
332
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
DnsName: DNS name of the host (applies to static asset, static database). Max string length is 255.
l
InstanceName: Name of the database instance. Required when IsDefaultInstance is false (applies to static database only). Max
string length is 100.
l
IsDefaultInstance: True if the database instance is the default instance, otherwise false. Only platforms MS SQL Server and
MySQL support setting this value to true (applies to static database only).
l
Template: The database connection template (applies to static database only).
l
ForestName: Name of the directory forest (required for Active Directory; optional for Entra ID). Max string length is 64.
l
UseSSL (default: false) True to use an SSL connection, otherwise false (applies to directory only).
l
PlatformID: (required) ID of the managed system platform.
l
NetBiosName: The NetBIOS name of the host. Can be set if Platform.NetBiosNameFlag is true. Max string length is 15.
l
ContactEmail: Max string length is 1000.
l
Description: Max string length is 255.
l
Port: (optional) The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds, default: 30) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the
system fails.
l
SshKeyEnforcementMode: (default: 0/None) Enforcement mode for SSH host keys.
o
0: None
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: (default: 0) ID of the default password rule assigned to managed accounts created under this managed
system.
l
DSSKeyRuleID: (default: 0) ID of the default DSS key rule assigned to managed accounts created under this managed system.
Can be set when Platform.DSSFlag is true.
l
LoginAccountID: (optional) ID of the functional account used for SSH session logins. Can be set if the
Platform.LoginAccountFlag is true.
l
AccountNameFormat: (Active Directory only, default: 0) Account name format to use:
o
0: Domain and account. Use ManagedAccount.DomainName\ManagedAccount.AccountName.
o
1: UPN. Use the managed account UPN.
o
2: SAM. Use the managed account SAM account name.
l
OracleInternetDirectoryID: The Oracle Internet Directory ID (applies to database entity types and Oracle platform only).
l
OracleInternetDirectoryServiceName: (required when OracleInternetDirectoryID is set) The database service name related to
the given OracleInternetDirectoryID (applies to database entity types and Oracle platform only). Max string length is 200.
l
ReleaseDuration: (minutes: 1-525600, default: 120) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600, default: 525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600, default: 120) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: (default: false) True if password auto-management is enabled, otherwise false. Can be set if
Platform.AutoManagementFlag is true.
o
FunctionalAccountID: (required if AutoManagementFlag is true) ID of the functional account used for local managed
account password changes. FunctionalAccount.PlatformID must either match the ManagedSystem.PlatformID or be a
directory platform (AD, LDAP).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
333
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ElevationCommand: (optional) Elevation command to use. Can be set if Platform.SupportsElevationFlag is true.
n
sudo
n
pbrun
n
pmrun
l
CheckPasswordFlag: True to enable password testing, otherwise false.
l
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
l
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise false.
l
ApplicationHostID: (default: null, required when Platform.RequiresApplicationHost = true) Managed system ID of the target
application host. Must be an ID of a managed system where IsApplicationHost = true.
l
IsApplicationHost: (default: false) true if the managed system can be used as an application host, otherwise false. Can be set
when the Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
RemoteClientType: (default: None) The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
AccessURL: (default: default URL for the selected platform) The URL used for cloud access (applies to cloud systems only). Max
string length is 2048.
Response body (when limit is not given)
Content-Type: application/json
{
WorkgroupID : int,
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
HostName : string,
IPAddress : string,
DnsName : string,
InstanceName : string,
IsDefaultInstance : bool, // can be null
Template : string,
ForestName : string,
UseSSL : bool, // can be null
AccountNameFormat : int,
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
334
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
}
Response body details
l
ManagedSystemID: ID of the managed system.
l
AssetD: Asset ID; set if the managed system is an asset or a database.
l
DatabaseID: Database ID; set if the managed system is a database.
l
DirectoryID: Directory ID; set if the managed system is a directory.
l
CloudID: Cloud system ID; set if the managed system is a cloud system.
l
SystemName: Name of the related entity (asset, directory, database, or cloud).
l
PlatformID: ID of the managed system platform.
l
NetBiosName: (Managed domains only) Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the
NetBIOS name if needed.
l
Port: The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses
Platform.DefaultPort for communication.
l
Timeout: (seconds) Connection timeout. Length of time in seconds before a slow or unresponsive connection to the system fails.
l
SshKeyEnforcementMode: Enforcement mode for SSH host keys.
o
0: None.
o
1: Auto. Auto accept initial key.
o
2: Strict. Manually accept keys.
l
PasswordRuleID: ID of the default password rule assigned to managed accounts created under this managed system.
l
DSSKeyRuleID: ID of the default DSS key rule assigned to managed accounts created under this managed system.
l
LoginAccountID: ID of the functional account used for SSH session logins.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
335
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
FunctionalAccountID: ID of the functional account used for local managed account password changes.
o
ElevationCommand: Elevation command to use (sudo, pbrun, pmrun).
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (see ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-90) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
RemoteClientType: The type of remote client to use.
o
None: No remote client.
o
EPM: Endpoint Privilege Management.
l
ApplicationHostID: Managed system ID of the target application host. Must be an ID of a managed system whose
IsApplicationHost = true.
l
IsApplicationHost: True if the managed system can be used as an application host, otherwise false. Can be set when the
Platform.ApplicationHostFlag = true, and cannot be set when ApplicationHostID has a value.
l
AccessURL: The URL used for cloud access (applies to cloud systems only).
Response codes
200 - Request successful. Managed System in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
336
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedSystems/{id}
Purpose
Deletes a managed system by ID.
Note: DELETE ManagedSystems/{id} supports all managed system types: dynamic asset, static asset, dynamic database,
static database, directory, and cloud.
Required permissions
Password Safe System Management (Read/Write).
URL parameters
id: ID of the managed system.
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
337
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Quick rule managed systems
Quick navigation
l
"GET QuickRules/{quickRuleID}/ManagedSystems" on page 338
l
"PUT QuickRules/{quickRuleID}/ManagedSystems" on page 340
l
"POST QuickRules/{quickRuleID}/ManagedSystems/{systemID}" on page 341
l
"DELETE QuickRules/{quickRuleID}/ManagedSystems/{systemID}" on page 343
GET QuickRules/{quickRuleID}/ManagedSystems
Purpose
Returns a list of managed systems by Quick Rule ID.
Required permissions
Read access to the Quick Rule.
URL parameters
quickRuleID: ID of the Quick Rule.
Request body
None.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
338
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response codes
200 Request successful. Managed Systems in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
339
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PUT QuickRules/{quickRuleID}/ManagedSystems
Purpose
Updates the entire list of Managed Systems in a Quick Rule by removing all Managed System - Quick Rule filters and adding a new one
with the Managed Systems referenced by ID.
Required permissions
Password Safe System Management (Read).
Read/Write access to the Quick Rule.
URL parameters
quickRuleID: ID of the Quick Rule.
Request body
Content-Type: application/json
{
IDs: [ int, …]
}
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
340
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response codes
200 Request successful. Managed Systems in the response body.
For more information, please see "Common response codes" on page 17.
POST QuickRules/{quickRuleID}/ManagedSystems/{systemID}
Purpose
Adds the Managed System referenced by ID to the Quick Rule by adding it to the first Managed System - Quick Rule filter found.
Required permissions
Password Safe System Management (Read).
Read/Write access to the Quick Rule.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
341
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
quickRuleID: ID of the Quick Rule.
systemID: ID of the Managed System.
Request body
None.
Response body
Content-Type: application/json
[
{
WorkgroupID : int
HostName : string
IPAddress : string
DNSName : string
InstanceName : string
IsDefaultInstance : bool // can be null
Template : string
ForestName : string
UseSSL : bool // can be null
ManagedSystemID : int,
EntityTypeID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
Timeout : short,
PlatformID: int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
AccountNameFormat : int,
OracleInternetDirectoryID : guid, // can be null
OracleInternetDirectoryServiceName : string,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
342
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response codes
200 Request successful. Managed Systems in the response body.
For more information, please see "Common response codes" on page 17.
DELETE QuickRules/{quickRuleID}/ManagedSystems/{systemID}
Purpose
Removes the Managed System referenced by ID from the Quick Rule by removing it from all Managed System - Quick Rule filters
found.
IMPORTANT!
A rule cannot be left in an invalid state. If removing the system would result in an empty filter, the filter itself will be removed. If
there are no filters left in the rule, a "400 Bad Request" is returned.
l
If you intend to replace all systems in the rule, see "PUT QuickRules/{quickRuleID}/ManagedSystems" on page 340.
l
If you intend to delete the rule, see "DELETE QuickRules/{id}" on page 372.
Required permissions
Read/Write access to the Quick Rule.
URL parameters
quickRuleID: ID of the Quick Rule.
systemID: ID of the Managed System.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
343
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
344
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Smart Rule managed systems
GET SmartRules/{id}/ManagedSystems
Purpose
Returns a list of managed systems by Smart Rule ID.
Required permissions
l
Read access to the Smart Rule referenced by ID.
URL parameters
id: ID of the Smart Rule.
Query parameters (optional)
l
limit: (default: 100000) Number of records to return.
l
offset: (default: 0) Number of records to skip before returning <limit> records (can be used only in conjunction with limit).
Request body
None.
Response body (when limit is not given)
Content-Type: application/json
[
{
ManagedSystemID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
SshKeyEnforcementMode : int, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
345
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
]
Response body (when limit is given)
Content-Type: application/json
{
TotalCount : int,
Data :
[
{
ManagedSystemID : int,
AssetID : int, // can be null
DatabaseID : int, // can be null
DirectoryID : int, // can be null
CloudID : int, // can be null
SystemName : string,
PlatformID : int,
NetBiosName : string,
ContactEmail : string,
Description : string,
Port : int, // can be null
Timeout : short,
PasswordRuleID : int,
DSSKeyRuleID : int, // can be null
LoginAccountID : int, // can be null
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
AutoManagementFlag : bool,
FunctionalAccountID : int, // can be null
ElevationCommand : string, // can be null
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
346
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
CheckPasswordFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
RemoteClientType : string,
ApplicationHostID : int, // can be null
IsApplicationHost : bool,
AccessURL : string
},
…]
}
Response codes
200 - Request successful. Managed Systems in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
347
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Nodes
Nodes represent the session monitoring agent nodes that can be used for establishing sessions.
For more information on related topics, please see "Sessions" on page 400.
GET nodes
Purpose
Returns a list of session monitoring agent nodes.
Query parameters
includeInactive: (optional, default: false) True to return all nodes including nodes that are inactive, otherwise False.
Request body
None.
Response body
Content-Type: application/json
[
{
NodeID: string,
HostName: string,
DisplayName: string,
LastHeartbeat: DateTime, // can be null
IsActive: bool,
},
]
Response body details
l
NodeID: Node unique ID.
l
HostName: Node host name.
l
DisplayName: Node display name.
l
LastHeartbeat: The date and time of the last session monitoring agent heartbeat from this node.
l
IsActive: True if the session monitoring agent is considered active and running, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
348
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful. Nodes in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
349
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Password policies
Note: Password policies are formerly known as password rules but the API remains PasswordRules to be compatible with
earlier versions.
Quick navigation
l
"GET PasswordRules" on page 350
l
"GET PasswordRules?enabledproducts={productName}" on page 351
l
"GET PasswordRules/{id}" on page 353
GET PasswordRules
Purpose
Returns a list of password rules.
Required permissions
Password Safe System Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PasswordRuleID : int,
Name : string,
Description : string,
MinimumLength : int,
MaximumLength : int,
FirstCharacterRequirement : char,
LowercaseRequirement : char,
UppercaseRequirement : char,
NumericRequirement : char,
SymbolRequirement : char,
ValidLowercaseCharacters : char[],
ValidUppercaseCharacters : char[],
ValidSymbols : char[],
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
350
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
EnabledProducts : int
},
]
Response body details
l
FirstCharacterRequirement: The first character of the password must be:
o
C: Characters (alpha) only.
o
N: Numeric permitted, in addition to alpha characters.
o
A: Any character permitted.
l
LowercaseRequirement: Lowercase character requirements:
l
UppercaseRequirement: Uppercase character requirements:
l
NumericRequirement: Numeric requirements:
l
SymbolRequirement: Symbol requirements:
o
N: Not permitted.
o
P: Permitted, not required.
o
R: Required.
l
EnabledProducts: The type of products to return:
o
1: Password Safe.
o
2: Secrets Safe.
Response codes
200 - Request successful. Password Rules in the response body.
400 - Enabled product not valid.
For more information, please see "Common response codes" on page 17.
GET PasswordRules?enabledproducts={productName}
Purpose
Returns a list of password rules, with an optional parameter to return polices enabled for Password Safe or Secrets Safe.
Required permissions
Password Safe System Management (Read).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
351
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Query parameters
{string} The product name to select polices enabled for Password Safe or Secrets Safe:
l
1: PasswordSafe
l
2: SecretsSafe
Request body
None.
Response body
Content-Type: application/json
[
{
PasswordRuleID : int,
Name : string,
Description : string,
MinimumLength : int,
MaximumLength : int,
FirstCharacterRequirement : char,
LowercaseRequirement : char,
UppercaseRequirement : char,
NumericRequirement : char,
SymbolRequirement : char,
ValidLowercaseCharacters : char[],
ValidUppercaseCharacters : char[],
ValidSymbols : char[],
EnabledProducts : int
},
]
Response body details
l
FirstCharacterRequirement: The first character of the password must be:
o
C: Characters (alpha) only.
o
N: Numeric permitted, in addition to alpha characters.
o
A: Any character permitted.
l
LowercaseRequirement: Lowercase character requirements:
l
UppercaseRequirement: Uppercase character requirements:
l
NumericRequirement: Numeric requirements:
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
352
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
SymbolRequirement: Symbol requirements:
o
N: Not permitted.
o
P: Permitted, not required.
o
R: Required.
l
EnabledProducts: The type of products to return:
o
1: Password Safe.
o
2: Secrets Safe.
Response codes
200 - Request successful. Password Rules in the response body.
400 - Enabled product not valid.
For more information, please see "Common response codes" on page 17.
GET PasswordRules/{id}
Purpose
Returns a password rule by ID.
Required permissions
Password Safe System Management (Read).
URL parameters
id: ID of the password rule.
Request body
None.
Response body
Content-Type: application/json
{
PasswordRuleID: int,
Name: string,
Description: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
353
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
MinimumLength: int,
MaximumLength: int,
FirstCharacterRequirement: char,
LowercaseRequirement: char,
UppercaseRequirement: char,
NumericRequirement: char,
SymbolRequirement: char,
ValidLowercaseCharacters: char[],
ValidUppercaseCharacters: char[],
ValidSymbols: char[],
EnabledProducts : int
}
Response body details
l
FirstCharacterRequirement: The first character of the password must be:
o
C: Characters (alpha) only.
o
N: Numeric permitted, in addition to alpha characters.
o
A: Any character permitted.
l
LowercaseRequirement: Lowercase character requirements:
l
UppercaseRequirement: Uppercase character requirements:
l
NumericRequirement: Numeric requirements:
l
SymbolRequirement: Symbol requirements:
o
N: Not permitted.
o
P: Permitted, not required.
o
R: Required.
l
EnabledProducts: The type of products to return:
o
1: Password Safe.
o
2: Secrets Safe.
Response codes
200 - Request successful. Password rules in the response body.
400 - Enabled product not valid.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
354
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Platforms
Quick navigation
l
"GET Platforms" on page 355
l
"GET Platforms/{id}" on page 356
l
"GET EntityTypes/{id}/Platforms" on page 358
For more information on related topics, please see "Entity types" on page 206
GET Platforms
Purpose
Returns a list of platforms for managed systems.
Required permissions
None.
Request body
None.
Response body
Content-Type: application/json
[
{
PlatformID : int,
Name : string,
ShortName : string,
PortFlag : bool,
DefaultPort : int, // can be null
SupportsElevationFlag : bool,
DomainNameFlag : bool,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
ManageableFlag : bool,
DSSFlag : bool,
LoginAccountFlag : bool,
DefaultSessionType : string // can be null,
ApplicationHostFlag : bool,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
355
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
RequiresApplicationHost : bool,
RequiresTenantID : bool,
RequiresObjectID : bool,
RequiresSecret : bool
}
]
Response body details
l
PlatformID: Platform ID.
l
Name: Platform name.
l
ShortName: Platform short name.
l
PortFlag: True if the platform supports setting a port, otherwise false.
l
DefaultPort: The default port used when no port is given for managed systems of this platform.
l
DomainNameFlag: True if the platform supports setting a domain name on a functional account of this platform, otherwise false.
l
SupportsElevationFlag: True if the platform supports elevation, otherwise false.
l
AutoManagementFlag: True if the platform supports password auto-management, otherwise false.
l
DSSAutoManagementFlag: True if the platform supports DSS key auto-management, otherwise false.
l
ManageableFlag: True if functional accounts can be created for the platform, otherwise false.
l
DSSFlag: True if the platform supports DSS keys, otherwise false.
l
LoginAccountFlag: True if the platform supports SSH login accounts, otherwise false.
l
DefaultSessionType: The default type of session for the platform (RDP, SSH, or null).
l
ApplicationHostFlag: true if the platform supports being used as a managed system application host, otherwise false.
l
RequiresApplicationHost: true if the platform requires a target application host, otherwise false.
l
RequiresTenantID: true if the platform requires a TenantID.
l
RequiresObjectID: true if the platform requires an ObjectID.
l
RequiresSecret: true if the platform requires a secret.
Response codes
200 Request successful. Platforms in response body.
For more information, please see "Common response codes" on page 17.
GET Platforms/{id}
Purpose
Returns a platform by ID for managed systems.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
356
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required permissions
None.
URL parameters
id: ID of the platform.
Request body
None.
Response body
Content-Type: application/json
{
PlatformID : int,
Name : string,
ShortName : string,
PortFlag : bool,
DefaultPort: int, // can be null
SupportsElevationFlag : bool,
DomainNameFlag: bool,
AutoManagementFlag: bool,
DSSAutoManagementFlag: bool,
ManageableFlag: bool,
DSSFlag: bool,
LoginAccountFlag : bool,
DefaultSessionType: string // can be null,
ApplicationHostFlag : bool,
RequiresApplicationHost : bool,
RequiresTenantID : bool,
RequiresObjectID : bool,
RequiresSecret : bool
}
Response body details
l
PlatformID: Platform ID.
l
Name: Platform name.
l
ShortName: Platform short name.
l
PortFlag: True if the platform supports setting a port, otherwise false.
l
DefaultPort: The default port used when no port is given for managed systems of this platform.
l
DomainNameFlag: True if the platform supports setting a domain name on a functional account of this platform, otherwise false.
l
SupportsElevationFlag: True if the platform supports elevation, otherwise false.
l
AutoManagementFlag: True if the platform supports password auto-management, otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
357
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
DSSAutoManagementFlag: True if the platform supports DSS key auto-management, otherwise false.
l
ManageableFlag: True if functional accounts can be created for the platform, otherwise false.
l
DSSFlag: True if the platform supports DSS keys, otherwise false.
l
LoginAccountFlag: True if the platform supports SSH login accounts, otherwise false.
l
DefaultSessionType: The default type of session for the platform (RDP, SSH, or null).
l
ApplicationHostFlag: true if the platform supports being used as a managed system application host, otherwise false.
l
RequiresApplicationHost: true if the platform requires a target application host, otherwise false.
l
RequiresTenantID: true if the platform requires a TenantID.
l
RequiresObjectID: true if the platform requires an ObjectID.
l
RequiresSecret: true if the platform requires a secret.
Response codes
200 Request successful. Platform in response body.
For more information, please see "Common response codes" on page 17.
GET EntityTypes/{id}/Platforms
Purpose
Returns a list of Platforms by entity type ID.
Required permissions
None.
URL parameters
id: ID of the entity type.
Request body
None.
Response body
Content-Type: application/json
{
PlatformID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
358
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Name : string,
ShortName : string,
PortFlag : bool,
DefaultPort: int, // can be null
SupportsElevationFlag : bool,
DomainNameFlag: bool,
AutoManagementFlag: bool,
DSSAutoManagementFlag: bool,
ManageableFlag: bool,
DSSFlag: bool,
LoginAccountFlag : bool,
DefaultSessionType: string // can be null,
ApplicationHostFlag : bool,
RequiresApplicationHost : bool
RequiresTenantID : bool,
RequiresObjectID : bool,
RequiresSecret : bool
}
Response body details
l
PlatformID: Platform ID.
l
Name: Platform name.
l
ShortName: Platform short name.
l
PortFlag: True if the platform supports setting a port, otherwise false.
l
DefaultPort: The default port used when no port is given for managed systems of this platform.
l
DomainNameFlag: True if the platform supports setting a domain name on a functional account of this platform, otherwise false.
l
SupportsElevationFlag: True if the platform supports elevation, otherwise false.
l
AutoManagementFlag: True if the platform supports password auto-management, otherwise false.
l
DSSAutoManagementFlag: True if the platform supports DSS key auto-management, otherwise false.
l
ManageableFlag: True if functional accounts can be created for the platform, otherwise false.
l
DSSFlag: True if the platform supports DSS keys, otherwise false.
l
LoginAccountFlag: True if the platform supports SSH login accounts, otherwise false.
l
DefaultSessionType: The default type of session for the platform (RDP, SSH, or null).
l
ApplicationHostFlag: true if the platform supports being used as a managed system application host, otherwise false.
l
RequiresApplicationHost: true if the platform requires a target application host, otherwise false.
l
RequiresTenantID: true if the platform requires a TenantID.
l
RequiresObjectID: true if the platform requires an ObjectID.
l
RequiresSecret: true if the platform requires a secret.
Response codes
200 Request successful. Platform in response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
359
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Propagation action types
GET PropagationActionTypes
Purpose
Returns a list of propagation action types.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PropagationActionTypeID : int,
Name : string,
}, ...
]
Response codes
200 Request successful. Propagation action types in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
360
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Propagation actions
Quick navigation
l
"GET PropagationActions" on page 361
l
"GET PropagationActions/{id}" on page 362
GET PropagationActions
Purpose
Returns a list of propagation actions.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PropagationActionID : int,
PropagationActionTypeID : int,
Name : string,
Description : string,
}, ...
]
Response codes
200 Request successful. Propagation actions in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
361
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET PropagationActions/{id}
Purpose
Returns a propagation action by ID.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
{
PropagationActionID : int,
PropagationActionTypeID : int,
Name : string,
Description : string,
}
Response codes
200 Request successful. Propagation action in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
362
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Managed account propagation actions
Quick navigation
l
"GET ManagedAccounts/{id}/PropagationActions/" on page 363
l
"POST ManagedAccounts/{id}/PropagationActions/{propagationActionID}" on page 364
l
"DELETE ManagedAccounts/{id}/PropagationActions/" on page 365
l
"DELETE ManagedAccounts/{id}/PropagationActions/{propagationActionID}" on page 365
GET ManagedAccounts/{id}/PropagationActions/
Purpose
Returns a list of assigned propagation actions by managed account ID.
Required permissions
Password Safe Account Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
PropagationActionID : int,
PropagationActionTypeID : int,
Name : string,
Description : string,
SmartRuleID : int? // can be null
}, ...
]
Response codes
200 - Request successful. Propagation Actions in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
363
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedAccounts/{id}/PropagationActions/
{propagationActionID}
Purpose
Assigns a propagation action to the managed account referenced by ID.
Required permissions
Password Safe Account Management (Read/Write).
Request body (optional)
Content-Type: application/json
{
SmartRuleID : int? // can be null
}
Request body details
SmartRuleID : (optional) ID of the managed system-based Smart Rule to use for the propagation action assignment. If null or not given,
uses scan data to determine propagation targets.
Response body
Content-Type: application/json
{
PropagationActionID : int,
PropagationActionTypeID : int,
Name : string,
Description : string,
SmartRuleID : int? // can be null
}
Response codes
200 - Propagation action was already assigned. Propagation action in the response body.
201 - Propagation action was assigned successfully. Propagation action in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
364
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE ManagedAccounts/{id}/PropagationActions/
Purpose
Unassigns all propagation actions from the managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
Request body
None.
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{id}/PropagationActions/
{propagationActionID}
Purpose
Unassigns a propagation action from the managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
365
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
None.
Response codes
200 - Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
366
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Quick rules
Quick Rules are a specialized Smart Rule for building a list of known managed accounts by ID. Smart Rules are considered Quick Rules
when they contain at least one Managed Account Fields - Quick Group ID filter. Quick Rules can also be accessed via the SmartRules
API endpoint.
Quick navigation
l
"POST QuickRules" on page 367
l
"GET QuickRules" on page 369
l
"GET QuickRules/{id}" on page 369
l
"GET QuickRules?title={title}" on page 370
l
"GET Organizations/{orgID}/QuickRules?title={title}" on page 371
l
"DELETE QuickRules/{id}" on page 372
l
"DELETE QuickRules?title={title}" on page 373
l
"DELETE Organizations/{orgID}/QuickRules?title={title}" on page 374
For more information on related topics, please see:
l
"GET QuickRules/{quickRuleID}/ManagedAccounts" on page 270
l
"PUT QuickRules/{quickRuleID}/ManagedAccounts" on page 273
l
"POST QuickRules/{quickRuleID}/ManagedAccounts/{accountID}" on page 276
l
"DELETE QuickRules/{quickRuleID}/ManagedAccounts/{accountID}" on page 278
POST QuickRules
Purpose
Creates a new Quick Rule with the managed accounts or systems referenced by ID and Rule Type.
Required permissions
When RuleType=ManagedAccount:
l
Password Safe Account Management (Read).
l
Smart Rule Management - Managed Account (Read/Write).
When RuleType=ManagedSystem:
l
Password Safe System Management (Read).
l
Smart Rule Management - Managed System (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
367
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
Content-Type: application/json
Note: AccountIDs are deprecated. Use IDs instead.
{
IDs : [ int, …],
Title : string,
Category : string,
Description : string,
RuleType : string
}
Request body details
l
AccountIDs: (deprecated) A list of managed account IDs to add to the Quick Rule.
l
IDs: (required) A list of IDs to add to the Quick Rule.
l
Title: (required) The title/name of the new Quick Rule. Must be unique across all Quick Rules and all Smart Rules. Max string
length is 75.
l
Category: (optional, default: Quick Rules) The category in which to place the Quick Rule. Max string length is 50.
l
Description: (optional, default: <value of Title>) The Quick Rule description.
l
RuleType: (ManagedAccount, ManagedSystem, default: ManagedAccount)
Response body
Content-Type: application/json
{
SmartRuleID : int,
OrganizationID : string, // can be null
Title : string,
Description : string,
Category : string,
Status : int,
LastProcessedDate : datetime,
IsReadOnly : bool,
RuleType : string
}
Response codes
201 Request successful. Quick Rule in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
368
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET QuickRules
Purpose
Returns a list of Quick Rules to which the current user has at least Read access.
Request body
None.
Response body
Content-Type: application/json
[
{
SmartRuleID : int,
OrganizationID : string, // can be null
Title : string,
Description : string,
Category : string,
Status : int,
LastProcessedDate : datetime,
IsReadOnly : bool,
RuleType : string
},
]
Response codes
200 Request successful. Quick Rules in the response body.
For more information, please see "Common response codes" on page 17.
GET QuickRules/{id}
Purpose
Returns a Quick Rule by ID.
Required permissions
Read access to the Quick Rule referenced by ID.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
369
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
id: ID of the Quick Rule.
Request body
None.
Response body
Content-Type: application/json
{
SmartRuleID : int,
OrganizationID : string, // can be null
Title : string,
Description : string,
Category : string,
Status : int,
LastProcessedDate : datetime,
IsReadOnly : bool,
RuleType : string
}
Response codes
200 Request successful. Quick Rule in the response body.
For more information, please see "Common response codes" on page 17.
GET QuickRules?title={title}
Purpose
Returns a Quick Rule by title.
In a multi-tenant environment, assumes global organization.
Required permissions
Read access to the Quick Rule referenced by title.
Query parameters
title: Title of the Quick Rule.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
370
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
{
SmartRuleID : int,
OrganizationID : string, // can be null
Title : string,
Description : string,
Category : string,
Status : int,
LastProcessedDate : datetime,
IsReadOnly : bool,
RuleType : string
}
Response codes
200 Request successful. Quick Rule in the response body.
For more information, please see "Common response codes" on page 17.
GET Organizations/{orgID}/QuickRules?title={title}
Purpose
Returns a Quick Rule by organization ID and title.
Only valid in a mult-tenant environment.
Required permissions
Read access to the Quick Rule referenced by organization and title.
URL parameters
orgID: ID of the organization.
Query parameters
title: Title of the Quick Rule.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
371
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
{
SmartRuleID : int,
OrganizationID : string, // can be null
Title : string,
Description : string,
Category : string,
Status : int,
LastProcessedDate : datetime,
IsReadOnly : bool,
RuleType : string
}
Response codes
200 Request successful. Quick Rule in the response body.
For more information, please see "Common response codes" on page 17.
DELETE QuickRules/{id}
Purpose
Deletes a Quick Rule by ID.
Required permissions
Read/Write access to the Quick Rule referenced by ID.
URL parameters
ID: ID of the Quick Rule.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
372
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
DELETE QuickRules?title={title}
Purpose
Deletes a Quick Rule by title.
In a mult-tenant environment, assumes global organization.
Required permissions
Read/Write access to the Quick Rule referenced by title.
Query parameters
title: Title of the Quick Rule.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
373
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
DELETE Organizations/{orgID}/QuickRules?title={title}
Purpose
Deletes a Quick Rule by organization ID and title. Only valid in a multi-tenant environment.
Required permissions
Read/Write access to the Quick Rule referenced by organization and title.
URL parameters
orgID: ID of the organization.
Query parameters
title: Title of the Quick Rule.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
374
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Replay
Quick navigation
l
"POST pbsm/replay" on page 375
l
"GET pbsm/replay/{replayId}" on page 376
l
"PUT pbsm/replay/{replayId}" on page 377
l
"DELETE pbsm/replay/{replayId}" on page 378
POST pbsm/replay
Purpose
Creates a new replay session for a specified session token. The session token can be discovered using the sessions endpoints.
Query parameters
None.
Request body
Content-Type: application/json
{
id: string, // Session Token from query to <base>/Sessions endpoint
record_key: string, // RecordKey from query to <base>/Sessions endpoint
protocol: string, // When session Type is 0 this should be RDP or for type 1 SSH
headless: boolean // Must be set to true
}
Response body
Content-Type: application/json
{
id: string, // ReplayID for this replay session
token: string, // ReplayID for this replay session
ticket: string, // Ticket value used internally
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
375
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
l
200 Request successful.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
l
404 Not found. The requested replay session was not found on the server.
For more information, please see "Common response codes" on page 17.
GET pbsm/replay/{replayId}
Purpose
Displays the replay session details.
URL parameters
ReplayID: ID of the replay session returned from POST pbsm/replay.
Query parameters
l
jpeg=(scale): Requests a JPEG image of the current RDP replay session scaled in size by the given scale.
l
png=(scale): Requests a PNG image of the current RDP replay session scaled in size by the given scale.
l
screen=1: Requests a text representation of the current SSH session.
Request body
None.
Response body
Content-Type: application/json
{
tstamp: int, // Start time of the session in seconds
end: int, // End time of the session in seconds
offset: int, // Current offset of replay session in ms
next: int, // Offset of next activity of replay session in ms
speed: int, // Speed of replay session as a %
eof: boolean, // Set to true when the end of the replay has been reached
duration: int // Duration in ms of the replay session
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
376
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
l
200 Request successful.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access.
l
404 Not found. The requested replay session was not found on the server.
For more information, please see "Common response codes" on page 17.
PUT pbsm/replay/{replayId}
Purpose
Controls the replay session status.
URL parameters
ReplayID: ID of the replay session returned from POST pbsm/replay.
Query parameters
None.
Request body
{
speed: int, // Sets the replay speed of this session as a %
offset: int, // Sets the offset of the replay cursor for this session in ms
next: int // Requests the next changed frame based on the given % change
}
Response body
Content-Type: application/json
{
tstamp: int, // Start time of the session in seconds
end: int, // End time of the session in seconds
offset: int, // Current offset of replay session in ms
next: int, // Offset of next activity of replay session in ms
speed: int, // Speed of replay session as a %
eof: boolean, // Set to true when the end of the replay has been reached
duration: int // Duration in ms of the replay session
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
377
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
l
200 Request successful.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
l
404 Not found. The requested replay session was not found on the server.
For more information, please see "Common response codes" on page 17.
DELETE pbsm/replay/{replayId}
Purpose
Terminates the replay session.
URL parameters
ReplayID: ID of the replay session returned from POST pbsm/replay.
Query parameters
None.
Request body
None.
Response codes
l
200 Request successful.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
l
404 Not found. The requested replay session was not found on the server.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
378
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Requests
Quick navigation
l
"GET Requests" on page 379
l
"POST Requests" on page 380
l
"POST Aliases/{aliasId}/Requests" on page 382
l
"PUT Requests/{id}/Checkin" on page 384
l
"PUT Requests/{id}/Approve" on page 385
l
"PUT Requests/{id}/Deny" on page 386
l
"PUT Requests/{id}/RotateOnCheckin" on page 387
For more information on related topics, please see "Credentials" on page 182.
GET Requests
Purpose
Lists requests for the current user.
Query parameters
l
status: (optional, default: all) Status of requests to return.
o
all: Both active and pending requests.
o
active: Requests that have been approved (including auto-approved).
o
pending: Requests that have not yet been approved.
l
queue: (optional, default: req): Type of request queue to return.
o
req: Requestor queue, returns requests available to the user as a requestor.
o
app: Approver queue, returns requests for an approver or requestor/approver that have either been approved by the user
(active) or have not yet been approved (pending).
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
379
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[
{
RequestID: int,
SystemID: int,
SystemName: string,
AccountID: int,
AccountName: string,
DomainName: string,
AliasID: int,
ApplicationID: int,
RequestReleaseDate: date-formatted string,
ApprovedDate: date-formatted string,
ExpiresDate: date-formatted string,
Status: string,
AccessType: string,
Reason: string
},
]
Response codes
l
200 Request successful. Requests in the response body.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
o
4033 Approver Only API or account. Only Approvers can access this API or account.
For more information, please see "Common response codes" on page 17.
POST Requests
Purpose
Creates a new release request.
Required roles
l
Requestor or requestor/approver role to managed account referenced by ID
For information on ISA role access, please see "ISA requests" on page 213.
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
380
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
AccessType: string,
SystemID: int,
AccountID: int,
ApplicationID: int, // can be null
DurationMinutes : int,
Reason : string,
AccessPolicyScheduleID : int, // can be null
ConflictOption : string,
TicketSystemID : int,
TicketNumber : string,
RotateOnCheckin: bool
}
Request body details
l
AccessType: (optional, default: View) The type of access requested (View, RDP, SSH, App).
o
View: View Password access.
o
RDP: RDP access (corresponds to POST Sessions SessionType RDP or rdpfile).
o
SSH: SSH access (corresponds to POST Sessions SessionType SSH).
o
App: Application access (corresponds to POST Sessions SessionType App or appfile).
l
SystemID: (required) ID of the managed system to request.
l
AccountID: (required) ID of the managed account to request.
l
ApplicationID: (required when AccessType=App): ID of the application for an application-based request.
l
DurationMinutes: (required: 1-525600) The request duration (in minutes).
l
Reason: (optional) The reason for the request.
l
AccessPolicyScheduleID: (optional) The schedule ID of an access policy to use for the request. If omitted, automatically selects
the best schedule.
l
ConflictOption: (optional) The conflict resolution option to use if an existing request is found for the same user, system, and
account (reuse, renew). If omitted and a conflicting request is found, returns a 409 code (see below).
o
reuse: Returns an existing, approved request ID for the same user/system/account/access type (if one exists). If the
request does not already exist, creates a new request using the request body details.
o
renew: Cancels any existing approved requests for the same user/system/account and creates a new request using the
request body details.
l
TicketSystemID: ID of the ticket system. If omitted, then default ticket system will be used.
l
TicketNumber: Number of associated ticket. Can be required if ticket system is marked as required in the access policy used.
Max string length is 20.
l
RotateOnCheckin: (optional, default: true) True to rotate the credentials on check-in/expiry, otherwise false. This property can
only be used if the access policy (either auto-selected or given in AccessPolicyScheduleID) supports it.
Note: In reference to RotateOnCheckin, If the Managed Account given in AccountID does not rotate the credentials after
check-in/expiry, this setting is ignored.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
381
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see the Allow API Rotation Override access policy setting under View access.
Response body
{
RequestID: int
}
Response codes
l
200 Existing request is being reused. Existing request ID in the response body.
l
201 Request successful. Request ID in the response body.
l
403 User does not have permissions to request the indicated account or the account does not have API access enabled.
Response body contains a status code indicating the reason for this forbidden access:
o
4031 User does not have permission to request the account or the account is not valid for the system.
o
4033 Approver Only API or account. Only Approvers can access this API or account.
o
4035 - Not enough Approvers configured to approve a request.
l
409 Conflicting request exists. This user or another user has already requested a password for the specified account within the
next <durationMinutes> window.
For more information, please see "Common response codes" on page 17.
POST Aliases/{aliasId}/Requests
Purpose
Creates a new release request using an alias.
Required roles
Requestor or requestor/approver role to managed account referenced by the alias.
URL parameters
aliasId: ID of the managed account alias.
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
382
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
AccessType: string,
DurationMinutes : int,
Reason : string,
AccessPolicyScheduleID : int, // can be null
ConflictOption : string,
TicketSystemID : int,
TicketNumber : string,
RotateOnCheckin: bool
}
Request body details
l
AccessType: (optional, default: View) The type of access requested (View, RDP, SSH, App).
o
View: View password access.
o
RDP: RDP access (corresponds to POST Sessions SessionType RDP or rdpfile).
o
SSH: SSH access (corresponds to POST Sessions SessionType SSH).
l
DurationMinutes: (required: 1-525600): The request duration (in minutes).
l
Reason: (optional) The reason for the request.
l
AccessPolicyScheduleID: (optional) The schedule ID of an access policy to use for the request. If omitted, automatically selects
the best schedule.
l
ConflictOption: (optional) The conflict resolution option to use if an existing request is found for the same user, system, and
account (reuse, renew). If omitted and a conflicting request is found, returns a 409 (see below).
o
reuse: Return an existing, approved request ID for the same user/system/account/access type (if one exists). If the
request does not already exist, creates a new request using the request body details.
o
renew: Cancel any existing approved requests for the same user/system/account and create a new request using the
request body details.
l
TicketSystemID: ID of the ticket system. If omitted then default ticket system is used.
l
TicketNumber: Number of associated ticket. Can be required if ticket system is marked as required in the access policy used.
Max string length is 20.
l
RotateOnCheckin: (optional, default: true) True to rotate the credentials on check-in/expiry, otherwise false. This property can
only be used if the access policy (either auto-selected or given in AccessPolicyScheduleID) supports it. If the managed account
given in AccountID does not rotate the credentials after check-in/expiry, this setting is ignored.
For more information, please see the Allow API Rotation Override access policy setting under View access.
Response body
{
RequestID: int
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
383
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
l
200 Existing request is being reused. Existing request ID in the response body.
l
201 Request successful. Request ID in the response body.
l
403 User does not have permissions to request the indicated alias or the account referenced by the alias does not have API
access enabled. Response body contains a status code indicating the reason for this forbidden access:
o
4031 User does not have permission to request the account or the account is not valid for the system.
o
4033 Approver Only API or account. Only Approvers can access this API or account.
o
4035 - Not enough approvers configured to approve a request.
l
409 Conflicting request exists. This user or another user has already requested a password for the specified account within the
next <durationMinutes> window.
For more information, please see "Common response codes" on page 17.
PUT Requests/{id}/Checkin
Alternate URI (deprecated)
PUT Requests/Release/{id}
Purpose
Checks-in/releases a request before it has expired.
Required roles
Requestor role to managed account referenced by the request.
URL parameters
id: ID of the request to check-in/release.
Request body
Content-Type: application/json
{
Reason : string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
384
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
Reason: (optional) A reason or comment why the request is being released. Max string length is 1000.
Response body
None.
Response codes
l
204 Request successful. No content in body.
l
403 User does not have permissions to release the indicated request or the associated account does not have API access
enabled. Message or status code in response body:
o
4031 User does not have permission to release a password.
o
4034 Request is not yet approved.
For more information, please see "Common response codes" on page 17.
PUT Requests/{id}/Approve
Purpose
Approves a pending request.
Required roles
Approver or requestor/approver role to managed account referenced by the request.
URL parameters
id: ID of the request to approve.
Request body
Content-Type: application/json
{
Reason : string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
385
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
Reason: (optional) A reason or comment why the request is being approved. Max string length is 1000.
Response body
None.
Response codes
l
204 Request successful. No content in body.
l
403 User does not have permissions to approve the indicated request or the associated account does not have API access
enabled. Message or status code in response body:
o
4033 Approver only - User cannot approve his or her own request.
o
4036 Request has been approved already.
For more information, please see "Common response codes" on page 17.
PUT Requests/{id}/Deny
Purpose
Denies/cancels an active or pending request.
Required roles
Approver or requestor/approver role to managed account referenced by the request.
URL parameters
id: ID of the request to deny/cancel.
Request body
Content-Type: application/json
{
Reason : string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
386
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body details
Reason: (optional) A reason or comment why the request is being denied/cancelled. Max string length is 1000.
Response body
None.
Response codes
l
204 Request successful. No content in body.
l
403 User does not have permissions to deny the indicated request or the associated account does not have API access enabled.
Message or status code in response body:
l
4033 Approver only - User cannot deny his or her own request.
For more information, please see "Common response codes" on page 17.
PUT Requests/{id}/RotateOnCheckin
Purpose
Updates a request to rotate the credentials on check-in/expiry.
Note: If POST Requests RotateOnCheckin=false, this updates the request to true. If POST Requests
RotateOnCheckin=true, the request is not modified.
Requirements
l
Current user must be the owner of the request.
l
Request must not be cancelled or expired.
URL parameters
id: ID of the request to update.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
387
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
None.
Response codes
204 Request successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
388
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request termination
Quick navigation
l
"POST ManagedAccounts/{managedAccountID}/Requests/Terminate" on page 389
l
"POST ManagedSystems/{managedSystemID}/Requests/Terminate" on page 390
l
"POST Users/{userID}/Requests/Terminate" on page 391
POST ManagedAccounts/{managedAccountID}/Requests/Terminate
Purpose
Terminates all active requests by managed account ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body
Content-Type: application/json
{
Reason : string
}
Request body details
Reason: (optional) A reason or comment why the requests are being terminated. Max string length is 1000.
Response body
None.
Response codes
204 Termination successful. No content in body.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
389
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
POST ManagedSystems/{managedSystemID}/Requests/Terminate
Purpose
Terminates all active requests by managed system ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedSystemID: ID of the managed system.
Request body
Content-Type: application/json
{
Reason : string
}
Request body details
Reason: (optional) A reason or comment why the requests are being terminated. Max string length is 1000.
Response body
None.
Response codes
204 Termination successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
390
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST Users/{userID}/Requests/Terminate
Purpose
Terminates all active requests by requestor user ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
userID: ID of the requestor user.
Request body
Content-Type: application/json
{
Reason : string
}
Request body details
Reason: (optional) A reason or comment why the requests are being terminated. Max string length is 1000.
Response body
None.
Response codes
204 Termination successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
391
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request sets
Request sets are a grouping of requests to the same system and account with different access types (i.e. View and RDP). Requests in a
request set are also accessible individually via GET requests.
Quick navigation
l
"GET RequestSets" on page 392
l
"POST RequestSets" on page 393
GET RequestSets
Purpose
Lists request sets for the current user.
Query parameters
status: (optional, default: all) Status of request sets to return (all, active, pending).
Request body
None.
Response body
Content-Type: application/json
[
{
RequestSetID: string,
Requests:
[
{
RequestID: int,
RequestorName: string,
SystemID: int,
SystemName: string,
AccountID: int,
AccountName: string,
DomainName: string,
ApplicationID: int, // can be null,
AliasID: int, // can be null
RequestReleaseDate: date-formatted string,
ApprovedDate: date-formatted string,
CanceledDate: date-formatted string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
392
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ExpiresDate: date-formatted string,
Status: string,
AccessType: string,
ApplicationID: int,
Reason: string
},
]
},
]
Response codes
l
200 Request successful. Requests in the response body.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
o
4033 Approver Only API or account. Only Approvers can access this API or account.
For more information, please see "Common response codes" on page 17.
POST RequestSets
Purpose
Creates a new release request set.
Required roles
l
Requestor or Requestor/Approver role to managed account referenced by ID.
l
Information Systems Administrator (ISA) role access.
For more information, please see:
l
"ISA requests" on page 213
l
"ISA sessions" on page 215
Request body
Content-Type: application/json
{
AccessTypes: [ string, … ],
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
393
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
SystemID: int,
AccountID: int,
ApplicationID: int, // can be null,
DurationMinutes : int,
Reason : string,
TicketSystemID : int,
TicketNumber : string
}
Request body details
l
AccessTypes: (at least two are required) A list of the types of access requested (View, RDP, SSH, App).
l
SystemID: (required) ID of the managed system to request.
l
AccountID: (required) ID of the managed account to request.
l
ApplicationID: (required when an AccessType is App) ID of the application to request.
l
DurationMinutes: (required) The request duration (in minutes).
l
Reason: (optional) The reason for the request.
l
TicketSystemID: ID of the ticket system. If omitted then default ticket system is used.
l
TicketNumber: Number of associated ticket. Can be required if ticket system is marked as required in the access policy used.
Max string length is 20.
Response body
Content-Type: application/json
{
RequestSetID: string,
Requests:
[
{
RequestID: int,
SystemID: int,
SystemName: string,
AccountID: int,
AccountName: string,
DomainName: string,
ApplicationID: int, // can be null
AliasID: int,
RequestReleaseDate: date-formatted string,
ApprovedDate: date-formatted string,
ExpiresDate: date-formatted string,
Status: string,
AccessType: string
},
]
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
394
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
l
201 Request successful. Request set in the response body.
l
403 User does not have permissions to perform a request for the indicated account or the account does not have API access
enabled. Response body contains a status code indicating the reason for this forbidden access:
o
4031 User does not have permission to request the account or the account is not valid for the system.
o
4033 Approver Only API or account. Only Approvers can access this API or account.
o
4035 - Not enough approvers configured to approve a request.
l
409 Conflicting request exists. Another user has already requested a password for the specified account within the next
<durationMinutes> window.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
395
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Roles
(i.e. requestor, approver, credentials manager, etc.)
GET Roles
Purpose
Returns a list of Password Safe roles.
Required permissions
Password Safe Role Management (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
RoleID : int,
Name : string
},
]
Response codes
200 Request successful. Roles in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
396
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
User group roles
Quick Navigation
l
"GET UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles" on page 397
l
"POST UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles" on page 398
l
"DELETE UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles" on page 399
GET UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles
Purpose
Returns a list of roles for the user group and Smart Rule referenced by ID.
Required permissions
l
User Accounts Management (Read)
l
Password Safe Role Management (Read).
URL parameters
l
userGroupId: ID of the user group.
l
smartRuleId: ID of the Smart Rule.
Request body
None.
Response body
Content-Type: application/json
[
{
RoleID : int,
Name : string
},
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
397
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful. Roles in the response body.
For more information, please see "Common response codes" on page 17.
POST UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles
Purpose
Sets Password Safe roles for the user group and Smart Rule referenced by ID.
Required permissions
l
User Accounts Management (Read/Write).
l
Password Safe Role Management (Read/Write).
URL parameters
l
userGroupId: ID of the user group.
l
smartRuleId: ID of the Smart Rule.
Request body
Content-Type: application/json
{
Roles :
[
{
RoleID : int
},
],
AccessPolicyID : int
}
Request body details
l
Roles: (required) Zero or more roles to set on the UserGroup-SmartRule.
l
AccessPolicyID: The access policy ID to set on the UserGroup-SmartRule. Required when the Requestor or
Requestor/Approver role is set.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
398
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
None.
Response codes
204 Request successful. No content in body.
For more information, please see "Common response codes" on page 17.
DELETE UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles
Purpose
Deletes all Password Safe roles for the user group and Smart Rule referenced by ID.
Required permissions
l
User Accounts Management (Read/Write).
l
Password SafeRole Management (Read/Write).
URL parameters
l
userGroupId: ID of the user group.
l
smartRuleId: ID of the Smart Rule.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
399
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Sessions
Quick navigation
l
"GET Sessions" on page 400
l
"GET Sessions/{id}" on page 402
l
"POST Requests/{requestID}/Sessions" on page 404
l
"POST Sessions/Admin" on page 406
GET Sessions
Purpose
Returns a list of sessions.
Note: The maximum number of sessions returned is 100,000.
Required permissions
A member of the Administrators group, or ISA or auditor role to at least one asset Smart Rule.
Query parameters (optional)
l
status: Session status - A single value or comma-delimited list of values:
o
0: Not Started
o
1: In Progress
o
2: Completed
o
5: Locked
o
7: Terminated (deprecated)
o
8: Logged Off
o
9: Disconnected (RDP only)
l
userID: ID of the user that requested the session
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
400
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[
{
SessionID : int,
UserID : int,
NodeID : string,
Status : int,
ArchiveStatus : int,
Protocol : int,
StartTime : date,
EndTime : date,
Duration : int,
AssetName : string,
ManagedSystemID : int, // can be null
ManagedAccountID : int,
ManagedAccountName : string,
RecordKey : string,
Token : string
},
]
Response body details
l
SessionID: ID of the Session.
l
UserID: ID of the user that requested the session.
l
NodeID: ID of the Session Node.
l
Status: Session status
o
0: Not Started
o
1: In Progress
o
2: Completed
o
5: Locked
o
7: Terminated (deprecated)
o
8: Logged Off
o
9: Disconnected (RDP only)
l
ArchiveStatus: Session archive status (applicable only when Session Archiving is enabled and configured)
o
0: Not Archived
o
1: Archived
o
2: Restoring (from Archive Repository)
o
3: Archiving (from Node)
o
4: Session Not Found (in Archive Repository)
o
5: Archive Repository Offline/Inaccessible
o
6: Unknown
l
Protocol: Session protocol
o
0: RDP
o
1: SSH
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
401
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
StartTime: Start date/time of the session.
l
EndTime: End date/time of the session.
l
Duration: Session duration (seconds).
l
AssetName: Name of the target Managed System.
l
ManagedSystemID: ID of the target Managed System.
l
ManagedAccountID: ID of the target Managed Account.
l
ManagedAccountName: Name of the target Managed Account.
l
RecordKey: The Record Key used for Session replay.
l
Token: The Token used for Session replay.
Response codes
200 Request successful. Sessions in the response body.
For more information, please see "Common response codes" on page 17.
GET Sessions/{id}
Purpose
Returns a session by ID.
Required permissions
A member of the Administrators group, or ISA or auditor role to at least one asset Smart Rule.
URL parameters
id: ID of the session.
Request body
None.
Response body
Content-Type: application/json
{
SessionID : int,
UserID : int,
NodeID : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
402
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Status : int,
ArchiveStatus : int,
Protocol : int,
StartTime : date,
EndTime : date,
Duration : int,
AssetName : string,
ManagedSystemID : int,
ManagedAccountID : int,
ManagedAccountName : string,
RecordKey : string,
Token : string
}
Response body details
l
SessionID: ID of the Session.
l
UserID: ID of the user that requested the session.
l
NodeID: ID of the Session Node.
l
Status: Session status
o
0: Not Started
o
1: In Progress
o
2: Completed
o
5: Locked
o
7: Terminated (deprecated)
o
8: Logged Off
o
9: Disconnected (RDP only)
l
ArchiveStatus: Session archive status (applicable only when Session Archiving is enabled and configured)
o
0: Not Archived
o
1: Archived
o
2: Restoring (from Archive Repository)
o
3: Archiving (from Node)
o
4: Session Not Found (in Archive Repository)
o
5: Archive Repository Offline/Inaccessible
o
6: Unknown
l
Protocol: Session protocol
o
0: RDP
o
1: SSH
l
StartTime: Start date/time of the session.
l
EndTime: End date/time of the session.
l
Duration: Session duration (seconds).
l
AssetName: Name of the target Managed System.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
403
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
ManagedSystemID: ID of the target Managed System.
l
ManagedAccountID: ID of the target Managed Account.
l
ManagedAccountName: Name of the target Managed Account.
l
RecordKey: The Record Key used for Session replay.
l
Token: The Token used for Session replay.
Response codes
200 Request successful. Sessions in the response body.
For more information, please see "Common response codes" on page 17.
POST Requests/{requestID}/Sessions
Purpose
Create a new session for the given release.
Requirements
Must be the owner of the request ID.
URL parameters
requestID: ID of the request for which to create a session.
Request body
Content- Type: application/json
{
SessionType : string,
NodeID : string
}
Request body details
l
SessionType: (required) The type of session to create (SSH or sshticket, RDP or rdpticket, rdpfile, app, or appfile).
l
NodeID: (optional) ID of the node that should be used to establish the session. If NodeID is not given or if the Remote Session
Proxy feature is disabled, uses the local node.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
404
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (SSH or sshticket)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
TicketAtHost : string,
Link : string,
Command : string,
SessionID : int,
NodeID : string
}
Response body (RDP or rdpticket)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
SessionID : int,
NodeID : string
}
Response body (rdpfile)
RDP File as an attachment.
Response body (app – when the target system is Unix- or ssh-based)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
TicketAtHost : string,
Link : string,
Command : string,
SessionID : int,
NodeID : string
}
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
405
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body (app – when the target system is Windows- or rdp-based)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
SessionID : int,
NodeID : string
}
Response body (appfile)
RDP File as an attachment.
Response body details
l
ID: The Session Token (same as Ticket).
l
Ticket: The Session Token (same as ID).
l
Host: The target Host Name.
l
Port: The target Host Port.
l
TicketAtHost: Formatted value: {Ticket}@{Host}
l
Link: Formatted ssh link - ssh://{Ticket}@{Host}:{Port}
l
Command: Formatted ssh command: ssh -p {Port} {Ticket}@{Host}
l
SessionID: ID of the Session.
l
NodeID: ID of the Session Node.
Response codes
l
201– Request successful. Session details or RDP file in the response body.
l
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access:
l
4034 Request is not yet approved.
For more information, please see "Common response codes" on page 17.
POST Sessions/Admin
Purpose
Create a new admin session.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
406
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Required roles
Password Safe Admin Session (Read/Write).
Request body
Content-Type: application/json
{
SessionType : string,
HostName : string,
Port : int, // can be null
DomainName : string,
UserName : string,
Password : string,
Reason : string,
Resolution : string,
RDPAdminSwitch : bool,
SmartSizing : bool,
NodeID : string,
Record : bool
}
Request body details
l
SessionType: (required) The type of session to create (SSH or sshticket, RDP or rdpticket, or rdpfile)
l
HostName: (required) Name or IP of the target host. Max string length is 128.
l
Port: (optional, default: <configured default port>) Port to use for the connection.
l
DomainName: (optional) The domain name of the user. Max string length is 50.
l
UserName: (required) The username. Max string length is 200.
l
Password: (required) The password.
l
Reason: (optional) The reason for the session.
l
Resolution (RDP-only): (optional, default: <configured default resolution>) The default resolution (i.e 1024x768 or Maximized).
Max string length is 50.
l
RDPAdminSwitch (RDP-only): (optional, default: false) True to use the RDP /admin switch, otherwise false.
l
SmartSizing (RDP-only): (optional, default: false) True to use RDP Smart Sizing, otherwise false. Applies only when
SessionType=rdpfile.
l
NodeID: (optional) ID of the node that should be used to establish the Session. If NodeID is not given or if the Remote Session
Proxy feature is disabled, uses the local node.
l
Record: (optional, default: true) True to record the Session, otherwise false. Ignored and always recorded if the Global Setting
Hide Record Checkbox for Admin Sessions is enabled.
Response body (SSH or sshticket)
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
407
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
ID : string,
Ticket : string,
Host : string,
Port : string,
TicketAtHost : string,
Link : string,
Command : string,
SessionID : int,
NodeID : string
}
Response body (RDP or rdpticket)
Content-Type: application/json
{
ID : string,
Ticket : string,
Host : string,
Port : string,
SessionID : int,
NodeID : string
}
Response body (rdpfile)
RDP file as an attachment.
Response body details
l
ID: The Session Token (same as Ticket).
l
Ticket: The Session Token (same as ID).
l
Host: The target Host Name.
l
Port: The target Host Port.
l
TicketAtHost: Formatted value: {Ticket}@{Host}
l
Link: Formatted ssh link - ssh://{Ticket}@{Host}:{Port}
l
Command: Formatted ssh command: ssh -p {Port} {Ticket}@{Host}
l
SessionID: ID of the Session.
l
NodeID: ID of the Session Node.
Response codes
201 Request successful. Session details or RDP file in the response body.
403 Access forbidden. Response body contains a message or status code indicating the reason for this forbidden access.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
408
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
409
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Session locking
Quick navigation
l
"POST Sessions/{sessionID}/Lock" on page 410
l
"POST ManagedAccounts/{managedAccountID}/Sessions/Lock" on page 411
l
"POST ManagedSystems/{managedSystemID}/Sessions/Lock" on page 411
POST Sessions/{sessionID}/Lock
Purpose
Locks an active session.
Required permissions
One of:
l
Password Safe API Global Quarantine (Read/Write)
l
Password Safe Active Session Reviewer Role, ISA Role, or a member of BeyondInsight Administrators group.
URL parameters
sessionID: ID of the session.
Request body
None.
Response body
None.
Response codes
204 Lock successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
410
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedAccounts/{managedAccountID}/Sessions/Lock
Purpose
Locks all active sessions by managed account ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body
None.
Response body
None.
Response codes
204 Lock successful. No content in body.
For more information, please see "Common response codes" on page 17.
POST ManagedSystems/{managedSystemID}/Sessions/Lock
Purpose
Locks all active Sessions by managed system ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedSystemID: ID of the managed system.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
411
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
204 Lock successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
412
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Session termination
Quick navigation
l
"POST Sessions/{sessionID}/Terminate" on page 413
l
"POST ManagedAccounts/{managedAccountID}/Sessions/Terminate" on page 414
l
"POST ManagedSystems/{managedSystemID}/Sessions/Terminate" on page 414
POST Sessions/{sessionID}/Terminate
Purpose
Terminates an active session.
Required permissions
One of:
l
Password Safe API Global Quarantine (Read/Write)
l
Password Safe Active Session Reviewer Role, ISA Role, or a member of BeyondInsight Administrators group.
URL parameters
sessionID: ID of the session to terminate.
Request body
None.
Response body
None.
Response codes
204 Termination successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
413
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedAccounts/{managedAccountID}/Sessions/Terminate
Purpose
Terminates all active sessions by managed account ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedAccountID: ID of the managed account.
Request body
None.
Response body
None.
Response codes
204 Termination successful. No content in body.
For more information, please see "Common response codes" on page 17.
POST ManagedSystems/{managedSystemID}/Sessions/Terminate
Purpose
Terminates all active sessions by managed system ID.
Required permissions
Password Safe API Global Quarantine (Read/Write).
URL parameters
managedSystemID: ID of the managed system.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
414
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
None.
Response codes
l
204 Termination successful. No content in body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
415
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Synced accounts
Synced accounts are managed accounts subscribed/synced to another managed account.
Quick navigation
l
"GET ManagedAccounts/{id}/SyncedAccounts" on page 416
l
"POST ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID}" on page 419
l
"DELETE ManagedAccounts/{id}/SyncedAccounts" on page 421
l
"DELETE ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID}" on page 422
GET ManagedAccounts/{id}/SyncedAccounts
Purpose
Returns a list of subscribed/synced managed accounts by managed account ID.
Required permissions
Password Safe Account Management (Read).
URL parameters
id: ID of the parent managed account.
Request body
None.
Response body
Content-Type: application/json
[
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
416
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
},
]
Response body details
l
DomainName: The domain name for a domain-type account.
l
AccountName: The name of the account.
l
DistinguishedName: The distinguished name of an LDAP managed account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled: True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
417
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 is unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
200 Request successful. Linked Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
418
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
POST ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID}
Purpose
Subscribes/syncs a managed account to the managed account referenced by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
id: ID of the parent managed account.
l
syncedAccountID: ID of the synced managed account.
Request body
None.
Response body
Content-type: application/json
{
ManagedAccountID : int,
ManagedSystemID : int,
DomainName : string,
AccountName : string,
DistinguishedName : string,
PasswordFallbackFlag : bool,
LoginAccountFlag : bool,
Description : string,
PasswordRuleID : int,
ApiEnabled : bool,
ReleaseNotificationEmail : string,
ChangeServicesFlag : bool,
RestartServicesFlag : bool,
ReleaseDuration : int,
MaxReleaseDuration : int,
ISAReleaseDuration : int,
MaxConcurrentRequests : int,
AutoManagementFlag : bool,
DSSAutoManagementFlag : bool,
CheckPasswordFlag : bool,
ResetPasswordOnMismatchFlag : bool,
ChangePasswordAfterAnyReleaseFlag : bool,
ChangeFrequencyType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
419
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ChangeFrequencyDays : int,
ChangeTime : string,
ParentAccountID : int, // can be null
IsSubscribedAccount : bool,
LastChangeDate : datetime, // can be null
NextChangeDate : datetime, // can be null
IsChanging : bool,
ChangeState : int,
UseOwnCredentials : bool,
ChangeIISAppPoolFlag : bool,
RestartIISAppPoolFlag : bool,
WorkgroupID : int, // can be null
ChangeWindowsAutoLogonFlag : bool,
ChangeComPlusFlag : bool,
ChangeDComFlag : bool,
ChangeSComFlag : bool,
}
Response body details
l
AccountName: The name of the account.
l
PasswordFallbackFlag: True if failed DSS authentication can fall back to password authentication, otherwise false.
l
LoginAccountFlag: True if the account should use the managed system login account for SSH sessions, otherwise false.
l
Description: A description of the account.
l
PasswordRuleID: ID of the password rule assigned to this managed account.
l
ApiEnabled:True if the account can be requested through the API, otherwise false.
l
ReleaseNotificationEmail: Email address used for notification emails related to this managed account.
l
ChangeServicesFlag: True if services run as this user should be updated with the new password after a password change,
otherwise false.
l
RestartServicesFlag: True if services should be restarted after the run as password is changed (ChangeServicesFlag),
otherwise false.
l
ReleaseDuration: (minutes: 1-525600) Default release duration.
l
MaxReleaseDuration: (minutes: 1-525600) Default maximum release duration.
l
ISAReleaseDuration: (minutes: 1-525600) Default Information Systems Administrator (ISA) release duration.
l
MaxConcurrentRequests: (0-999, 0 means unlimited) Maximum number of concurrent password requests for this account.
l
AutoManagementFlag: True if password auto-management is enabled, otherwise false.
o
DSSAutoManagementFlag: True if DSS key auto-management is enabled, otherwise false.
o
CheckPasswordFlag: True to enable password testing, otherwise false.
o
ChangePasswordAfterAnyReleaseFlag: True to change passwords on release of a request, otherwise false.
o
ResetPasswordOnMismatchFlag: True to queue a password change when scheduled password test fails, otherwise
false.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
420
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
ChangeFrequencyType: The change frequency for scheduled password changes:
n
first: Changes scheduled for the first day of the month.
n
last: Changes scheduled for the last day of the month.
n
xdays: Changes scheduled every x days (ChangeFrequencyDays).
o
ChangeFrequencyDays: (days: 1-999) When ChangeFrequencyType is xdays, password changes take place this
configured number of days.
o
ChangeTime: (24hr format: 00:00-23:59) UTC time of day scheduled password changes take place.
l
ParentAccountID: If this is a subscribed account (IsSubscribedAccount), this is the ID of the parent managed account.
l
IsSubscribedAccount: True if the account is a synced or subscribed account, otherwise false.
l
LastChangeDate: The date and time of the last password change.
l
NextChangeDate: The date and time of the next scheduled password change.
l
IsChanging: True if the account credentials are in the process of changing, otherwise false.
l
ChangeState: The change state of the account credentials:
o
0: Idle / no change taking place or scheduled within 5 minutes.
o
1: Changing / managed account credential currently changing.
o
2: Queued / managed account credential is queued to change or scheduled to change within 5 minutes.
For more information, please see Configure Subscriber Accounts at https://www.beyondtrust.com/docs/beyondinsight-
password-safe/ps/admin/managed-accounts.htm#ConfigureAccounts.
Response codes
l
200 Account was already synced. Managed Account in the response body.
l
201 Account was synced successfully. Managed Account in the response body.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{id}/SyncedAccounts
Purpose
Unsubscribes/unsyncs all managed accounts from the parent managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
421
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
id: ID of the parent managed account.
Request body
None.
Response body
None.
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
DELETE ManagedAccounts/{id}/SyncedAccounts/{syncedAccountID}
Purpose
Unsubscribes/unsyncs a managed account from the managed account by ID.
Required permissions
Password Safe Account Management (Read/Write).
URL parameters
l
id: ID of the parent managed account.
l
syncedAccountID: ID of the synced managed account.
Request body
None.
Response body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
422
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 Request successful.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
423
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Deprecated
The content in this section of the guide has been deprecated and is compatible with earlier versions only.
Quick navigation
l
"[deprecated] GET Aliases/{name}" on page 424
l
"[deprecated] GET Keystrokes/search/{condition}" on page 425
l
"[deprecated] GET Keystrokes/search/{condition}/{type:int}" on page 426
l
"PUT Workgroups/{workgroupName}/Assets/{assetName}/ManagedSystems/ManagedAccounts/{accountName}/Credentials" on
page 427
Aliases
[deprecated] GET Aliases/{name}
Note: This API has been deprecated and is available for backwards compatibility only. Use GET Aliases?name={name}
instead.
Purpose
Returns a requestable managed account alias by name.
Required roles
Requestor or Requestor/Approver role for the preferred managed account referenced by the alias.
URL parameters
name: Name of the managed account alias.
Request body
None.
Response body
Content-Type: application/json
{
AliasId: int,
AliasName: string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
424
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
SystemId: int,
SystemName: string,
AccountId: int,
AccountName: string,
DomainName: string,
InstanceName: string,
DefaultReleaseDuration: int,
MaximumReleaseDuration: int,
LastChangeDate: datetime,
NextChangeDate: datetime,
IsChanging: bool,
ChangeState: int,
MappedAccounts :
[
{
AliasID: int,
ManagedSystemID: int,
ManagedAccountID: int,
Status: string
},
]
}
Response codes
200 - Request successful. Alias in response body.
For more information, please see "Common response codes" on page 17.
Keystrokes
[deprecated] GET Keystrokes/search/{condition}
Note: This API has been deprecated and is available for backwards compatibility only. Use POST Keystrokes/Search
instead.
Purpose
Search for keystrokes by condition/keyword.
Required roles
Password Safe Auditor Role, ISA Role, or a member of BeyondInsight Administrators group.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
425
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
condition: Keyword to search for.
Response body
Content-Type: application/json
[
{
KeystrokeID: long,
SessionID: int,
TimeMarker: long,
Type: byte,
Data: string
},
]
Response codes
200 - Request successful. Keystrokes are in response body.
For more information, please see "Common response codes" on page 17.
[deprecated] GET Keystrokes/search/{condition}/{type:int}
Note: This API has been deprecated and is available for backwards compatibility only. Use POST Keystrokes/Search instead.
Purpose
Search for keystrokes by condition/keyword and type.
Required roles
Password Safe Auditor Role, ISA Role, or a member of BeyondInsight Administrators group.
URL parameters
l
condition: Keyword to search for.
l
type: Type of keystrokes:
o
0: All
o
1: StdIn
o
2: StdOut
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
426
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
o
4: Window Event
o
5: User Event
Response body
Content-Type: application/json
[
{
KeystrokeID: long,
SessionID: int,
TimeMarker: long,
Type: byte,
Data: string
},
]
Response codes
200 - Request successful. Keystrokes are in response body.
For more information, please see "Common response codes" on page 17.
Managed account credentials
PUT Workgroups/{workgroupName}/Assets/
{assetName}/ManagedSystems/ManagedAccounts/{accountName}/Credentials
Note: This API has been deprecated and is available for backwards compatibility only. Use PUT
Credentials?workgroupName={workgroupName}&assetName={assetName}&accountName={accountName} instead.
Purpose
Updates the credentials for a managed account by Workgroup name, asset name, and managed account name, optionally applying the
change to the managed system.
Required permissions
One of the following is required:
l
Password Safe Account Management (Read/Write)
l
ISA Role or Credentials Manager Role on a Smart Rule referencing the account
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
427
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
URL parameters
l
workgroupName: Name of the Workgroup.
l
assetName: Name of the asset.
l
accountName: Name of the managed account for which to set the credentials.
Request body
Content-Type: application/json
{
Password: string,
PublicKey: string,
PrivateKey: string,
Passphrase: string,
UpdateSystem: bool
}
Request body details
l
Password: (optional) The new password to set. If not given, generates a new random password.
l
PublicKey: (required if PrivateKey is given and updateSystem=true) The new public key to set on the host.
l
PrivateKey: The private key to set (provide passphrase if encrypted).
l
Passphrase: (optional) The passphrase to use for an encrypted private key.
l
UpdateSystem: (default: true) Whether to update the credentials on the referenced system.
Response body
None.
Response codes
204 - Request Successful. No Response Body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
428
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Ticket systems
GET TicketSystems
Purpose
List registered ticket systems.
Required permissions
Ticket System (Read).
Request body
None.
Response body
Content-Type: application/json
[
{
TicketSystemID : int,
IsActive : bool,
TicketSystemName : string,
Description : string,
IsDefaultSystem : bool
},
]
Response codes
200 Request successful. Ticket systems in the response body
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
429
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Secrets Safe APIs
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
430
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Folders
Quick navigation
l
"POST Secrets-Safe/Folders/" on page 431
l
"POST Secrets-Safe/Folders/{id}" on page 432
l
"GET Secrets-Safe/Folders/" on page 433
l
"PUT Secrets-Safe/Folders/{id}" on page 434
l
"DELETE Secrets-Safe/Folders/{id}" on page 435
l
"GET Secrets-Safe/Folders/{id}" on page 436
POST Secrets-Safe/Folders/
Purpose
Creates a new Secrets Safe folder for the given user group.
Required permissions
Secrets-Safe (Read/Write).
Request body
Content-Type: application/json
{
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
}
Request body details
Max string length for description is 256.
Response body
Content-Type: application/json
{
Id: Guid,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
431
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
}
Response codes
l
201 - Request successful. Secrets Safe Folder in the response body.
l
409 - Conflict.
For more information, please see "Common response codes" on page 17.
POST Secrets-Safe/Folders/{id}
Purpose
Imports a CSV secrets file into the specified folder.
Required permissions
l
Workforce Passwords Read/Write, when destination folder is a Personal Folder.
l
Workforce Passwords Read/Write and Secrets Safe ReadWrite, when destination folder is a team folder.
Parameters
folderid: the folder ID (GUID).
Request body
Content-Type: multipart/form-data
Response body
{
totalNumber: int,
errors: [ {
lineNumber: int,
error: string
}
],
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
432
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
successfulImport: int
}
l
TotalNumber: Number of credentials processed. Includes failures.
l
Errors: List of errors. Includes the error message and CSV line number
l
SuccessfulImport: Number of credentials successfully imported.
Response codes
201 Request partially or completely successful. Refer to errors and successfulImport values in response body.
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Folders/
Purpose
Returns a list of Secrets Safe folders to which the current user has access.
Required permissions
Secrets-Safe (Read).
Parameters
To filter the results, use any combination of the following:
l
FolderName: The partial name of the folder.
l
FolderPath: Child folders are also included. Separator is /.
l
IncludeSubfolders: Indicate whether to include the subfolder. Default is true.
l
RootOnly: The results only include those folders at the root level.
l
FolderOwnerId: Filter results by the folders which are owned by the given FolderOwnerId.
l
Limit: Limits the results by the given integer greater than 0. Default is 1000.
l
Offset: Skip the first (offset) number of secrets.
Request body
None.
Response body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
433
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
[{
Id: Guid,
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
},
]
Response codes
200 - Request successful. Secrets Safe Folders in the response body.
For more information, please see "Common response codes" on page 17.
PUT Secrets-Safe/Folders/{id}
Purpose
Updates a Secrets Safe folder by ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
id: the folder ID (GUID).
Request body
Content-Type: application/json
{
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
}
Request body details
Max string length for description is 256.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
434
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Content-Type: application/json
[{
Id: Guid,
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
},
]
Response codes
200 - Request successful. Secrets Safe Folders in the response body.
For more information, please see "Common response codes" on page 17.
DELETE Secrets-Safe/Folders/{id}
Purpose
Deletes a Secrets Safe folder by ID.
Required permissions
Secrets-Safe (Read/Write).
Note: Folders that contain secrets cannot be deleted.
Parameters
id: the folder ID (GUID).
Request body
None.
Response body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
435
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - Request successful. Secrets Safe folders in the response body.
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Folders/{id}
Purpose
Returns a Secrets Safe folder by ID.
Required permissions
Secrets-Safe (Read).
Parameters
id: the folder ID (GUID).
Request body
None.
Response body
Content-Type: application/json
{
Id: Guid,
Name: string,
Description: string,
ParentId: Guid,
UserGroupId: int,
}
Response codes
200 - Request successful. Secrets Safe Folder in the response body.
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
436
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Secrets
Quick navigation
l
"POST Secrets-Safe/Folders/{folderId:guid}/secrets" on page 437
l
"POST Secrets-Safe/Folders/{folderId:guid}/secrets/text" on page 439
l
"POST Secrets-Safe/Folders/{folderId:guid}/secrets/file" on page 441
l
"PUT Secrets-Safe/Secrets/{secretId:guid}/" on page 443
l
"PUT Secrets-Safe/Secrets/{secretId:guid}/text" on page 445
l
"PUT Secrets-Safe/Secrets/{secretId:guid}/file" on page 447
l
"GET Secrets-Safe/Secrets" on page 449
l
"GET Secrets-Safe/Secrets/{secretId:guid}" on page 451
l
"GET Secrets-Safe/Folders/{folderId:guid}/secrets" on page 452
l
"GET Secrets-Safe/Secrets/{secretId:guid}/text" on page 453
l
"GET Secrets-Safe/Secrets/{secretId:guid}/file" on page 455
l
"GET Secrets-Safe/Secrets/{secretId:guid}/file/download" on page 456
l
"DELETE Secrets-Safe/Secrets/{secretId:guid}/" on page 457
POST Secrets-Safe/Folders/{folderId:guid}/secrets
Purpose
Creates a secret in the folder by ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
folderid: the folder ID (GUID).
Request body
Content-Type: application/json
{
Title : string,
Description : string,
Username : string,
Password : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
437
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
PasswordRuleID : int,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for description and password is 256.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Required: Title, username, password.
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
l
A password or a PasswordRuleID is required.
o
If a PasswordRuleID is passed in, then a password is generated (based on the Password Policy defined by the
PasswordPolicyID).
o
If a password is passed in instead, the same behavior is followed (using that as the password).
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
Username : string,
Password : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
438
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
201 - Created
400 - Bad Request
403 - Forbidden
409 - Conflict
For more information, please see "Common response codes" on page 17.
POST Secrets-Safe/Folders/{folderId:guid}/secrets/text
Purpose
Creates a text secret in the given folder ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
folderid: the folder ID (GUID).
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
439
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
Title : string,
Description : string,
Text : string,
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
Notes : string,
FolderId : Guid,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for Title and Description is 256.
l
Max string length for text is 4096.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Required: Title, FolderId
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
440
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
201 - Created
400 - Bad Request
403 - Forbidden
409 - Conflict.
For more information, please see "Common response codes" on page 17.
POST Secrets-Safe/Folders/{folderId:guid}/secrets/file
Purpose
Creates a secret file in the given folder ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
folderid: the folder ID (GUID).
Request body
Content-Type: multipart/form-data
{
Title : string,
Description : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
441
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
Notes : string,
FileName : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for Title, Description, and FileName is 256.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Max file size is 5 MB. Size must be greater than 0 MB.
l
Required: Title, FolderId, Filename
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
l
When adding the file, the form field name must be "secretmetadata". If the name of the form is anything else, the following error
occurs: The multipart Request is missing poarts: key:'form-data'=True, key:'secretmetadata'=False.
Response body
Content-Type: application/octet-stream
Content Part One - name: form-data, type: binary
Content Part Two - name: secretmetadata, type: string
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
442
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
FileName : string,
FileHash : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
201 - Created
400 - Bad Request
403 - Forbidden
409 - Conflict
For more information, please see "Common response codes" on page 17.
PUT Secrets-Safe/Secrets/{secretId:guid}/
Purpose
Updates a secret based on the given ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
SecretId: the secret id (GUID)
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
443
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
FolderId : Guid,
Title : string,
Description : string,
Username : string,
Password : string,
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
PasswordRuleId : int,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for description is 256.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Required: Title, username, password, FolderID.
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
l
A password or a PasswordRuleID is required.
o
If a PasswordRuleID is passed in, then a password is generated (based on the Password Policy defined by the
PasswordPolicyID).
o
If a password is passed in instead, the same behavior is followed (using that as the password).
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
444
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
204 - No Content
403 - Forbidden
400 - Bad Request
For more information, please see "Common response codes" on page 17.
PUT Secrets-Safe/Secrets/{secretId:guid}/text
Purpose
Updates a secret text based on the given ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
SecretId: the secret ID (GUID)
Request body
Content-Type: application/json
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
445
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
{
FolderId : Guid,
Title : string,
Description : string,
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for description and password is 256.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Required: Title.
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
Response body
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
446
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
204 - No Content
400 - Bad Request
403 - Forbidden
For more information, please see "Common response codes" on page 17.
PUT Secrets-Safe/Secrets/{secretId:guid}/file
Purpose
Updates a file secret based on the folder ID.
Required permissions
Secrets-Safe (Read/Write).
Parameters
SecretId: the secret ID (GUID).
Request body
Content-Type: application/json
{
FolderId : Guid,
Title : string,
Description : string,
OwnerId : int,
OwnerType : string,
Owners : [{
OwnerId : int,
Owner : string,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
447
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Email : string,
}],
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
Request body details
l
Max string length for Title, Description, and FileName is 256.
l
Max string length for notes is 4000.
l
Max string length for Url is 2048.
l
Max file size is 5MB. Size must be greater than 0MB.
l
Required: Title, FolderId.
l
When OwnerType is set to User, then a list of Owners is required. When OwnerType is set to Group, the OwnerId is required (as
the GroupId).
Response body
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
FileName : string,
FileHash : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
448
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
}]
}
]
Response codes
204 - No Content
400 - Bad Request
403 - Forbidden
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Secrets
Purpose
Returns a list of secrets with the option to filter the list using query parameters.
Required permissions
Secrets-Safe (Read).
Parameters
All parameters are optional:
l
Path: the full path to the secret.
l
Separator: the separator used in the path above. Default is /.
l
Title: the full title of the secret.
l
AfterDate: filter by modified or created on, after, or equal to the given date. Must be in the following UTC format: yyyy-MM-
ddTHH:mm:ssZ.
l
Limit: limit the results. Default is 1000.
l
Offset: skip the first (offset) number of secrets.
Request body
None.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
449
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response body
Note: If no secrets match the specified filter parameter(s), a 200 (OK) response with an empty list is expected.
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
Username : string,
Password : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
200 - OK
403 - Forbidden
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
450
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Secrets-Safe/Secrets/{secretId:guid}
Purpose
Returns a secret by ID.
Required permissions
Secrets-Safe (Read).
Parameters
SecretId: the secret ID (GUID).
Request body
None.
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
Username : string,
Password : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
451
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Url : String
}]
}
]
Response codes
200 - OK
403 - Forbidden
404 - Not Found
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Folders/{folderId:guid}/secrets
Purpose
Gets all the secrets based on the folderId.
Required permissions
Secrets-Safe (Read).
Parameters
folderId: the given folder Id
Request body
None.
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
Username : string,
OwnerId : int,
FolderId : Guid,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
452
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
FileName : string,
FileHash : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
200 - OK
403 - Forbidden
404 - Not Found
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Secrets/{secretId:guid}/text
Purpose
Get a secret text based on the secretId.
Required permissions
Secrets-Safe (Read).
Parameters
SecretId: the secret id (GUID)
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
453
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Request body
None.
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
Text : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
Url : String
}]
}
]
Response codes
200 - OK
403 - Forbidden
404 - Not Found
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
454
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
GET Secrets-Safe/Secrets/{secretId:guid}/file
Purpose
Gets secret file based on the secretId as file metadata with file properties. This is returned as type application/json.
Required permissions
Secrets-Safe (Read).
Parameters
SecretId: the secret id (GUID)
Request body
None.
Response body
Content-Type: application/json
[
{
Id : Guid,
Title : string,
Description : string,
OwnerId : int,
FolderId : Guid,
CreatedOn : Datetime,
CreatedBy : string,
ModifiedOn : Datetime,
ModifiedBy : string,
Owner : string,
Folder : string,
FolderPath : string,
Owners : [{
OwnerId : int,
Owner : string,
Email : string,
}],
OwnerType : string,
Notes : string,
FileName : string,
FileHash : string,
Urls : [{
Id : Guid,
CredentialId : Guid,
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
455
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Url : String
}]
}
]
Response codes
200 - OK
403 - Forbidden
404 - Not Found
For more information, please see "Common response codes" on page 17.
GET Secrets-Safe/Secrets/{secretId:guid}/file/download
Purpose
Gets secret file as an attachment based on secretId.
Required permissions
Secrets-Safe (Read).
Parameters
SecretId: the secret id (GUID)
Request body
None.
Response body
Content-Type: application/octet-stream
[
{
FileContentResult (binary file in the response)
}
]
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
456
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Response codes
200 - OK
403 - Forbidden
404 - Not Found
For more information, please see "Common response codes" on page 17.
DELETE Secrets-Safe/Secrets/{secretId:guid}/
Purpose
Deletes a secret based on the secretId.
Required permissions
Secrets-Safe (Read/Write).
Parameters
SecretId: the given secret Id (GUID)
Request body
None.
Response body
None.
Response codes
200 OK
403 - Forbidden
404 - Not found
For more information, please see "Common response codes" on page 17.
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
457
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Appendix
Migration from v1 or v2
Any script or application written for v1 or v2 of the API needs some minor modifications to work with v3, namely the Authorization header
and URL endpoints.
Authorization header
In v1 and v2, the authorization header was used solely for the API application key. Now it is used to communicate the API application key
as well as the RunAs username.
Example: C#
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "PS-Auth key=C9AB26FB-B322- ED97-A34C-
215CA4D9630C; runas=doe-main\johndoe;");
Example: Powershell
$headers = @{ Authorization="PS-Auth key=C9AB26FB-B322-ED97-A34C-215CA4D9630C; runas=doe-
main\johndoe;"; };
Endpoint comparison
Note the use of https/SSL and removal of PasswordSafe segment in v3:
l
v1 base endpoint: http://the-server/BeyondTrust/api/public/v1/PasswordSafe
l
v2 base endpoint: http://the-server/BeyondTrust/api/public/v2/PasswordSafe
l
v3 base endpoint: https://the-server/BeyondTrust/api/public/v3
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
458
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE
Endpoint mapping
Migration from v1
V1 V3
Method Endpoint Method Endpoint
GET /v1/PasswordSafe/GetPublicKey <deprecated>
GET /v1/PasswordSafe/SignIn <deprecated>
GET /v1/PasswordSafe/Signout POST /v3/Auth/Signout
GET /v1/PasswordSafe/SignAppIn POST /v3/Auth/SignAppin
GET /v1/PasswordSafe/SecureSignAppIn <deprecated>
GET /v1/PasswordSafe/GetManagedAccountsList GET /v3/ManagedAccounts
POST /v1/PasswordSafe/ImmediatePasswordRequest POST /v3/Requests
GET /v1/PasswordSafe/GetPendingRequests GET /v3/Requests?status=pending
GET /v1/PasswordSafe/GetActiveRequests GET /v3/Requests?status=active
POST /v1/PasswordSafe/RetrievePassword GET /v3/Credentials/{requestId}
POST /v1/PasswordSafe/RetrieveSecurePassword <deprecated>
POST /v1/PasswordSafe/ReleasePassword PUT /v3/Requests/{requestId}/Checkin
Migration from v2
v2 v3
Method Endpoint Method Endpoint
GET /v2/PasswordSafe/GetPublicKey <deprecated>
GET /v2/PasswordSafe/SignIn <deprecated>
POST /v2/PasswordSafe/Signout POST /v3/Auth/Signout
POST /v2/PasswordSafe/SignAppIn POST /v3/Auth/SignAppin
POST /v2/PasswordSafe/SecureSignAppIn <deprecated>
GET /v2/PasswordSafe/GetManagedAccountsList GET /v3/ManagedAccounts
POST /v2/PasswordSafe/ImmediatePasswordRequest POST /v3/Requests
GET /v2/PasswordSafe/GetPendingRequests GET /v3/Requests?status=pending
GET /v2/PasswordSafe/GetActiveRequests GET /v3/Requests?status=active
POST /v2/PasswordSafe/RetrievePassword GET /v3/Credentials/{requestId}
POST /v2/PasswordSafe/RetrieveSecurePassword <deprecated>
POST /v2/PasswordSafe/ReleasePassword PUT /v3/Requests/{requestId}/Checkin
GET /v2/PasswordSafe/GetWorkgroups GET /v3/Workgroups
POST /v2/PasswordSafe/QueueImport POST /v3/Imports
SALES: www.beyondtrust.com/contact
SUPPORT: www.beyondtrust.com/support
DOCUMENTATION: www.beyondtrust.com/docs
459
©2003-2024 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or
depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.
TC: 9/4/2024
BEYONDINSIGHT AND PASSWORD SAFE 24.2
API GUIDE