private static void KeystoneListGroups(IamClient iamClient) { var keystoneListGroupsRequest = new KeystoneListGroupsRequest() { DomainId = "", Name = "" }; try { var keystoneListGroupsResponse = iamClient.KeystoneListGroups(keystoneListGroupsRequest); foreach (var group in keystoneListGroupsResponse.Groups) { Console.WriteLine(JsonConvert.SerializeObject(group)); } } 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); } }