Show / Hide Table of Contents

Class Vault

The logical entity where the Vault service creates and durably stores keys.

Inheritance
object
Vault
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.KeymanagementService.Models
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class Vault

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment that contains this vault.

Remarks

Required

CryptoEndpoint

Declaration
[Required(ErrorMessage = "CryptoEndpoint is required.")]
[JsonProperty(PropertyName = "cryptoEndpoint")]
public string CryptoEndpoint { get; set; }
Property Value
Type Description
string

The service endpoint to perform cryptographic operations against. Cryptographic operations include Encrypt, Decrypt, and GenerateDataEncryptionKey operations.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}}

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name for the vault. It does not have to be unique, and it is changeable. Avoid entering confidential information.

Remarks

Required

ExternalKeyManagerMetadataSummary

Declaration
[JsonProperty(PropertyName = "externalKeyManagerMetadataSummary")]
public ExternalKeyManagerMetadataSummary ExternalKeyManagerMetadataSummary { get; set; }
Property Value
Type Description
ExternalKeyManagerMetadataSummary

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
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

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the vault.

Remarks

Required

IsPrimary

Declaration
[JsonProperty(PropertyName = "isPrimary")]
public bool? IsPrimary { get; set; }
Property Value
Type Description
bool?

A Boolean value that indicates whether the Vault is primary Vault or replica Vault.

IsVaultReplicable

Declaration
[JsonProperty(PropertyName = "isVaultReplicable")]
public bool? IsVaultReplicable { get; set; }
Property Value
Type Description
bool?

A Boolean value that indicates whether the Vault has cross region replication capability. Always true for Virtual Private Vaults.

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Vault.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
Vault.LifecycleStateEnum?

The vault's current lifecycle state.
Example: DELETED

Remarks

Required

ManagementEndpoint

Declaration
[Required(ErrorMessage = "ManagementEndpoint is required.")]
[JsonProperty(PropertyName = "managementEndpoint")]
public string ManagementEndpoint { get; set; }
Property Value
Type Description
string

The service endpoint to perform management operations against. Management operations include "Create," "Update," "List," "Get," and "Delete" operations.

Remarks

Required

ReplicaDetails

Declaration
[JsonProperty(PropertyName = "replicaDetails")]
public VaultReplicaDetails ReplicaDetails { get; set; }
Property Value
Type Description
VaultReplicaDetails

RestoredFromVaultId

Declaration
[JsonProperty(PropertyName = "restoredFromVaultId")]
public string RestoredFromVaultId { get; set; }
Property Value
Type Description
string

The OCID of the vault from which this vault was restored, if it was restored from a backup file. If you restore a vault to the same region, the vault retains the same OCID that it had when you backed up the vault.

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time this vault was created, expressed in RFC 3339 timestamp format.
Example: 2018-04-03T21:10:29.600Z

Remarks

Required

TimeOfDeletion

Declaration
[JsonProperty(PropertyName = "timeOfDeletion")]
public DateTime? TimeOfDeletion { get; set; }
Property Value
Type Description
DateTime?

An optional property to indicate when to delete the vault, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z

VaultType

Declaration
[Required(ErrorMessage = "VaultType is required.")]
[JsonProperty(PropertyName = "vaultType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Vault.VaultTypeEnum? VaultType { get; set; }
Property Value
Type Description
Vault.VaultTypeEnum?

The type of vault. Each type of vault stores the key with different degrees of isolation and has different options and pricing.

Remarks

Required

WrappingkeyId

Declaration
[Required(ErrorMessage = "WrappingkeyId is required.")]
[JsonProperty(PropertyName = "wrappingkeyId")]
public string WrappingkeyId { get; set; }
Property Value
Type Description
string

The OCID of the vault's wrapping key.

Remarks

Required

In this article
Back to top