Interface ITokenEndpoint
Namespace: Consul
Assembly: Consul.dll
The interface for the ACL Token API Endpoints
public interface ITokenEndpoint
Methods
Bootstrap(CancellationToken)
Task<WriteResult<TokenEntry>> Bootstrap(CancellationToken ct = default)
Parameters
Returns
Task <WriteResult <TokenEntry >>
Bootstrap(WriteOptions, CancellationToken)
Task<WriteResult<TokenEntry>> Bootstrap(WriteOptions q, CancellationToken ct = default)
Parameters
Returns
Task <WriteResult <TokenEntry >>
Clone(string, CancellationToken)
Task<WriteResult<TokenEntry>> Clone(string id, CancellationToken ct = default)
Parameters
id
string
Returns
Task <WriteResult <TokenEntry >>
Clone(string, WriteOptions, CancellationToken)
Task<WriteResult<TokenEntry>> Clone(string id, WriteOptions q, CancellationToken ct = default)
Parameters
id
string
Returns
Task <WriteResult <TokenEntry >>
Create(TokenEntry, CancellationToken)
Task<WriteResult<TokenEntry>> Create(TokenEntry token, CancellationToken ct = default)
Parameters
token
TokenEntry
Returns
Task <WriteResult <TokenEntry >>
Create(TokenEntry, WriteOptions, CancellationToken)
Task<WriteResult<TokenEntry>> Create(TokenEntry token, WriteOptions q, CancellationToken ct = default)
Parameters
token
TokenEntry
Returns
Task <WriteResult <TokenEntry >>
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<TokenEntry[]>> List(CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <TokenEntry []>>
List(QueryOptions, CancellationToken)
Task<QueryResult<TokenEntry[]>> List(QueryOptions q, CancellationToken ct = default)
Parameters
Returns
Task <QueryResult <TokenEntry []>>
Read(string, CancellationToken)
Task<QueryResult<TokenEntry>> Read(string id, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <TokenEntry >>
Read(string, QueryOptions, CancellationToken)
Task<QueryResult<TokenEntry>> Read(string id, QueryOptions q, CancellationToken ct = default)
Parameters
id
string
Returns
Task <QueryResult <TokenEntry >>
Update(TokenEntry, CancellationToken)
Task<WriteResult<TokenEntry>> Update(TokenEntry token, CancellationToken ct = default)
Parameters
token
TokenEntry
Returns
Task <WriteResult <TokenEntry >>
Update(TokenEntry, WriteOptions, CancellationToken)
Task<WriteResult<TokenEntry>> Update(TokenEntry token, WriteOptions q, CancellationToken ct = default)
Parameters
token
TokenEntry
Returns
Task <WriteResult <TokenEntry >>