private static void LifeCycleMgtMain(string[] args) { var config = HttpConfig.GetDefaultConfig(); config.IgnoreSslVerification = true; var auth = new BasicCredentials(ak, sk, projectId); var rabbitmqClient = RabbitmqClient.NewBuilder() .WithCredential(auth) .WithEndPoint(endpoint) .WithHttpConfig(config).Build(); // listInstance(rabbitmqClient); // createPostPaidInstance(rabbitmqClient); batchRestartOrDeleteInstances(rabbitmqClient); }
private static void OtherInterfaceMain(string[] args) { var config = HttpConfig.GetDefaultConfig(); config.IgnoreSslVerification = true; var auth = new BasicCredentials(ak, sk, projectId); var rabbitmqClient = RabbitmqClient.NewBuilder() .WithCredential(auth) .WithEndPoint(endpoint) .WithHttpConfig(config).Build(); // listAvailableZones(rabbitmqClient); // listProducts(rabbitmqClient); showMaintainWindows(rabbitmqClient); }
private static void InstanceMgtMain(string[] args) { var config = HttpConfig.GetDefaultConfig(); config.IgnoreSslVerification = true; var auth = new BasicCredentials(ak, sk, projectId); var rabbitmqClient = RabbitmqClient.NewBuilder() .WithCredential(auth) .WithEndPoint(endpoint) .WithHttpConfig(config).Build(); // listPlugins(rabbitmqClient); // updatePlugins(rabbitmqClient); resetPassword(rabbitmqClient); }