Give AlbumentationsX a star on GitHub — it powers this leaderboard

Star on GitHub

azure-mgmt-apimanagement

Microsoft Azure API Management Client Library for Python

Rank: #1578Downloads: 5,941,159 (30 days)Stars: 5,497Forks: 3,248

Description

Microsoft Azure SDK for Python

This is the Microsoft Azure API Management Client Library. This package has been tested with Python 3.8+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-apimanagement
pip install azure-identity

Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.apimanagement import ApiManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ApiManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

5.0.0 (2025-04-21)

Features Added

  • Client ApiManagementClient added operation group api_gateway
  • Client ApiManagementClient added operation group api_management_gateway_skus
  • Client ApiManagementClient added operation group all_policies
  • Client ApiManagementClient added operation group api_gateway_config_connection
  • Client ApiManagementClient added operation group policy_restriction
  • Client ApiManagementClient added operation group policy_restriction_validations
  • Client ApiManagementClient added operation group product_api_link
  • Client ApiManagementClient added operation group product_group_link
  • Client ApiManagementClient added operation group tag_api_link
  • Client ApiManagementClient added operation group tag_operation_link
  • Client ApiManagementClient added operation group tag_product_link
  • Client ApiManagementClient added operation group workspace_backend
  • Client ApiManagementClient added operation group workspace_certificate
  • Client ApiManagementClient added operation group workspace_diagnostic
  • Client ApiManagementClient added operation group workspace_api_diagnostic
  • Client ApiManagementClient added operation group api_management_workspace_links
  • Client ApiManagementClient added operation group api_management_workspace_link
  • Client ApiManagementClient added operation group workspace_logger
  • Client ApiManagementClient added operation group workspace
  • Client ApiManagementClient added operation group workspace_policy
  • Client ApiManagementClient added operation group workspace_named_value
  • Client ApiManagementClient added operation group workspace_global_schema
  • Client ApiManagementClient added operation group workspace_notification
  • Client ApiManagementClient added operation group workspace_notification_recipient_user
  • Client ApiManagementClient added operation group workspace_notification_recipient_email
  • Client ApiManagementClient added operation group workspace_policy_fragment
  • Client ApiManagementClient added operation group workspace_group
  • Client ApiManagementClient added operation group workspace_group_user
  • Client ApiManagementClient added operation group workspace_subscription
  • Client ApiManagementClient added operation group workspace_api_version_set
  • Client ApiManagementClient added operation group workspace_api
  • Client ApiManagementClient added operation group workspace_api_revision
  • Client ApiManagementClient added operation group workspace_api_release
  • Client ApiManagementClient added operation group workspace_api_operation
  • Client ApiManagementClient added operation group workspace_api_operation_policy
  • Client ApiManagementClient added operation group workspace_api_policy
  • Client ApiManagementClient added operation group workspace_api_schema
  • Client ApiManagementClient added operation group workspace_product
  • Client ApiManagementClient added operation group workspace_product_api_link
  • Client ApiManagementClient added operation group workspace_product_group_link
  • Client ApiManagementClient added operation group workspace_product_policy
  • Client ApiManagementClient added operation group workspace_tag
  • Client ApiManagementClient added operation group workspace_tag_api_link
  • Client ApiManagementClient added operation group workspace_tag_operation_link
  • Client ApiManagementClient added operation group workspace_tag_product_link
  • Client ApiManagementClient added operation group workspace_api_export
  • Client ApiManagementClient added operation group operation_status
  • Client ApiManagementClient added operation group operations_results
  • Model ApiContract added property provisioning_state
  • Model ApiContractProperties added property provisioning_state
  • Model ApiCreateOrUpdateParameter added property provisioning_state
  • Model ApiCreateOrUpdateProperties added property provisioning_state
  • Model ApiManagementServiceBaseProperties added property configuration_api
  • Model ApiManagementServiceBaseProperties added property legacy_portal_status
  • Model ApiManagementServiceBaseProperties added property developer_portal_status
  • Model ApiManagementServiceProperties added property configuration_api
  • Model ApiManagementServiceProperties added property legacy_portal_status
  • Model ApiManagementServiceProperties added property developer_portal_status
  • Model ApiManagementServiceResource added property configuration_api
  • Model ApiManagementServiceResource added property legacy_portal_status
  • Model ApiManagementServiceResource added property developer_portal_status
  • Model ApiManagementServiceUpdateParameters added property configuration_api
  • Model ApiManagementServiceUpdateParameters added property legacy_portal_status
  • Model ApiManagementServiceUpdateParameters added property developer_portal_status
  • Model ApiManagementServiceUpdateProperties added property configuration_api
  • Model ApiManagementServiceUpdateProperties added property legacy_portal_status
  • Model ApiManagementServiceUpdateProperties added property developer_portal_status
  • Enum ApiType added member GRPC
  • Enum ApiType added member ODATA
  • Model AuthorizationAccessPolicyContract added property app_ids
  • Model BackendBaseParameters added property circuit_breaker
  • Model BackendBaseParameters added property pool
  • Model BackendBaseParameters added property type
  • Model BackendContract added property circuit_breaker
  • Model BackendContract added property pool
  • Model BackendContract added property type_properties_type
  • Model BackendContractProperties added property circuit_breaker
  • Model BackendContractProperties added property pool
  • Model BackendContractProperties added property type
  • Model BackendUpdateParameterProperties added property circuit_breaker
  • Model BackendUpdateParameterProperties added property pool
  • Model BackendUpdateParameterProperties added property type
  • Model BackendUpdateParameters added property circuit_breaker
  • Model BackendUpdateParameters added property pool
  • Model BackendUpdateParameters added property type
  • Enum ContentFormat added member GRPC
  • Enum ContentFormat added member GRPC_LINK
  • Enum ContentFormat added member ODATA
  • Enum ContentFormat added member ODATA_LINK
  • Model ErrorResponse added property error
  • Model GlobalSchemaContract added property provisioning_state
  • Enum HostnameType added member CONFIGURATION_API
  • Model NamedValueContract added property provisioning_state
  • Model NamedValueContractProperties added property provisioning_state
  • Enum PlatformVersion added member STV2_1
  • Model PolicyFragmentContract added property provisioning_state
  • Model PortalRevisionContract added property provisioning_state
  • Model SchemaContract added property provisioning_state
  • Enum SkuType added member BASIC_V2
  • Enum SkuType added member STANDARD_V2
  • Enum SoapApiType added member G_RPC
  • Enum SoapApiType added member O_DATA
  • Added model AllPoliciesCollection
  • Added model AllPoliciesContract
  • Added enum ApiGatewaySkuType
  • Added model ApiManagementGatewayBaseProperties
  • Added model ApiManagementGatewayConfigConnectionListResult
  • Added model ApiManagementGatewayConfigConnectionResource
  • Added model ApiManagementGatewayListResult
  • Added model ApiManagementGatewayProperties
  • Added model ApiManagementGatewayResource
  • Added model ApiManagementGatewaySkuProperties
  • Added model `ApiManagementGatewaySkuPropertiesF