Interface IPolicyEndpoint
Namespace: Consul
Assembly: Consul.dll
The interface for the ACL Policy API Endpoints
public interface IPolicyEndpoint
Methods
Create(PolicyEntry, CancellationToken)
Task<WriteResult<PolicyEntry>> Create(PolicyEntry policy, CancellationToken ct = default)
Parameters
policy
PolicyEntry
Returns
Task <WriteResult <PolicyEntry >>
Create(PolicyEntry, WriteOptions, CancellationToken)
Task<WriteResult<PolicyEntry>> Create(PolicyEntry policy, WriteOptions q, CancellationToken ct = default)
Parameters
policy
PolicyEntry
Returns
Task <WriteResult <PolicyEntry >>
Delete(string, CancellationToken)
Task<WriteResult<bool>> Delete(string id, CancellationToken ct = default)
Parameters
id
string
Returns
Task <WriteResult <bool >>
Delete(string, WriteOptions, CancellationToken)
Task<WriteResult<bool>> Delete(string id, WriteOptions q, CancellationToken ct = default)
Parameters
id
string
Returns
Task <WriteResult <bool >>
List(CancellationToken)
Task<QueryResult<PolicyEntry[]>> List(CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <PolicyEntry []>>
List(QueryOptions, CancellationToken)
Task<QueryResult<PolicyEntry[]>> List(QueryOptions q, CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <PolicyEntry []>>
Read(string, CancellationToken)
Task<QueryResult<PolicyEntry>> Read(string id, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <PolicyEntry >>
Read(string, QueryOptions, CancellationToken)
Task<QueryResult<PolicyEntry>> Read(string id, QueryOptions q, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <PolicyEntry >>
Update(PolicyEntry, CancellationToken)
Task<WriteResult<PolicyEntry>> Update(PolicyEntry policy, CancellationToken ct = default)
Parameters
policy
PolicyEntry
Returns
Task <WriteResult <PolicyEntry >>
Update(PolicyEntry, WriteOptions, CancellationToken)
Task<WriteResult<PolicyEntry>> Update(PolicyEntry policy, WriteOptions q, CancellationToken ct = default)
Parameters
policy
PolicyEntry
Returns
Task <WriteResult <PolicyEntry >>