private static void KeystoneCheckDomainPermissionForGroup(IamClient iamClient) { var keystoneCheckPermissionForGroupOnDomainRequest = new KeystoneCheckDomainPermissionForGroupRequest() { GroupId = "", RoleId = "" }; try { var keystoneCheckPermissionForGroupOnDomainResponse = iamClient.KeystoneCheckDomainPermissionForGroup(keystoneCheckPermissionForGroupOnDomainRequest); Console.WriteLine( JsonConvert.SerializeObject(keystoneCheckPermissionForGroupOnDomainResponse.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); } }