Example #1
0
 /// <summary>
 ///  This endpoint updates the ACL tokens currently in use by the agent. It can be used to introduce ACL tokens to the agent for the first time, or to update tokens that were initially loaded from the agent's configuration. Tokens are not persisted, so will need to be updated again if the agent is restarted.
 /// </summary>
 /// <param name="updateTokenParmeter">Update Token Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, string backJson)> UpdateACLAgentMasterToken(UpdateTokenParmeter updateTokenParmeter)
 {
     return(await Put(updateTokenParmeter, $"/agent/acl_agent_master_token"));
 }
Example #2
0
 /// <summary>
 ///  This endpoint updates the ACL tokens currently in use by the agent. It can be used to introduce ACL tokens to the agent for the first time, or to update tokens that were initially loaded from the agent's configuration. Tokens are not persisted, so will need to be updated again if the agent is restarted.
 /// </summary>
 /// <param name="updateTokenParmeter">Update Token Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, string backJson)> UpdateACLReplicationToken(UpdateTokenParmeter updateTokenParmeter)
 {
     return(await Put(updateTokenParmeter, $"/agent/acl_replication_token"));
 }
Example #3
0
 /// <summary>
 /// This endpoint updates the ACL tokens currently in use by the agent. It can be used to introduce ACL tokens to the agent for the first time, or to update tokens that were initially loaded from the agent's configuration. Tokens are not persisted, so will need to be updated again if the agent is restarted.
 /// </summary>
 /// <param name="updateTokenParmeter">Update Token Parmeter</param>
 /// <returns></returns>    
 public async Task<(bool result, string backJson)> UpdateACLToken(UpdateTokenParmeter updateTokenParmeter)
 {
     return await Put(updateTokenParmeter, $"/agent/token/acl_token");
 }