Name | Description | Version |
instance-id | Instance ID | 1.0 |
instance-name | Instance name | 1.0 |
uuid | Instance ID | 1.0 |
local-ipv4 | Instance private IP address | 1.0 |
public-ipv4 | Instance public IP address | 1.0 |
mac | MAC address of the instance's eth0 device | 1.0 |
placement/region | Instance region | Updated on September 19, 2017 |
placement/zone | Instance availability zone | Updated on September 19, 2017 |
network/interfaces/macs/${mac}/mac | MAC address of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/primary-local-ipv4 | Primary private IP of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/public-ipv4s | Public IP address of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/vpc-id | VPC ID of the instance’s network interface | Updated on September 19, 2017 |
network/interfaces/macs/${mac}/subnet-id | Subnet ID of the instance’s network interface | Updated on September 19, 2017 |
network/interfaces/macs/${mac}/local-ipv4s/${local-ipv4}/gateway | Gateway address of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/local-ipv4s/${local-ipv4}/local-ipv4 | Private IP address of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/local-ipv4s/${local-ipv4}/public-ipv4 | Public IP address of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/local-ipv4s/${local-ipv4}/public-ipv4-mode | Public network mode of the instance’s network interface | 1.0 |
network/interfaces/macs/${mac}/local-ipv4s/${local-ipv4}/subnet-mask | Subnet mask of the instance’s network interface | 1.0 |
payment/charge-type | Instance billing plan | Updated on September 19, 2017 |
payment/create-time | Instance creation time | Updated on September 19, 2017 |
payment/termination-time | Instance termination time | Updated on September 19, 2017 |
app-id | AppID of the user to which the instance belongs | Updated on September 19, 2017 |
as-group-id | Auto scaling group ID of the instance | Updated on September 19, 2017 |
spot/termination-time | Spot instance termination time | Updated on September 19, 2017 |
instance/instance-type | Instance type | Updated on September 19, 2017 |
instance/image-id | Instance image ID | Updated on September 19, 2017 |
instance/security-group | Information of the security group bound to the instance | Updated on September 19, 2017 |
instance/bandwidth-limit-egress | Instance private network outbound bandwidth limit, in Kbit/s | Updated on 9/29/2019 |
instance/bandwidth-limit-ingress | Instance private network inbound bandwidth limit, in Kbit/s | Updated on 9/29/2019 |
cam/security-credentials/${role-name} | Temporary credential generated by the CAM role policy, which can be obtained only when the instance is associated with the CAM role. Change `${role-name}` to the actual CAM role name; otherwise, `404` will be returned | Updated on 12/11/2019 |
volumes | Instance storage | 1.0 |
${mac}
and ${local-ipv4}
in the above table indicate the MAC address and private IP address of the network interface specified for the instance, respectively.http://metadata.tencentyun.com/latest/meta-data/
curl http://metadata.tencentyun.com/latest/meta-data/
[qcloud-user]# curl http://metadata.tencentyun.com/1.09/19/2017latestmeta-data
/
represent directories and other lines represent the accessed data. For the description of accessed data, see the Overview section described above.[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/instance-idinstance-namelocal-ipv4macnetwork/placement/public-ipv4uuid
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/placement/regionap-guangzhou[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/placement/zoneap-guangzhou-3
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/local-ipv410.104.13.59
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/public-ipv4139.199.11.29
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/instance-idins-3g445roi
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/uuidcfac763a-7094-446b-a8a9-b995e638471a
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/mac52:54:00:BF:B3:51
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/macvpc-idsubnet-idowner-idprimary-local-ipv4public-ipv4slocal-ipv4s/
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/vpc-idvpc-ja82n9op[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/subnet-idsubnet-ja82n9op
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59/
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59gatewaylocal-ipv4public-ipv4public-ipv4-modesubnet-mask
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59/gateway10.15.1.1
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59/public-ipv4-modeNAT
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59/public-ipv4139.199.11.29
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/network/interfaces/macs/52:54:00:BF:B3:51/local-ipv4s/10.104.13.59/subnet-mask255.255.192.0
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/payment/charge-typePOSTPAID_BY_HOUR
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/payment/create-time2018-09-18 11:27:33
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/spot/termination-time2018-08-18 12:05:33
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/app-id123456789
CVMas
.[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/cam/security-credentials/CVMas{TmpSecretId": "************************************","TmpSecretKey": "********************************","ExpiredTime": 1615590047,"Expiration": "2021-03-12T23:00:47Z","Token": "******","Code": "Success"}
[qcloud-user]# curl http://metadata.tencentyun.com/latest/meta-data/volumesdisk-xxxxxxxx/
[qcloud-user]# curl http://metadata.tencentyun.com/latest/user-data179, client, shanghai
Was this page helpful?