azure-mgmt-apimanagement
Microsoft Azure API Management Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK client library for programmatically managing Azure API Management services from Python. It wraps the Azure REST API and exposes operations for creating, updating, and deleting APIs, backends, policies, products, groups, and related resources. The library also includes workspace-scoped management, allowing multi-tenant API governance within a single API Management instance.
The package is built on azure-mgmt-core and azure-common for consistent Azure SDK patterns. It requires Python 3.8+ and uses Azure Active Directory token authentication via environment variables. Version 5.0.0 significantly expanded the API surface with workspace operations and new policy management features, making it suitable for enterprises managing complex API portfolios.
Use it for:
- Automate API lifecycle management—create, version, and retire APIs across environments without manual portal access.
- Enforce API governance policies programmatically—apply rate limits, authentication, and transformation rules to APIs.
- Manage multi-tenant API platforms using workspaces to isolate API configurations for different teams or customers.
- Integrate API Management operations into CI/CD pipelines for infrastructure-as-code API deployments.
- Bulk configure backends, certificates, and diagnostics across many APIs in a single management script.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python client library for managing Azure API Management services, including APIs, backends, policies, products, and workspace configurations through the Azure REST API.
Yes. This is the official Microsoft SDK for Azure API Management, actively maintained, MIT-licensed, and widely used (top 5000 PyPI packages). Install it if you need to manage Azure API Management resources from Python code; it has low friction and no known vulnerabilities. Not needed if you only use the Azure Portal or CLI.
Install
azure-mgmt-apimanagement on PyPI
pip
pip install azure-mgmt-apimanagementuv
uv add azure-mgmt-apimanagementpoetry
poetry add azure-mgmt-apimanagementInstalling azure-mgmt-apimanagement
Before you install
Low install friction with a pure Python wheel. Actively maintained with recent releases; last commit 2026-08-14. Supports Python 3.8+ across current versions.
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install azure-mgmt-apimanagement
from azure.mgmt.apimanagement import ApiManagementClient
from azure.common import AzureHttpAuthentication
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ApiManagementClient(credential, subscription_id=sub_id)
Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID for authentication.
Verify before relying
- Whether workspace-scoped operations (workspace_api, workspace_product, etc.) are available in all Azure regions.
- Performance characteristics and rate limits for bulk operations on large API inventories.
- Backward compatibility guarantees between major versions given the 5.0.0 release added many new operation groups.
- How to properly instantiate credential object for authentication with the client.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — isodate, typing-extensions, azure-common, azure-mgmt-core |
| Maintenance | actively maintained — 479 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,763,297/month — #2,042 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_apimanagement-5.0.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
azure-mgmt-servicebusManages Azure Service Bus resources…
permissive · top 5,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-costmanagementProvides Python bindings to the Azure Cost…
permissive · top 5,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-networkManages Azure network resources (virtual…
permissive · top 5,000 on PyPI
azure-mgmt-containerserviceProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI
azure-mgmt-botserviceProvides Python bindings to manage Azure Bot…
permissive · top 5,000 on PyPI
azure-mgmt-computeProvides Python bindings to manage Azure…
permissive · top 5,000 on PyPI
azure-mgmt-cdnManages Azure CDN resources (profiles,…
permissive · top 5,000 on PyPI
azure-mgmt-appplatformManages Azure App Platform (Spring Apps)…
permissive · top 15,000 on PyPI