public class AlibabaEcsClient extends Object
| Constructor and Description |
|---|
AlibabaEcsClient(com.aliyuncs.auth.AlibabaCloudCredentials credentials,
String regionNo) |
| Modifier and Type | Method and Description |
|---|---|
String |
allocatePublicIp(String instanceId) |
boolean |
authorizeSecurityGroup(String protocol,
String portRange,
String securityGroupId,
String sourceCidrIp) |
String |
createSecurityGroup(String vpcId) |
String |
createVpc(String cidrBlock) |
String |
createVsw(String zone,
String vpc,
String cidrBlock) |
boolean |
deleteVpc(String vpcId) |
boolean |
deleteVsw(String vSwitchId) |
List<String> |
describeAvailableZones() |
List<com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image> |
describeImages(com.aliyuncs.ecs.model.v20140526.DescribeImagesRequest request) |
List<com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance> |
describeInstances(List<String> instanceIds) |
List<String> |
describeInstanceTypes(String zone,
int core,
float memInGb) |
List<com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair> |
describeKeyPairs(String keyPairName,
String pfp) |
List<com.aliyuncs.ecs.model.v20140526.DescribeRegionsResponse.Region> |
describeRegions() |
List<com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupsResponse.SecurityGroup> |
describeSecurityGroups(String vpc) |
com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse.Vpc |
describeVpc(String vpcId) |
List<com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse.Vpc> |
describeVpcs() |
List<com.aliyuncs.ecs.model.v20140526.DescribeVSwitchesResponse.VSwitch> |
describeVsws(String zone,
String vpc) |
List<com.aliyuncs.ecs.model.v20140526.DescribeZonesResponse.Zone> |
describeZones()
Deprecated.
|
List<String> |
runInstances(com.aliyuncs.ecs.model.v20140526.RunInstancesRequest request) |
void |
stopIntance(String instanceId) |
void |
terminateIntance(String instanceId) |
public AlibabaEcsClient(com.aliyuncs.auth.AlibabaCloudCredentials credentials,
String regionNo)
public List<com.aliyuncs.ecs.model.v20140526.DescribeRegionsResponse.Region> describeRegions()
public List<com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse.Image> describeImages(com.aliyuncs.ecs.model.v20140526.DescribeImagesRequest request)
public List<com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse.Vpc> describeVpcs()
public com.aliyuncs.ecs.model.v20140526.DescribeVpcsResponse.Vpc describeVpc(String vpcId)
public boolean deleteVpc(String vpcId)
public List<com.aliyuncs.ecs.model.v20140526.DescribeSecurityGroupsResponse.SecurityGroup> describeSecurityGroups(String vpc)
public boolean authorizeSecurityGroup(String protocol, String portRange, String securityGroupId, String sourceCidrIp)
@Deprecated public List<com.aliyuncs.ecs.model.v20140526.DescribeZonesResponse.Zone> describeZones()
public List<com.aliyuncs.ecs.model.v20140526.DescribeVSwitchesResponse.VSwitch> describeVsws(String zone, String vpc)
public boolean deleteVsw(String vSwitchId)
public List<String> describeInstanceTypes(String zone, int core, float memInGb)
public List<com.aliyuncs.ecs.model.v20140526.DescribeKeyPairsResponse.KeyPair> describeKeyPairs(@Nullable String keyPairName, @Nullable String pfp)
public List<com.aliyuncs.ecs.model.v20140526.DescribeInstancesResponse.Instance> describeInstances(List<String> instanceIds)
public void stopIntance(String instanceId)
public void terminateIntance(String instanceId)
instanceId - public List<String> runInstances(com.aliyuncs.ecs.model.v20140526.RunInstancesRequest request)
Copyright © 2016–2020. All rights reserved.