CreateSecretDetails¶
- class oci.vault.models.CreateSecretDetails(**kwargs)¶
Bases:
objectThe details of the secret that you want to create.
Methods:
__init__(**kwargs)Initializes a new CreateSecretDetails object with values from keyword arguments.
Attributes:
[Required] Gets the compartment_id of this CreateSecretDetails.
Gets the defined_tags of this CreateSecretDetails.
Gets the description of this CreateSecretDetails.
Gets the enable_auto_generation of this CreateSecretDetails.
Gets the freeform_tags of this CreateSecretDetails.
[Required] Gets the key_id of this CreateSecretDetails.
Gets the metadata of this CreateSecretDetails.
Gets the replication_config of this CreateSecretDetails.
Gets the rotation_config of this CreateSecretDetails.
Gets the secret_content of this CreateSecretDetails.
Gets the secret_generation_context of this CreateSecretDetails.
[Required] Gets the secret_name of this CreateSecretDetails.
Gets the secret_rules of this CreateSecretDetails.
[Required] Gets the vault_id of this CreateSecretDetails.
- __init__(**kwargs)¶
Initializes a new CreateSecretDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CreateSecretDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateSecretDetails.
description (str) – The value to assign to the description property of this CreateSecretDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateSecretDetails.
key_id (str) – The value to assign to the key_id property of this CreateSecretDetails.
metadata (dict(str, object)) – The value to assign to the metadata property of this CreateSecretDetails.
secret_content (oci.vault.models.SecretContentDetails) – The value to assign to the secret_content property of this CreateSecretDetails.
replication_config (oci.vault.models.ReplicationConfig) – The value to assign to the replication_config property of this CreateSecretDetails.
rotation_config (oci.vault.models.RotationConfig) – The value to assign to the rotation_config property of this CreateSecretDetails.
secret_name (str) – The value to assign to the secret_name property of this CreateSecretDetails.
secret_rules (list[oci.vault.models.SecretRule]) – The value to assign to the secret_rules property of this CreateSecretDetails.
vault_id (str) – The value to assign to the vault_id property of this CreateSecretDetails.
secret_generation_context (oci.vault.models.SecretGenerationContext) – The value to assign to the secret_generation_context property of this CreateSecretDetails.
enable_auto_generation (bool) – The value to assign to the enable_auto_generation property of this CreateSecretDetails.
- property compartment_id¶
[Required] Gets the compartment_id of this CreateSecretDetails. The OCID of the compartment where you want to create the secret.
- Returns
The compartment_id of this CreateSecretDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateSecretDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateSecretDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this CreateSecretDetails. A brief description of the secret. Avoid entering confidential information.
- Returns
The description of this CreateSecretDetails.
- Return type
str
- property enable_auto_generation¶
Gets the enable_auto_generation of this CreateSecretDetails. The value of this flag determines whether or not secret content will be generated automatically. If not set, it defaults to false.
- Returns
The enable_auto_generation of this CreateSecretDetails.
- Return type
bool
- property freeform_tags¶
Gets the freeform_tags of this CreateSecretDetails. 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”}
- Returns
The freeform_tags of this CreateSecretDetails.
- Return type
dict(str, str)
- property key_id¶
[Required] Gets the key_id of this CreateSecretDetails. 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.
- Returns
The key_id of this CreateSecretDetails.
- Return type
str
- property metadata¶
Gets the metadata of this CreateSecretDetails. Additional metadata that you can use to provide context about how to use the secret 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.
- Returns
The metadata of this CreateSecretDetails.
- Return type
dict(str, object)
- property replication_config¶
Gets the replication_config of this CreateSecretDetails.
- Returns
The replication_config of this CreateSecretDetails.
- Return type
- property rotation_config¶
Gets the rotation_config of this CreateSecretDetails.
- Returns
The rotation_config of this CreateSecretDetails.
- Return type
- property secret_content¶
Gets the secret_content of this CreateSecretDetails.
- Returns
The secret_content of this CreateSecretDetails.
- Return type
- property secret_generation_context¶
Gets the secret_generation_context of this CreateSecretDetails.
- Returns
The secret_generation_context of this CreateSecretDetails.
- Return type
- property secret_name¶
[Required] Gets the secret_name of this CreateSecretDetails. A user-friendly name for the secret. Secret names should be unique within a vault. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
- Returns
The secret_name of this CreateSecretDetails.
- Return type
str
- property secret_rules¶
Gets the secret_rules of this CreateSecretDetails. A list of rules to control how the secret is used and managed.
- Returns
The secret_rules of this CreateSecretDetails.
- Return type
- property vault_id¶
[Required] Gets the vault_id of this CreateSecretDetails. The OCID of the vault where you want to create the secret.
- Returns
The vault_id of this CreateSecretDetails.
- Return type
str