DigitalOcean launches metadata server

    MetadataThe news is too simple to make a complicated eyeliner - now DigitalOcean has Metadata, its own metadata server . What for? For anything, but primarily for managing droplets (virtual servers, in DO terminology).

    Metadata is a service provided for DigitalOcean droplets that allows each server to receive data about it itself (the so-called metadata). As an example of such data, we can mention user data, droplet ID, data center region, and IP address data. In addition to the usual receipt of droplet metadata, Metadata allows users to transfer certain data to droplets when they are created, which CloudInit can use to facilitate the configuration of cloud servers.

    Metadata is currently available for new droplets in the following regions: SGP1, SFO1, LON1, AMS2, AMS3, and NYC3. If the droplet is in one of these regions, and metadata is not available, it is recommended to turn the droplet off and on.

    Full Metadata documentation is available on the DigitalOcean Developer Portal .

    When creating a droplet, metadata is set in the droplet control panel, in the "Available Settings" section, in the "user data" field:


    If you create droplets using the DigitalOcean API, metadata can be passed as a user_data parameter in a POST request for creating a server:

    curl -X POST "" \
    "'"$(cat ~/user-data.yaml)"'",
          "ssh_keys":[  ]}' \
          -H "Authorization: Bearer $TOKEN" \
          -H "Content-Type: application/json"

    Getting metadata also looks simple: just make an HTTP GET request for a special URL
    . The response will contain data:


    Information is stored hierarchically, so more detailed requests, such as, will allow you to get the data specified in the "user data" field, or, accordingly, the public IPv4 address of the droplet.

    Only registered users can participate in the survey. Please come in.

    Are you interested in the ability to work with server metadata?

    • 18.6% I create a server automatically 52
    • 58.4% I do not create a server automatically 163
    • 21.5% I need metadata servers 60
    • 47.3% I do not need metadata servers 132

    Also popular now: