Posted On: Jan 1, 2025
Amazon Secrets Manager now supports a single API call to identify and retrieve a group of secrets for your application. The new API, BatchGetSecretValue, offers greater simplicity to common developer workflows where you need to bring multiple secrets into your application. With this feature, you no longer have to make iterative calls to retrieve one secret at a time or account for partial failures when pulling multiple secrets, enhancing the overall efficiency.
With the BatchGetSecretValue, you can input a list of secret names or ARNs, or filter criteria, such as tags. The API returns a response for all secrets meeting the criteria in the same format as the existing GetSecretValue API. This allows you to optimize your workloads while reducing the number of API calls.
The API is now available for Amazon Secrets Manager in in Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. To learn more about how to use BatchGetSecretValue, visit the API documentation.