Esempio n. 1
0
        /// <summary>
        /// Describe all database users allowed to acces the given database.
        /// </summary>
        /// <param name="database">The name of the database for which all users should be described.</param>
        /// <returns>A list of all users.</returns>
        public async Task <List <User> > DescribeDatabaseUsersAsync(string database)
        {
            InfluxDbApiResponse response = await _influxDbClient.DescribeDatabaseUsers(NoErrorHandlers, database);

            return(response.ReadAs <List <User> >());
        }
 public async Task <InfluxDbApiResponse> DescribeDatabaseUsers(IEnumerable <ApiResponseErrorHandlingDelegate> errorHandlers, string database)
 {
     return(await _influxDbClient.DescribeDatabaseUsers(errorHandlers, database));
 }