Skip to Main Content
feedback.equinixmetal.com
Status Shipped
Created by Ben White
Created on Mar 14, 2023

Instance State in Metadata API

This idea was imported from Canny. Originally created by: Daniel Lotterman. The current owner is: Sal Carrasco.

It would be useful if the Metadata API for an instance could return the running state for that instance as part of it's response. As in if I am a Metal instance, I want to be able to get "state": "powered_on" or "state": "provisioning" from my Metadata API. This would let automation pivot based on the platform state of the box, as in "If I am still in provisioning state in the Metal platform, wait until state is powered_on before performing proceeding. Exposing it through metadata dramatically simplifies the act of getting the answer needed as opposed to querying it via the public API
  • Admin
    Ben White
    Reply
    |
    Jun 23, 2023

    This comment was imported from Canny. Originally created by: Sal Carrasco with 0 likes.

    hi everyone. Users can now view device "state" via the Instance Metadata API! Here's an example query and response: ~# curl -s https://metadata.platformequinix.com/metadata | jq .state "active" For more information please refer to our docs: https://deploy.equinix.com/developers/docs/metal/server-metadata/metadata/#state

  • +7