secret_versions
Creates, updates, deletes, gets or lists a secret_versions resource.
Overview
| Name | secret_versions |
| Type | Resource |
| Id | azure.key_vault_secrets.secret_versions |
Fields
The following fields are returned by SELECT queries:
- get_secret_versions
| Name | Datatype | Description |
|---|---|---|
id | string | Secret identifier. |
attributes | object | The secret management attributes. |
contentType | string | Type of the secret value such as a password. |
managed | boolean | True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. |
tags | object | Application specific metadata in the form of key-value pairs. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_secret_versions | select | secret_name, vault_name | maxresults | List all versions of the specified secret. The full secret identifier and attributes are provided in the response. No values are returned for the secrets. This operations requires the secrets/list permission. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
secret_name | string | The name of the secret. Required. |
vault_name | string | Key vault name. (default: ) |
maxresults | integer | Maximum number of results to return in a page. If not specified the service will return up to 25 results. Default value is None. |
SELECT examples
- get_secret_versions
List all versions of the specified secret. The full secret identifier and attributes are provided in the response. No values are returned for the secrets. This operations requires the secrets/list permission.
SELECT
id,
attributes,
contentType,
managed,
tags
FROM azure.key_vault_secrets.secret_versions
WHERE secret_name = '{{ secret_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND maxresults = '{{ maxresults }}'
;