Secrets Manager (SSM) provides users with full-lifecycle management services for secrets, including creation, retrieval, update, and deletion. Combined with resource-level role authorization, it enables unified management of sensitive secrets. To address the leakage risks caused by hardcoding sensitive configurations and secrets, users or applications can retrieve secrets by calling the Secrets Manager API, effectively preventing sensitive information leakage caused by hardcoding and plaintext configuration, as well as business risks caused by permission loss.
All Secrets Manager APIs described in this chapter are API 3.0 APIs.
You can call APIs to perform operations on Secrets Manager, such as creating a secret, disabling a secret, and getting the detailed information list of secrets. For details on specific APIs, see API Overview.
Before using the APIs, make sure that you have fully understood the Secrets Manager product, usage methods, and billing standards.
For common terms used in Secrets Manager APIs, see the following table:
| Term | Description |
|---|---|
| SSM | Secrets Manager (SSM) provides users with full-lifecycle management services for secrets, including creation, retrieval, update, and deletion. Combined with resource-level role authorization, it enables unified management of sensitive secrets. |
| Secret | A secret is sensitive credential information used to authenticate applications, such as database credentials, account passwords, API keys, and SSH keys. You can also store various types of sensitive data as secret content in Secrets Manager in Name-Value pairs, such as sensitive addresses and IP ports. |
| TLS | Transport Layer Security (TLS) is a protocol built on top of the transport-layer TCP protocol. It serves the application layer and encrypts application-layer packets before they are transmitted over TCP. |
| Hardcoding | Hardcoding is a software development practice in which data is directly embedded into the source code of a program or other executable object. |
| Customer Master Key (CMK) | An encryption key generated and protected by Tencent Cloud KMS (Key Management Service), used to encrypt and decrypt secret content stored in SSM. |
| Secret rotation | Automatically generates new secret content at a preset interval and updates all associated applications. |
For parameter limits of API interfaces, see the parameter descriptions in the respective API documentation.
You can use the API Explorer tool to call APIs online.
This document uses creating a secret as an example. The steps to call an API through the API Explorer tool are as follows:
피드백