Step 15: Secret Server APIs and CLI
You can access Secret Server without using the user interface for automation and integration purposes. Currently, there are two APIs:
- An asynchronous REST (representational state transfer) API for Web services, which is based on JSON (JavaScript Object Notation). This is the preferred method. It is faster and easier to read than than the SOAP API and is still actively updated.
- A synchronous SOAP (Simple Object Access Protocol) for Web services, which is based on XML. This method is deprecated, but we still support it. It is based on an older technology, which has largely been replaced in recent years. There will be no enhancements to this API. There are, however, a few, rarely used capabilities that only our SOAP API has.
We offer a software development kit (SDK) that contains a .NET framework and a command line interface (CLI) for accessing the REST API with Windows applications or scripting languages.
Both APIs, the .NET framework, and the CLI support:
- GET Requests: Retrieve information from Secret Server, including entire secrets, individual secret fields, and security tokens
- POST Requests: Create Secret Server data
- PUT Requests: Update Secret Server data
- DELETE Requests: Remove Secret Server data
- Once-per-session permissions (tested once and then based on the IP address), administered with a Secret Server rule
SDK Documentation:
-
Secret Server Software Development Kit for DevOps: Includes these topics:
- Secret Server configuration
- Roles and permissions
- SDK client installation
- Connecting to Secret Server
- SDK client caching
- Examples
-
Downloads for Secret Server Software Development Kit for DevOps: Includes these topics:
- SDK downloads
- Download
- SDK release notes
- NuGet packages
-
SDK Integration Document: Includes these topics:
- Integrating using C#
- Integrating using the
web.config
file - Methods of the SecretServerClient() class
REST API Documentation:
- REST Web Services API Reference and Download: Links to online reference guides (by Secret Server release)
- REST API PowerShell Script Examples
- REST API Python Examples
SOAP API Documentation:
- APIs and Scripting: Reference guide in a downloadable PDF