Azure API Management for .NET: Enterprise API Gateway & Lifecycle Management
Azure API Management provides a complete API gateway with rate limiting, authentication, transformation policies, developer portals, and analytics. The management SDK enables programmatic control over API definitions, policies, subscriptions, and products.
What This Skill Does
Provides API definition management, policy creation and updates, subscription key management, product and group administration, backend service configuration, and API versioning and revisions.
Getting Started
dotnet add package Azure.ResourceManager.ApiManagement
Manage APIs programmatically:
using Azure.ResourceManager;
using Azure.ResourceManager.ApiManagement;
ArmClient client = new(new DefaultAzureCredential());
ApiManagementServiceResource apimService = await client
.GetApiManagementServiceResource(resourceId)
.GetAsync();
// List APIs
await foreach (var api in apimService.GetApis())
{
Console.WriteLine($"API: {api.Data.DisplayName}, Path: {api.Data.Path}");
}
Key Features
Policy Management applies transformations, rate limits, and security. Subscription Keys control API access. Products bundle APIs with usage quotas. Versioning manages API evolution. Developer Portal provides self-service API discovery.
When to Use
Use for API gateway infrastructure, rate limiting and quotas, API monetization, developer self-service portals, API versioning, and backend service abstraction.
Source
Maintained by Microsoft. View on GitHub