Cloud Metadata Service Documentation

Welcome to the official documentation for the Cloud Metadata Service. This service provides metadata about your cloud instances, including instance ID, IP addresses, and user data.

Getting Started

To start using the Cloud Metadata Service, make HTTP requests to the following endpoints:

GET /latest/meta-data/instance-id
GET /latest/meta-data/public-ipv4
GET /latest/user-data

API Reference

Instance Metadata

Retrieve metadata about your cloud instance.

GET /latest/meta-data/instance-id

Response:

i-0abcdef1234567890

Public IP Address

Retrieve the public IPv4 address of your instance.

GET /latest/meta-data/public-ipv4

Response:

54.123.45.67

User Data

Retrieve user data passed to the instance during launch.

GET /latest/user-data

Response:

#!/bin/bash
echo "Hello, this is user data!"

Troubleshooting

Error: 404 - Not Found

If you receive a 404 error, ensure that you are using the correct endpoint. For example:

GET /latest/meta-data/instance-id

Error: 503 - Service Unavailable

If the service is unavailable, please try again later. If the issue persists, contact support.

Support

For additional help, please contact our support team at [email protected].