Class Secret
Manages a Key Vault Secret.
Inherited Members
Namespace: Pulumi.Azure.KeyVault
Assembly: Pulumi.Azure.dll
Syntax
public class Secret : CustomResource
Constructors
View SourceSecret(String, SecretArgs, CustomResourceOptions)
Create a Secret resource with the given unique name, arguments, and options.
Declaration
public Secret(string name, SecretArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceContentType
Specifies the content type for the Key Vault Secret.
Declaration
public Output<string> ContentType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExpirationDate
Expiration UTC datetime (Y-m-d'T'H:M:S'Z').
Declaration
public Output<string> ExpirationDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyVaultId
The ID of the Key Vault where the Secret should be created.
Declaration
public Output<string> KeyVaultId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotBeforeDate
Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').
Declaration
public Output<string> NotBeforeDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Value
Specifies the value of the Key Vault Secret.
Declaration
public Output<string> Value { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Version
The current version of the Key Vault Secret.
Declaration
public Output<string> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecretState, CustomResourceOptions)
Get an existing Secret resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Secret Get(string name, Input<string> id, SecretState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SecretState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Secret |