示例#1
0
        private static void KeystoneListUsersForGroupByAdmin(IamClient iamClient)
        {
            var keystoneListUsersForGroupByAdminRequest = new KeystoneListUsersForGroupByAdminRequest()
            {
                GroupId = ""
            };

            try
            {
                var keystoneListUsersForGroupByAdminResponse =
                    iamClient.KeystoneListUsersForGroupByAdmin(keystoneListUsersForGroupByAdminRequest);
                foreach (var user in keystoneListUsersForGroupByAdminResponse.Users)
                {
                    Console.WriteLine(JsonConvert.SerializeObject(user));
                }
            }
            catch (RequestTimeoutException requestTimeoutException)
            {
                Console.WriteLine(requestTimeoutException.ErrorMessage);
            }
            catch (ServiceResponseException clientRequestException)
            {
                Console.WriteLine(clientRequestException.HttpStatusCode);
                Console.WriteLine(clientRequestException.ErrorCode);
                Console.WriteLine(clientRequestException.ErrorMsg);
            }
            catch (ConnectionException connectionException)
            {
                Console.WriteLine(connectionException.ErrorMessage);
            }
        }