public class VPCHelper extends Object
Constructor and Description |
---|
VPCHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
createServerTags(String instanceId,
List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> tags,
VPC vpc) |
static void |
deleteServer(String instanceId,
VPC vpc) |
static void |
deleteServerTags(String instanceId,
List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> tags,
VPC vpc) |
static String |
genSlaveNamePrefix(String description,
String flavorId,
String imageID) |
static List<com.huaweicloud.sdk.ecs.v2.model.ServerDetail> |
getAllOfServerByTmp(ECSTemplate template) |
static List<com.huaweicloud.sdk.ecs.v2.model.ServerDetail> |
getAllOfServerList(VPC vpc) |
static com.huaweicloud.sdk.eip.v2.model.PublicipShowResp |
getEIPInfo(String eipID,
VPC vpc) |
static com.huaweicloud.sdk.ecs.v2.model.ServerDetail |
getInstance(String instanceId,
VPC vpc) |
static com.huaweicloud.sdk.ecs.v2.model.ServerDetail |
getInstanceWithRetry(String instanceId,
VPC vpc) |
static List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> |
getServerTags(String instanceId,
VPC vpc) |
static boolean |
isTerminated(String state) |
static String |
MD516bitUp(String readyEncryptStr) |
static void |
startEcsInstances(List<String> instances,
VPC vpc) |
static void |
stopECSInstance(String instanceId,
VPC vpc) |
public static com.huaweicloud.sdk.ecs.v2.model.ServerDetail getInstanceWithRetry(String instanceId, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException, InterruptedException
com.huaweicloud.sdk.core.exception.SdkException
InterruptedException
public static com.huaweicloud.sdk.ecs.v2.model.ServerDetail getInstance(String instanceId, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> getServerTags(String instanceId, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static void deleteServerTags(String instanceId, List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> tags, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static void createServerTags(String instanceId, List<com.huaweicloud.sdk.ecs.v2.model.ServerTag> tags, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static void deleteServer(String instanceId, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static void stopECSInstance(String instanceId, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static void startEcsInstances(List<String> instances, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static com.huaweicloud.sdk.eip.v2.model.PublicipShowResp getEIPInfo(String eipID, VPC vpc) throws com.huaweicloud.sdk.core.exception.SdkException
com.huaweicloud.sdk.core.exception.SdkException
public static List<com.huaweicloud.sdk.ecs.v2.model.ServerDetail> getAllOfServerList(VPC vpc)
public static List<com.huaweicloud.sdk.ecs.v2.model.ServerDetail> getAllOfServerByTmp(ECSTemplate template)
public static boolean isTerminated(String state)
public static String genSlaveNamePrefix(String description, String flavorId, String imageID)
Copyright © 2016–2021. All rights reserved.