Server Data
- Print
- PDF
Server Data
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Can be used in a VPC environment.
Summary
Search data regarding the server instance.
Request
Call path | Description |
---|---|
/{version}/meta-data/ | Search list of the server instance-related data provided in the corresponding version. |
/{version}/meta-data/{field-1}/{field-2}/.. | If any subsections exist among the data provided, you can search the sub paths. List of indices are provided as a subsection to the list type data, and you can use the index value as a sub path. |
Example
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/
serverInstanceNo
serverName
serverDescription
cpuCount
memorySize
platformType
loginKeyName
publicIpInstanceNo
publicIp
serverInstanceStatus
serverInstanceOperation
serverInstanceStatusName
createDate
uptime
serverImageProductCode
serverProductCode
isProtectServerTermination
zoneCode
regionCode
vpcNo
subnetNo
networkInterfaceNoList
initScriptNo
serverInstanceType
baseBlockStorageDiskType
baseBlockStorageDiskDetailType
placementGroupNo
placementGroupName
iam
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/serverName/
test-server
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/serverInstanceStatus/
code
codeName
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/serverInstanceStatus/code
RUN
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/networkInterfaceNoList/
0
[root@test-server ~]# curl http://169.254.169.254/latest/meta-data/networkInterfaceNoList/0
***531
[root@test-server ~]#
Was this article helpful?