Class CreateRegistrationPolicyDetails
The details required to create a new registration policy. This object contains the necessary information to create a registration policy, including the compartment ID, resource ID, and features.
Inherited Members
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class CreateRegistrationPolicyDetails
Properties
CanOverrideFeatures
Declaration
[JsonProperty(PropertyName = "canOverrideFeatures")]
public bool? CanOverrideFeatures { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Indicates whether features will be overridden for all targets. |
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 where the registration policy will be created. |
Remarks
Required
ConnectionOption
Declaration
[JsonProperty(PropertyName = "connectionOption")]
public PolicyConnectionOption ConnectionOption { get; set; }
Property Value
| Type | Description |
|---|---|
| PolicyConnectionOption |
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"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A description of the registration policy. |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The display name of the registration policy. |
Features
Declaration
[Required(ErrorMessage = "Features is required.")]
[JsonProperty(PropertyName = "features", ItemConverterType = typeof(StringEnumConverter))]
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
[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
|
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