Interface IRoleEndpoint
Namespace: Consul
Assembly: Consul.dll
The interface for the ACL Role API Endpoints
public interface IRoleEndpoint
Methods
Create(RoleEntry, CancellationToken)
Task<WriteResult<RoleEntry>> Create(RoleEntry role, CancellationToken ct = default)
Parameters
role
RoleEntry
Returns
Task <WriteResult <RoleEntry >>
Create(RoleEntry, WriteOptions, CancellationToken)
Task<WriteResult<RoleEntry>> Create(RoleEntry role, WriteOptions q, CancellationToken ct = default)
Parameters
role
RoleEntry
Returns
Task <WriteResult <RoleEntry >>
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<RoleEntry[]>> List(CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <RoleEntry []>>
List(QueryOptions, CancellationToken)
Task<QueryResult<RoleEntry[]>> List(QueryOptions q, CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <RoleEntry []>>
Read(string, CancellationToken)
Task<QueryResult<RoleEntry>> Read(string id, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <RoleEntry >>
Read(string, QueryOptions, CancellationToken)
Task<QueryResult<RoleEntry>> Read(string id, QueryOptions q, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <RoleEntry >>
ReadByName(string, CancellationToken)
Task<QueryResult<RoleEntry>> ReadByName(string name, CancellationToken ct = default)
Parameters
name
string
Returns
Task <QueryResult <RoleEntry >>
ReadByName(string, QueryOptions, CancellationToken)
Task<QueryResult<RoleEntry>> ReadByName(string name, QueryOptions q, CancellationToken ct = default)
Parameters
name
string
Returns
Task <QueryResult <RoleEntry >>
Update(RoleEntry, CancellationToken)
Task<WriteResult<RoleEntry>> Update(RoleEntry role, CancellationToken ct = default)
Parameters
role
RoleEntry
Returns
Task <WriteResult <RoleEntry >>
Update(RoleEntry, WriteOptions, CancellationToken)
Task<WriteResult<RoleEntry>> Update(RoleEntry role, WriteOptions q, CancellationToken ct = default)
Parameters
role
RoleEntry
Returns
Task <WriteResult <RoleEntry >>