# AzureApiManagementApiResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementApiResource.cs)
- Inherits: `Resource`
- Implements: `IResource`, `IResourceWithParent`, `IResourceWithParent<AzureApiManagementResource>`

Represents an API hosted by an Azure API Management service.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureApiManagementApiResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureApiManagementResource>
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.ApiManagement/AzureApiManagementApiResource`

## Constructors

- [AzureApiManagementApiResource(string, string, string, string, bool, IComputeResource, AzureApiManagementResource)](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/constructors.md#constructor-string-string-string-string-bool-icomputeresource-azureapimanagementresource) -- Initializes an API that routes to a compute resource.

## Properties

- [ApiName](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/properties.md#apiname) : `string` `get` -- Gets the physical API name in API Management.
- [DisplayName](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/properties.md#displayname) : `string` `get` -- Gets the API display name.
- [Parent](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/properties.md#parent) : [AzureApiManagementResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementresource.md) `get` -- Gets the parent API Management service.
- [Path](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/properties.md#path) : `string` `get` -- Gets the public gateway path for the API.
- [SubscriptionRequired](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource/properties.md#subscriptionrequired) : `bool` `get` -- Gets whether callers must provide an API Management subscription key.
