Show / Hide Table of Contents

Class CreateAccessPolicyDetails

The information about a new access policy.

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

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.

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. Example: {"foo-namespace": {"bar-key": "value"}}

Description

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

Description of the resource. It can be changed after creation. Avoid entering confidential information.
Example: This is my new resource

FreeformTags

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

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

MeshId

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

The OCID of the service mesh in which this access policy is created.

Remarks

Required

Name

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

A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information.
Example: My unique resource name

Remarks

Required

Rules

Declaration
[Required(ErrorMessage = "Rules is required.")]
[JsonProperty(PropertyName = "rules")]
public List<AccessPolicyRuleDetails> Rules { get; set; }
Property Value
Type Description
List<AccessPolicyRuleDetails>

List of applicable rules

Remarks

Required

In this article
Back to top