Show / Hide Table of Contents

Class RegistrationPolicy

A registration policy. This object contains detailed information about a registration policy, including its ID, compartment ID, display name, and features.

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

Properties

CanOverrideFeatures

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

Indicates whether features will be overridden.

CompartmentId

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

The OCID for the compartment containing the registration policy.

Remarks

Required

ConnectionOption

Declaration
[JsonProperty(PropertyName = "connectionOption")]
public PolicyConnectionOption ConnectionOption { get; set; }
Property Value
Type Description
PolicyConnectionOption

DefinedTags

Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[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"}}

Remarks

Required

Description

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

A description of the registration policy.

DisplayName

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

The display name of the registration policy.

Remarks

Required

EnablementLevel

Declaration
[JsonProperty(PropertyName = "enablementLevel")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RegistrationPolicy.EnablementLevelEnum? EnablementLevel { get; set; }
Property Value
Type Description
RegistrationPolicy.EnablementLevelEnum?

The resource type which has been opted in for the registration policy.

  • DATABASE - The registration policy will be opted in at the Container Database level.

Features

Declaration
[Required(ErrorMessage = "Features is required.")]
[JsonProperty(PropertyName = "features", ItemConverterType = typeof(ResponseEnumConverter))]
public List<RegistrationPolicyFeatures> Features { get; set; }
Property Value
Type Description
List<RegistrationPolicyFeatures>

The Data Safe features granted to the databases registering under the registration policy.

Remarks

Required

FreeformTags

Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[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"}

Remarks

Required

Id

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

The OCID of the registration policy.

Remarks

Required

LifecycleState

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

The lifecycle state of the registration policy.

  • CREATING - The registration policy is getting created.
  • ACTIVE - The registration policy has been successfully created.
  • UPDATING - The registration policy is getting updated.
  • NEEDS_ATTENTION - The registration policy needs attention.
  • FAILED - The registration policy creation or update has failed.
  • DELETING - The registration policy is getting deleted.
Remarks

Required

LifecycleStateDetails

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

Details about the lifecycle state of the registration policy

ResourceId

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

The OCID of the resource used in the registration policy.

Remarks

Required

SystemTags

Declaration
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud": {"free-tier-retained": "true"}}

Remarks

Required

TimeCreated

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

The date and time when the registration policy was created.

Remarks

Required

TimeUpdated

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

The date and time when the registration policy was last updated.

Remarks

Required

In this article
Back to top