Server Data
    • PDF

    Server Data

    • PDF

    Article Summary

    Can be used in a VPC environment.

    Summary

    Search data regarding the server instance.

    Request

    Call pathDescription
    /{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?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.