Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.Vault.getSecrets
Explore with Pulumi AI
This data source provides the list of Secrets in Oracle Cloud Infrastructure Vault service.
Lists all secrets in the specified vault and compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecrets = oci.Vault.getSecrets({
compartmentId: compartmentId,
name: secretName,
state: secretState,
vaultId: testVault.id,
});
import pulumi
import pulumi_oci as oci
test_secrets = oci.Vault.get_secrets(compartment_id=compartment_id,
name=secret_name,
state=secret_state,
vault_id=test_vault["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/vault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vault.GetSecrets(ctx, &vault.GetSecretsArgs{
CompartmentId: compartmentId,
Name: pulumi.StringRef(secretName),
State: pulumi.StringRef(secretState),
VaultId: pulumi.StringRef(testVault.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSecrets = Oci.Vault.GetSecrets.Invoke(new()
{
CompartmentId = compartmentId,
Name = secretName,
State = secretState,
VaultId = testVault.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Vault.VaultFunctions;
import com.pulumi.oci.Vault.inputs.GetSecretsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testSecrets = VaultFunctions.getSecrets(GetSecretsArgs.builder()
.compartmentId(compartmentId)
.name(secretName)
.state(secretState)
.vaultId(testVault.id())
.build());
}
}
variables:
testSecrets:
fn::invoke:
function: oci:Vault:getSecrets
arguments:
compartmentId: ${compartmentId}
name: ${secretName}
state: ${secretState}
vaultId: ${testVault.id}
Using getSecrets
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecrets(args: GetSecretsArgs, opts?: InvokeOptions): Promise<GetSecretsResult>
function getSecretsOutput(args: GetSecretsOutputArgs, opts?: InvokeOptions): Output<GetSecretsResult>
def get_secrets(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_vault.GetSecretsFilter]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
vault_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretsResult
def get_secrets_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_vault.GetSecretsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
vault_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretsResult]
func GetSecrets(ctx *Context, args *GetSecretsArgs, opts ...InvokeOption) (*GetSecretsResult, error)
func GetSecretsOutput(ctx *Context, args *GetSecretsOutputArgs, opts ...InvokeOption) GetSecretsResultOutput
> Note: This function is named GetSecrets
in the Go SDK.
public static class GetSecrets
{
public static Task<GetSecretsResult> InvokeAsync(GetSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetSecretsResult> Invoke(GetSecretsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
public static Output<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Vault/getSecrets:getSecrets
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the compartment.
- Filters
Changes to this property will trigger replacement.
Secrets Filter> - Name string
- The secret name.
- State string
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- Vault
Id string - The OCID of the vault.
- Compartment
Id This property is required. string - The OCID of the compartment.
- Filters
Changes to this property will trigger replacement.
Secrets Filter - Name string
- The secret name.
- State string
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- Vault
Id string - The OCID of the vault.
- compartment
Id This property is required. String - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
Secrets Filter> - name String
- The secret name.
- state String
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- vault
Id String - The OCID of the vault.
- compartment
Id This property is required. string - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
Secrets Filter[] - name string
- The secret name.
- state string
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- vault
Id string - The OCID of the vault.
- compartment_
id This property is required. str - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
Get Secrets Filter] - name str
- The secret name.
- state str
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- vault_
id str - The OCID of the vault.
- compartment
Id This property is required. String - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
- name String
- The secret name.
- state String
- A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- vault
Id String - The OCID of the vault.
getSecrets Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment where you want to create the secret.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
List<Get
Secrets Secret> - The list of secrets.
- Filters
List<Get
Secrets Filter> - Name string
- State string
- The current lifecycle state of the secret.
- Vault
Id string - The OCID of the Vault in which the secret exists
- Compartment
Id string - The OCID of the compartment where you want to create the secret.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
[]Get
Secrets Secret - The list of secrets.
- Filters
[]Get
Secrets Filter - Name string
- State string
- The current lifecycle state of the secret.
- Vault
Id string - The OCID of the Vault in which the secret exists
- compartment
Id String - The OCID of the compartment where you want to create the secret.
- id String
- The provider-assigned unique ID for this managed resource.
- secrets
List<Get
Secrets Secret> - The list of secrets.
- filters
List<Get
Secrets Filter> - name String
- state String
- The current lifecycle state of the secret.
- vault
Id String - The OCID of the Vault in which the secret exists
- compartment
Id string - The OCID of the compartment where you want to create the secret.
- id string
- The provider-assigned unique ID for this managed resource.
- secrets
Get
Secrets Secret[] - The list of secrets.
- filters
Get
Secrets Filter[] - name string
- state string
- The current lifecycle state of the secret.
- vault
Id string - The OCID of the Vault in which the secret exists
- compartment_
id str - The OCID of the compartment where you want to create the secret.
- id str
- The provider-assigned unique ID for this managed resource.
- secrets
Sequence[vault.
Get Secrets Secret] - The list of secrets.
- filters
Sequence[vault.
Get Secrets Filter] - name str
- state str
- The current lifecycle state of the secret.
- vault_
id str - The OCID of the Vault in which the secret exists
- compartment
Id String - The OCID of the compartment where you want to create the secret.
- id String
- The provider-assigned unique ID for this managed resource.
- secrets List<Property Map>
- The list of secrets.
- filters List<Property Map>
- name String
- state String
- The current lifecycle state of the secret.
- vault
Id String - The OCID of the Vault in which the secret exists
Supporting Types
GetSecretsFilter
GetSecretsSecret
- Compartment
Id This property is required. string - The OCID of the compartment.
- Current
Version Number This property is required. string - The version number of the secret version that's currently in use.
This property is required. Dictionary<string, string>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description
This property is required. string - A brief description of the secret. Avoid entering confidential information.
- Enable
Auto Generation This property is required. bool This property is required. Dictionary<string, string>- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id
This property is required. string - The OCID of the secret.
- Is
Auto Generation Enabled This property is required. bool - The value of this flag determines whether or not secret content will be generated automatically.
- Key
Id This property is required. string - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- Last
Rotation Time This property is required. string - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Lifecycle
Details This property is required. string - Additional information about the current lifecycle state of the secret.
- Metadata
This property is required. Dictionary<string, string> - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- Next
Rotation Time This property is required. string - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Rotation
Configs This property is required. List<GetSecrets Secret Rotation Config> - Defines the frequency of the rotation and the information about the target system
- Rotation
Status This property is required. string - Additional information about the status of the secret rotation
- Secret
Contents This property is required. List<GetSecrets Secret Secret Content> - Secret
Generation Contexts This property is required. List<GetSecrets Secret Secret Generation Context> - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- Secret
Name This property is required. string - The user-friendly name of the secret. Avoid entering confidential information.
- Secret
Rules This property is required. List<GetSecrets Secret Secret Rule> - A list of rules that control how the secret is used and managed.
- State
This property is required. string - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- Time
Created This property is required. string - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of Current Version Expiry This property is required. string - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of Deletion This property is required. string - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Vault
Id This property is required. string - The OCID of the vault.
- Compartment
Id This property is required. string - The OCID of the compartment.
- Current
Version Number This property is required. string - The version number of the secret version that's currently in use.
This property is required. map[string]string- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description
This property is required. string - A brief description of the secret. Avoid entering confidential information.
- Enable
Auto Generation This property is required. bool This property is required. map[string]string- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id
This property is required. string - The OCID of the secret.
- Is
Auto Generation Enabled This property is required. bool - The value of this flag determines whether or not secret content will be generated automatically.
- Key
Id This property is required. string - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- Last
Rotation Time This property is required. string - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Lifecycle
Details This property is required. string - Additional information about the current lifecycle state of the secret.
- Metadata
This property is required. map[string]string - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- Next
Rotation Time This property is required. string - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Rotation
Configs This property is required. []GetSecrets Secret Rotation Config - Defines the frequency of the rotation and the information about the target system
- Rotation
Status This property is required. string - Additional information about the status of the secret rotation
- Secret
Contents This property is required. []GetSecrets Secret Secret Content - Secret
Generation Contexts This property is required. []GetSecrets Secret Secret Generation Context - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- Secret
Name This property is required. string - The user-friendly name of the secret. Avoid entering confidential information.
- Secret
Rules This property is required. []GetSecrets Secret Secret Rule - A list of rules that control how the secret is used and managed.
- State
This property is required. string - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- Time
Created This property is required. string - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of Current Version Expiry This property is required. string - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of Deletion This property is required. string - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Vault
Id This property is required. string - The OCID of the vault.
- compartment
Id This property is required. String - The OCID of the compartment.
- current
Version Number This property is required. String - The version number of the secret version that's currently in use.
This property is required. Map<String,String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description
This property is required. String - A brief description of the secret. Avoid entering confidential information.
- enable
Auto Generation This property is required. Boolean This property is required. Map<String,String>- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id
This property is required. String - The OCID of the secret.
- is
Auto Generation Enabled This property is required. Boolean - The value of this flag determines whether or not secret content will be generated automatically.
- key
Id This property is required. String - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- last
Rotation Time This property is required. String - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- lifecycle
Details This property is required. String - Additional information about the current lifecycle state of the secret.
- metadata
This property is required. Map<String,String> - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- next
Rotation Time This property is required. String - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- rotation
Configs This property is required. List<GetSecrets Secret Rotation Config> - Defines the frequency of the rotation and the information about the target system
- rotation
Status This property is required. String - Additional information about the status of the secret rotation
- secret
Contents This property is required. List<GetSecrets Secret Secret Content> - secret
Generation Contexts This property is required. List<GetSecrets Secret Secret Generation Context> - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- secret
Name This property is required. String - The user-friendly name of the secret. Avoid entering confidential information.
- secret
Rules This property is required. List<GetSecrets Secret Secret Rule> - A list of rules that control how the secret is used and managed.
- state
This property is required. String - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- time
Created This property is required. String - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Current Version Expiry This property is required. String - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Deletion This property is required. String - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id This property is required. String - The OCID of the vault.
- compartment
Id This property is required. string - The OCID of the compartment.
- current
Version Number This property is required. string - The version number of the secret version that's currently in use.
This property is required. {[key: string]: string}- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description
This property is required. string - A brief description of the secret. Avoid entering confidential information.
- enable
Auto Generation This property is required. boolean This property is required. {[key: string]: string}- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id
This property is required. string - The OCID of the secret.
- is
Auto Generation Enabled This property is required. boolean - The value of this flag determines whether or not secret content will be generated automatically.
- key
Id This property is required. string - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- last
Rotation Time This property is required. string - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- lifecycle
Details This property is required. string - Additional information about the current lifecycle state of the secret.
- metadata
This property is required. {[key: string]: string} - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- next
Rotation Time This property is required. string - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- rotation
Configs This property is required. GetSecrets Secret Rotation Config[] - Defines the frequency of the rotation and the information about the target system
- rotation
Status This property is required. string - Additional information about the status of the secret rotation
- secret
Contents This property is required. GetSecrets Secret Secret Content[] - secret
Generation Contexts This property is required. GetSecrets Secret Secret Generation Context[] - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- secret
Name This property is required. string - The user-friendly name of the secret. Avoid entering confidential information.
- secret
Rules This property is required. GetSecrets Secret Secret Rule[] - A list of rules that control how the secret is used and managed.
- state
This property is required. string - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- time
Created This property is required. string - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Current Version Expiry This property is required. string - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Deletion This property is required. string - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id This property is required. string - The OCID of the vault.
- compartment_
id This property is required. str - The OCID of the compartment.
- current_
version_ number This property is required. str - The version number of the secret version that's currently in use.
This property is required. Mapping[str, str]- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description
This property is required. str - A brief description of the secret. Avoid entering confidential information.
- enable_
auto_ generation This property is required. bool This property is required. Mapping[str, str]- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id
This property is required. str - The OCID of the secret.
- is_
auto_ generation_ enabled This property is required. bool - The value of this flag determines whether or not secret content will be generated automatically.
- key_
id This property is required. str - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- last_
rotation_ time This property is required. str - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- lifecycle_
details This property is required. str - Additional information about the current lifecycle state of the secret.
- metadata
This property is required. Mapping[str, str] - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- next_
rotation_ time This property is required. str - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- rotation_
configs This property is required. Sequence[vault.Get Secrets Secret Rotation Config] - Defines the frequency of the rotation and the information about the target system
- rotation_
status This property is required. str - Additional information about the status of the secret rotation
- secret_
contents This property is required. Sequence[vault.Get Secrets Secret Secret Content] - secret_
generation_ contexts This property is required. Sequence[vault.Get Secrets Secret Secret Generation Context] - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- secret_
name This property is required. str - The user-friendly name of the secret. Avoid entering confidential information.
- secret_
rules This property is required. Sequence[vault.Get Secrets Secret Secret Rule] - A list of rules that control how the secret is used and managed.
- state
This property is required. str - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- time_
created This property is required. str - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time_
of_ current_ version_ expiry This property is required. str - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time_
of_ deletion This property is required. str - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault_
id This property is required. str - The OCID of the vault.
- compartment
Id This property is required. String - The OCID of the compartment.
- current
Version Number This property is required. String - The version number of the secret version that's currently in use.
This property is required. Map<String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description
This property is required. String - A brief description of the secret. Avoid entering confidential information.
- enable
Auto Generation This property is required. Boolean This property is required. Map<String>- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id
This property is required. String - The OCID of the secret.
- is
Auto Generation Enabled This property is required. Boolean - The value of this flag determines whether or not secret content will be generated automatically.
- key
Id This property is required. String - The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- last
Rotation Time This property is required. String - A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- lifecycle
Details This property is required. String - Additional information about the current lifecycle state of the secret.
- metadata
This property is required. Map<String> - Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- next
Rotation Time This property is required. String - A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- rotation
Configs This property is required. List<Property Map> - Defines the frequency of the rotation and the information about the target system
- rotation
Status This property is required. String - Additional information about the status of the secret rotation
- secret
Contents This property is required. List<Property Map> - secret
Generation Contexts This property is required. List<Property Map> - Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
- secret
Name This property is required. String - The user-friendly name of the secret. Avoid entering confidential information.
- secret
Rules This property is required. List<Property Map> - A list of rules that control how the secret is used and managed.
- state
This property is required. String - A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
- time
Created This property is required. String - A property indicating when the secret was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Current Version Expiry This property is required. String - An optional property indicating when the current secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of Deletion This property is required. String - An optional property indicating when to delete the secret, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- vault
Id This property is required. String - The OCID of the vault.
GetSecretsSecretRotationConfig
- Is
Scheduled Rotation Enabled This property is required. bool - Enables auto rotation, when set to true rotationInterval must be set.
- Rotation
Interval This property is required. string - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- Target
System Details This property is required. List<GetSecrets Secret Rotation Config Target System Detail> - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
- Is
Scheduled Rotation Enabled This property is required. bool - Enables auto rotation, when set to true rotationInterval must be set.
- Rotation
Interval This property is required. string - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- Target
System Details This property is required. []GetSecrets Secret Rotation Config Target System Detail - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
- is
Scheduled Rotation Enabled This property is required. Boolean - Enables auto rotation, when set to true rotationInterval must be set.
- rotation
Interval This property is required. String - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- target
System Details This property is required. List<GetSecrets Secret Rotation Config Target System Detail> - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
- is
Scheduled Rotation Enabled This property is required. boolean - Enables auto rotation, when set to true rotationInterval must be set.
- rotation
Interval This property is required. string - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- target
System Details This property is required. GetSecrets Secret Rotation Config Target System Detail[] - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
- is_
scheduled_ rotation_ enabled This property is required. bool - Enables auto rotation, when set to true rotationInterval must be set.
- rotation_
interval This property is required. str - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- target_
system_ details This property is required. Sequence[vault.Get Secrets Secret Rotation Config Target System Detail] - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
- is
Scheduled Rotation Enabled This property is required. Boolean - Enables auto rotation, when set to true rotationInterval must be set.
- rotation
Interval This property is required. String - The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format. The minimum value is 1 day and maximum value is 360 days. For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
- target
System Details This property is required. List<Property Map> - The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
GetSecretsSecretRotationConfigTargetSystemDetail
- Adb
Id This property is required. string - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- Function
Id This property is required. string - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- Target
System Type This property is required. string - Unique identifier of the target system that Vault Secret connects to.
- Adb
Id This property is required. string - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- Function
Id This property is required. string - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- Target
System Type This property is required. string - Unique identifier of the target system that Vault Secret connects to.
- adb
Id This property is required. String - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- function
Id This property is required. String - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- target
System Type This property is required. String - Unique identifier of the target system that Vault Secret connects to.
- adb
Id This property is required. string - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- function
Id This property is required. string - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- target
System Type This property is required. string - Unique identifier of the target system that Vault Secret connects to.
- adb_
id This property is required. str - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- function_
id This property is required. str - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- target_
system_ type This property is required. str - Unique identifier of the target system that Vault Secret connects to.
- adb
Id This property is required. String - The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
- function
Id This property is required. String - The unique identifier (OCID) of the Oracle Cloud Infrastructure Functions that vault secret connects to.
- target
System Type This property is required. String - Unique identifier of the target system that Vault Secret connects to.
GetSecretsSecretSecretContent
- Content
This property is required. string - Content
Type This property is required. string - Name
This property is required. string - The secret name.
- Stage
This property is required. string
- Content
This property is required. string - Content
Type This property is required. string - Name
This property is required. string - The secret name.
- Stage
This property is required. string
- content
This property is required. String - content
Type This property is required. String - name
This property is required. String - The secret name.
- stage
This property is required. String
- content
This property is required. string - content
Type This property is required. string - name
This property is required. string - The secret name.
- stage
This property is required. string
- content
This property is required. str - content_
type This property is required. str - name
This property is required. str - The secret name.
- stage
This property is required. str
- content
This property is required. String - content
Type This property is required. String - name
This property is required. String - The secret name.
- stage
This property is required. String
GetSecretsSecretSecretGenerationContext
- Generation
Template This property is required. string - Name of random bytes generation template for generating random byte type secret.
- Generation
Type This property is required. string - Name of the predefined secret generation type.
- Passphrase
Length This property is required. int - Length of the passphrase to be generated
- Secret
Template This property is required. string - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
- Generation
Template This property is required. string - Name of random bytes generation template for generating random byte type secret.
- Generation
Type This property is required. string - Name of the predefined secret generation type.
- Passphrase
Length This property is required. int - Length of the passphrase to be generated
- Secret
Template This property is required. string - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
- generation
Template This property is required. String - Name of random bytes generation template for generating random byte type secret.
- generation
Type This property is required. String - Name of the predefined secret generation type.
- passphrase
Length This property is required. Integer - Length of the passphrase to be generated
- secret
Template This property is required. String - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
- generation
Template This property is required. string - Name of random bytes generation template for generating random byte type secret.
- generation
Type This property is required. string - Name of the predefined secret generation type.
- passphrase
Length This property is required. number - Length of the passphrase to be generated
- secret
Template This property is required. string - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
- generation_
template This property is required. str - Name of random bytes generation template for generating random byte type secret.
- generation_
type This property is required. str - Name of the predefined secret generation type.
- passphrase_
length This property is required. int - Length of the passphrase to be generated
- secret_
template This property is required. str - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
- generation
Template This property is required. String - Name of random bytes generation template for generating random byte type secret.
- generation
Type This property is required. String - Name of the predefined secret generation type.
- passphrase
Length This property is required. Number - Length of the passphrase to be generated
- secret
Template This property is required. String - SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
GetSecretsSecretSecretRule
- Is
Enforced On Deleted Secret Versions This property is required. bool - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- Is
Secret Content Retrieval Blocked On Expiry This property is required. bool - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- Rule
Type This property is required. string - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- Secret
Version Expiry Interval This property is required. string - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - Time
Of Absolute Expiry This property is required. string - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
- Is
Enforced On Deleted Secret Versions This property is required. bool - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- Is
Secret Content Retrieval Blocked On Expiry This property is required. bool - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- Rule
Type This property is required. string - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- Secret
Version Expiry Interval This property is required. string - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - Time
Of Absolute Expiry This property is required. string - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
- is
Enforced On Deleted Secret Versions This property is required. Boolean - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- is
Secret Content Retrieval Blocked On Expiry This property is required. Boolean - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- rule
Type This property is required. String - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- secret
Version Expiry Interval This property is required. String - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - time
Of Absolute Expiry This property is required. String - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
- is
Enforced On Deleted Secret Versions This property is required. boolean - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- is
Secret Content Retrieval Blocked On Expiry This property is required. boolean - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- rule
Type This property is required. string - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- secret
Version Expiry Interval This property is required. string - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - time
Of Absolute Expiry This property is required. string - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
- is_
enforced_ on_ deleted_ secret_ versions This property is required. bool - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- is_
secret_ content_ retrieval_ blocked_ on_ expiry This property is required. bool - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- rule_
type This property is required. str - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- secret_
version_ expiry_ interval This property is required. str - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - time_
of_ absolute_ expiry This property is required. str - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
- is
Enforced On Deleted Secret Versions This property is required. Boolean - A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
- is
Secret Content Retrieval Blocked On Expiry This property is required. Boolean - A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
- rule
Type This property is required. String - The type of rule, which either controls when the secret contents expire or whether they can be reused.
- secret
Version Expiry Interval This property is required. String - A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass
P3D
to have the secret version expire every 3 days. - time
Of Absolute Expiry This property is required. String - An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example:
2019-04-03T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.