Skip to main content

Class PolicyEntry

Namespace: Consul
Assembly: Consul.dll

PolicyEntry represents an ACL Policy in Consul

public class PolicyEntry

Inheritance

objectPolicyEntry

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Constructors

PolicyEntry()

public PolicyEntry()

PolicyEntry(string)

public PolicyEntry(string id)

Parameters

id string

PolicyEntry(string, string)

public PolicyEntry(string id, string name)

Parameters

id string

name string

PolicyEntry(string, string, string, string, string[])

public PolicyEntry(string id, string name, string description, string rules, string[] datacenters)

Parameters

id string

name string

description string

rules string

datacenters string []

Properties

Datacenters

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string[] Datacenters { get; set; }

Property Value

string []

Description

public string Description { get; set; }

Property Value

string

ID

public string ID { get; set; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

Rules

public string Rules { get; set; }

Property Value

string

Methods

ShouldSerializeCreateIndex()

public static bool ShouldSerializeCreateIndex()

Returns

bool

ShouldSerializeModifyIndex()

public static bool ShouldSerializeModifyIndex()

Returns

bool

Operators

implicit operator PolicyLink(PolicyEntry)

public static implicit operator PolicyLink(PolicyEntry p)

Parameters

p PolicyEntry

Returns

PolicyLink

  • Constructors
    • PolicyEntry()
    • PolicyEntry(string)
    • PolicyEntry(string, string)
    • PolicyEntry(string, string, string, string, string[])
  • Properties
    • Datacenters
    • Description
    • ID
    • Name
    • Rules
  • Methods
    • ShouldSerializeCreateIndex()
    • ShouldSerializeModifyIndex()
  • Operators
    • implicit operator PolicyLink(PolicyEntry)