예제 #1
0
        static void Main1(string[] args)
        {
            const string ak        = "{your ak string}";
            const string sk        = "{your sk string}";
            const string endpoint  = "{your endpoint}";
            const string projectId = "{your project id}";

            var config = HttpConfig.GetDefaultConfig();

            config.IgnoreSslVerification = true;
            var auth      = new BasicCredentials(ak, sk, projectId);
            var evsClient = EvsClient.NewBuilder()
                            .WithCredential(auth)
                            .WithEndPoint(endpoint)
                            .WithHttpConfig(config).Build();

            ShowVolume(evsClient);
            CreateVolume(evsClient);
            ResizeVolume(evsClient);
            ListVolumesDetails(evsClient);
            UpdateVolume(evsClient);
            DeleteVolume(evsClient);
            CinderListVolumeTypes(evsClient);
            CinderExportToImage(evsClient);
            CinderListQuotas(evsClient);
            CinderListAvailabilityZones(evsClient);
        }
예제 #2
0
        static void Main1(string[] args)
        {
            const string ak        = "{your ak string}";
            const string sk        = "{your sk string}";
            const string endpoint  = "{your endpoint}";
            const string projectId = "{your project id}";

            var config = HttpConfig.GetDefaultConfig();

            config.IgnoreSslVerification = true;
            var auth      = new BasicCredentials(ak, sk, projectId);
            var evsClient = EvsClient.NewBuilder()
                            .WithCredential(auth)
                            .WithEndPoint(endpoint)
                            .WithHttpConfig(config).Build();

            ShowJob(evsClient);
        }