private static void CreateVpc(VpcClient client) { CreateVpcRequest req = new CreateVpcRequest { Body = new CreateVpcRequestBody { Vpc = new CreateVpcOption { Name = "test-vpc", Description = "Test vpc", Cidr = "192.168.0.0/24", EnterpriseProjectId = "0" } } }; try { var resp = client.CreateVpc(req); Console.WriteLine(resp.Vpc.Id); Console.WriteLine(resp.HttpStatusCode); foreach (var route in resp.Vpc.Routes) { Console.WriteLine(route.Destination); } } 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); } }