Repository: jclouds-labs Updated Branches: refs/heads/master a5dbf0065 -> 2c7db7e80
http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/instances-first.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/instances-first.json b/aliyun-ecs/src/test/resources/instances-first.json new file mode 100644 index 0000000..23265a0 --- /dev/null +++ b/aliyun-ecs/src/test/resources/instances-first.json @@ -0,0 +1,960 @@ +{ + "PageNumber": 1, + "TotalCount": 20, + "PageSize": 10, + "RequestId": "D29E9D37-C372-41C2-8E9D-1E5F49042DE4", + "Instances": { + "Instance": [ + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea1", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea2", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea3", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea4", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea5", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea6", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea7", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea8", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea9", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea10", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + } + ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/instances-last.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/instances-last.json b/aliyun-ecs/src/test/resources/instances-last.json new file mode 100644 index 0000000..75df755 --- /dev/null +++ b/aliyun-ecs/src/test/resources/instances-last.json @@ -0,0 +1,960 @@ +{ + "PageNumber": 2, + "TotalCount": 20, + "PageSize": 10, + "RequestId": "D29E9D37-1S72-41C2-8E9D-1E5F49042DE1", + "Instances": { + "Instance": [ + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea11", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea12", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea13", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea14", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea15", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea16", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea17", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea18", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea19", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + }, + { + "InnerIpAddress": { + "IpAddress": [] + }, + "ImageId": "centos_7_04_64_20G_alibase_20180419.vhd", + "InstanceTypeFamily": "ecs.t5", + "VlanId": "", + "NetworkInterfaces": { + "NetworkInterface": [ + { + "MacAddress": "00:16:3e:00:75:cc", + "PrimaryIpAddress": "192.168.0.141", + "NetworkInterfaceId": "eni-gw8d5xjpg9ses2u4jhx3" + } + ] + }, + "InstanceId": "i-gw8d5xjpg9ses2u0tcea20", + "EipAddress": { + "IpAddress": "", + "AllocationId": "", + "InternetChargeType": "" + }, + "InternetMaxBandwidthIn": 0, + "ZoneId": "eu-central-1a", + "InternetChargeType": "PayByTraffic", + "SpotStrategy": "NoSpot", + "StoppedMode": "Not-applicable", + "SerialNumber": "6061c6ea-b7c1-49f0-9fe7-4444377df09a", + "IoOptimized": true, + "Memory": 512, + "Cpu": 1, + "VpcAttributes": { + "NatIpAddress": "", + "PrivateIpAddress": { + "IpAddress": [ + "192.168.0.141" + ] + }, + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + }, + "InternetMaxBandwidthOut": 5, + "DeviceAvailable": true, + "SecurityGroupIds": { + "SecurityGroupId": [ + "sg-gw8a9zlvmuyirwxlwsc1" + ] + }, + "SaleCycle": "", + "SpotPriceLimit": 0.0, + "AutoReleaseTime": "", + "StartTime": "2018-06-25T19:02Z", + "KeyPairName": "jclouds", + "InstanceName": "jclouds", + "Description": "", + "ResourceGroupId": "", + "OSType": "linux", + "OSName": "CentOS 7.4 64[0xe4][0xbd][0x8d]", + "InstanceNetworkType": "vpc", + "PublicIpAddress": { + "IpAddress": [ + "47.254.152.220" + ] + }, + "HostName": "jclouds", + "InstanceType": "ecs.t5-lc2m1.nano", + "CreationTime": "2018-06-25T19:01Z", + "Tags": { + "Tag": [ + { + "TagValue": "aliyun-ecss", + "TagKey": "jclouds_tags" + }, + { + "TagValue": "aliyun-ecss", + "TagKey": "test" + } + ] + }, + "Status": "Running", + "ClusterId": "", + "Recyclable": false, + "RegionId": "eu-central-1", + "GPUSpec": "", + "DedicatedHostAttribute": { + "DedicatedHostId": "", + "DedicatedHostName": "" + }, + "OperationLocks": { + "LockReason": [] + }, + "InstanceChargeType": "PostPaid", + "GPUAmount": 0, + "ExpiredTime": "2099-12-31T15:59Z" + } + ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/logback-test.xml ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/logback-test.xml b/aliyun-ecs/src/test/resources/logback-test.xml new file mode 100644 index 0000000..eecf22d --- /dev/null +++ b/aliyun-ecs/src/test/resources/logback-test.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<configuration scan="false"> + <appender name="FILE" class="ch.qos.logback.core.FileAppender"> + <file>./target/test-data/jclouds.log</file> + <encoder> + <Pattern>%d %-5p [%c] [%thread] %m%n</Pattern> + </encoder> + </appender> + <appender name="WIREFILE" class="ch.qos.logback.core.FileAppender"> + <file>./target/test-data/jclouds-wire.log</file> + <encoder> + <Pattern>%d %-5p [%c] [%thread] %m%n</Pattern> + </encoder> + </appender> + <appender name="COMPUTEFILE" class="ch.qos.logback.core.FileAppender"> + <file>./target/test-data/jclouds-compute.log</file> + <encoder> + <Pattern>%d %-5p [%c] [%thread] %m%n</Pattern> + </encoder> + </appender> + + <logger name="org.jclouds"> + <level value="DEBUG" /> + <appender-ref ref="FILE" /> + </logger> + <logger name="jclouds.compute"> + <level value="DEBUG" /> + <appender-ref ref="COMPUTEFILE" /> + </logger> + <logger name="jclouds.wire"> + <level value="DEBUG" /> + <appender-ref ref="WIREFILE" /> + </logger> + <logger name="jclouds.headers"> + <level value="DEBUG" /> + <appender-ref ref="WIREFILE" /> + </logger> + + <root> + <level value="INFO" /> + </root> +</configuration> http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vpc-create-res.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vpc-create-res.json b/aliyun-ecs/src/test/resources/vpc-create-res.json new file mode 100644 index 0000000..7c17ad3 --- /dev/null +++ b/aliyun-ecs/src/test/resources/vpc-create-res.json @@ -0,0 +1,6 @@ +{ + "RequestId": "461D0C42-D5D1-4009-9B6A-B3D5888A19A9", + "RouteTableId": "vtb-25wm68mnh", + "VRouterId": "vrt-25bezkd03", + "VpcId": "vpc-257gq642n" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vpc-delete-res.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vpc-delete-res.json b/aliyun-ecs/src/test/resources/vpc-delete-res.json new file mode 100644 index 0000000..81b74f1 --- /dev/null +++ b/aliyun-ecs/src/test/resources/vpc-delete-res.json @@ -0,0 +1,3 @@ +{ + "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vpcs-first.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vpcs-first.json b/aliyun-ecs/src/test/resources/vpcs-first.json new file mode 100644 index 0000000..9d229a0 --- /dev/null +++ b/aliyun-ecs/src/test/resources/vpcs-first.json @@ -0,0 +1,29 @@ +{ + "PageNumber": 1, + "TotalCount": 2, + "Vpcs": { + "Vpc": [ + { + "CreationTime": "2018-06-19T12:43:22Z", + "CidrBlock": "192.168.0.0/16", + "VpcName": "default", + "Status": "Available", + "Description": "", + "VSwitchIds": { + "VSwitchId": [ + "vsw-gw8c79bsp4ezbe34ij3w8" + ] + }, + "IsDefault": false, + "UserCidrs": { + "UserCidr": [] + }, + "RegionId": "eu-central-1", + "VRouterId": "vrt-gw8rs2qwhlasfwtqozz3q", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + } + ] + }, + "PageSize": 1, + "RequestId": "F237893B-BC7A-4A3D-B952-6795D6590C4B" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vpcs-last.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vpcs-last.json b/aliyun-ecs/src/test/resources/vpcs-last.json new file mode 100644 index 0000000..cb377ac --- /dev/null +++ b/aliyun-ecs/src/test/resources/vpcs-last.json @@ -0,0 +1,29 @@ +{ + "PageNumber": 2, + "TotalCount": 2, + "Vpcs": { + "Vpc": [ + { + "CreationTime": "2018-06-19T12:43:23Z", + "CidrBlock": "192.168.1.0/16", + "VpcName": "test", + "Status": "Available", + "Description": "", + "VSwitchIds": { + "VSwitchId": [ + "vsw-gw8c79bsp4ezbe34ij3w8" + ] + }, + "IsDefault": false, + "UserCidrs": { + "UserCidr": [] + }, + "RegionId": "eu-central-1", + "VRouterId": "vrt-gw8rs2qwhlasfwtqozz3a", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhe" + } + ] + }, + "PageSize": 1, + "RequestId": "F237893B-BC7A-4A3D-B952-6795D6590C4A" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vswitch-create-res.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vswitch-create-res.json b/aliyun-ecs/src/test/resources/vswitch-create-res.json new file mode 100644 index 0000000..759faca --- /dev/null +++ b/aliyun-ecs/src/test/resources/vswitch-create-res.json @@ -0,0 +1,4 @@ +{ + "RequestId": "861E6630-AEC0-4B2D-B214-6CB5E44B7F04", + "VSwitchId": "vsw-25naue4gz" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vswitch-delete-res.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vswitch-delete-res.json b/aliyun-ecs/src/test/resources/vswitch-delete-res.json new file mode 100644 index 0000000..971156c --- /dev/null +++ b/aliyun-ecs/src/test/resources/vswitch-delete-res.json @@ -0,0 +1,3 @@ +{ + "RequestId": "AF083E3D-7E29-4B77-A937-1F129802D5F3" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vswitches-first.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vswitches-first.json b/aliyun-ecs/src/test/resources/vswitches-first.json new file mode 100644 index 0000000..3250ff0 --- /dev/null +++ b/aliyun-ecs/src/test/resources/vswitches-first.json @@ -0,0 +1,22 @@ +{ + "PageNumber": 1, + "VSwitches": { + "VSwitch": [ + { + "CreationTime": "2018-07-17T09:38:54Z", + "CidrBlock": "172.16.1.0/24", + "Status": "Available", + "Description": "", + "IsDefault": false, + "AvailableIpAddressCount": 252, + "VSwitchName": "jclouds-vswitch", + "ZoneId": "eu-central-1a", + "VSwitchId": "vsw-gw8rg87kqcw1kh2qms0pj", + "VpcId": "vpc-gw8myavcsj64kfpp92kd0" + } + ] + }, + "TotalCount": 2, + "PageSize": 1, + "RequestId": "58A5DDE8-DFAE-42E8-AAC8-61D385CCA8A0" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/2c7db7e8/aliyun-ecs/src/test/resources/vswitches-last.json ---------------------------------------------------------------------- diff --git a/aliyun-ecs/src/test/resources/vswitches-last.json b/aliyun-ecs/src/test/resources/vswitches-last.json new file mode 100644 index 0000000..14258ed --- /dev/null +++ b/aliyun-ecs/src/test/resources/vswitches-last.json @@ -0,0 +1,22 @@ +{ + "PageNumber": 2, + "VSwitches": { + "VSwitch": [ + { + "CreationTime": "2018-06-19T12:44:58Z", + "CidrBlock": "192.168.0.0/24", + "Status": "Available", + "Description": "", + "IsDefault": false, + "AvailableIpAddressCount": 252, + "VSwitchName": "default-fra1-a", + "ZoneId": "eu-central-1a", + "VSwitchId": "vsw-gw8c79bsp4ezbe34ij3w8", + "VpcId": "vpc-gw8vbir5z9j9lncyrjjhx" + } + ] + }, + "TotalCount": 2, + "PageSize": 1, + "RequestId": "58A5DDE8-DFAE-42E8-AAC8-61D385CCA8A1" +} \ No newline at end of file
