Ejemplo n.º 1
0
        /// <summary>
        /// Create a new cluster admin.
        /// </summary>
        /// <param name="username">The name of the new admin.</param>
        /// <param name="adminPassword">The password for the new admin.</param>
        /// <returns></returns>
        public async Task <InfluxDbApiResponse> CreateClusterAdminAsync(string username, string adminPassword)
        {
            var user = new User {
                Name = username, Password = adminPassword
            };

            return(await _influxDbClient.CreateClusterAdmin(NoErrorHandlers, user));
        }
 public async Task <InfluxDbApiResponse> CreateClusterAdmin(IEnumerable <ApiResponseErrorHandlingDelegate> errorHandlers, User user)
 {
     return(await _influxDbClient.CreateClusterAdmin(errorHandlers, user));
 }