Ejemplo n.º 1
0
        private static void KeystoneShowGroup(IamClient iamClient)
        {
            var keystoneShowGroupRequest = new KeystoneShowGroupRequest()
            {
                GroupId = ""
            };

            try
            {
                var keystoneShowGroupResponse =
                    iamClient.KeystoneShowGroup(keystoneShowGroupRequest);
                Console.WriteLine(JsonConvert.SerializeObject(keystoneShowGroupResponse.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);
            }
        }