- Print
- PDF
Metadata Overview
- Print
- PDF
Can be used in a VPC environment.
Summary
This provides data regarding server instances that can be used for managing the server instances being executed.
You can also search information about the role assigned to the server instance and get a temporarily issued access key (STS) for the corresponding role.
The result of calling each path could be a list of subsections by classifying them with line separators (\n),
or could be the resulting information corresponding to the corresponding path.
All users who can directly access the server instance and any software running on the server instance can access the metadata. So it requires attention to role settings.
404 - Not Found HTTP
error code is returned if there is no resource.
This is accomplished through the call of the HTTP method.
Common settings
API URL
GET
http://169.254.169.254/
Error response
[root@test-server ~]# curl -i http://169.254.169.254/nonexistent-path
HTTP/1.1 404 404
Date: Mon, 21 Dec 2020 23:19:37 GMT
Server: Apache
Referrer-Policy: unsafe-url
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain;charset=UTF-8
Path Not found.
[root@test-server ~]#
Category
Call path | Description |
---|---|
GET / | Search a list of available versions. |
GET /{version}/meta-data/ | Search information regarding the server instance. |
GET /{version}/meta-data/iam | Search information regarding the role assigned to the server instance. |