Management Groups
azure · Cloud
The Azure Management Groups API enables consolidation of multiple subscriptions/resources into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources.
Authentication
Sample Requests
List management groups for the authenticated user.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups?$skiptoken=example&api-version=v1"
import requests
params = {
"$skiptoken": "example",
"api-version": "v1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups');
url.searchParams.set('$skiptoken', 'example');
url.searchParams.set('api-version', 'v1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups")
q := baseURL.Query()
q.Set("$skiptoken", "example")
q.Set("api-version", "v1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups")
uri.query = URI.encode_www_form({
"$skiptoken" => "example",
"api-version" => "v1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups?" . http_build_query([
"$skiptoken" => "example",
"api-version" => "v1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists all of the available management REST API operations.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations?api-version=v1"
import requests
params = {
"api-version": "v1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations');
url.searchParams.set('api-version', 'v1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations")
q := baseURL.Query()
q.Set("api-version", "v1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations")
uri.query = URI.encode_www_form({
"api-version" => "v1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/operations?" . http_build_query([
"api-version" => "v1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get the details of the management group.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}?$expand=children&$recurse=true&api-version=v1"import requests
params = {
"$expand": "children",
"$recurse": "true",
"api-version": "v1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}');
url.searchParams.set('$expand', 'children');
url.searchParams.set('$recurse', 'true');
url.searchParams.set('api-version', 'v1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}")
q := baseURL.Query()
q.Set("$expand", "children")
q.Set("$recurse", "true")
q.Set("api-version", "v1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}")
uri.query = URI.encode_www_form({
"$expand" => "children",
"$recurse" => "true",
"api-version" => "v1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/azure.com/resources-management/2017-08-31-preview/providers/Microsoft.Management/managementGroups/{groupId}?" . http_build_query([
"$expand" => "children",
"$recurse" => "true",
"api-version" => "v1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Management Groups?
Management Groups is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Management Groups is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?