Microsoft Azure

Azure Imds

The Azure Instance Metadata Client

Developer tools#openapi#cloud

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The Azure Instance Metadata Client

Endpoints 5

Get token

  • GETIdentity_GetToken/identity/oauth2/token?resource=string&api-version=string&client_id=string&object_id=string&msi_res_id=string&authority=string&bypass_cache=trueGet a Token from Azure AD

Get metadata information

  • GETIdentity_GetInfo/identity/info?api-version=stringGet information about AAD Metadata
  • GETGetVersions/versionsGet supported API versions.
  • GETInstances_GetMetadata/instance?api-version=stringGet Instance Metadata for the Virtual Machine.
  • GETAttested_GetDocument/attested/document?api-version=string&nonce=stringGet Attested Data for the Virtual Machine.

API details

Base URL
https://169.254.169.254/metadata
Authentication
HTTP Basic authentication (username and password)
Operations
5 operations on 5 pathsGET 5
Main resources
Get metadata information 1Get token 1
Response formats
application/json
Description format
Swagger 2.0, API version 2023-07-01

How to test the Azure Imds in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Imds collection, without the publisher's secrets.
  3. Add your credentialsThis API uses HTTP Basic authentication (username and password). Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Identity_GetToken” (GET /identity/oauth2/token?resource=string&api-version=string&client_id=string&object_id=string&msi_res_id=string&authority=string&bypass_cache=true), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Imds?

The Azure Instance Metadata Client It is listed under Developer tools and has 5 endpoints.

Who publishes the Azure Imds?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Imds?

Requests go to https://169.254.169.254/metadata. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Imds?

With HTTP Basic authentication (username and password).

How many endpoints does the Azure Imds have?

5 operations on 5 paths (5 GET). The largest groups are Get metadata information, Get token.

Is forking the Azure Imds free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.