private static void KeystoneRemoveDomainPermissionFromGroup(IamClient iamClient) { var keystoneRemovePermissionFromGroupOnDomainRequest = new KeystoneRemoveDomainPermissionFromGroupRequest() { GroupId = "", RoleId = "" }; try { var keystoneRemovePermissionFromGroupOnDomainResponse = iamClient.KeystoneRemoveDomainPermissionFromGroup( keystoneRemovePermissionFromGroupOnDomainRequest); Console.WriteLine( JsonConvert.SerializeObject(keystoneRemovePermissionFromGroupOnDomainResponse.HttpStatusCode)); } 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); } }