# AzureApiManagementSubscriptionOptions

- 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/AzureApiManagementSubscriptionOptions.cs)

Configures an Azure API Management subscription.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureApiManagementSubscriptionOptions
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [AzureApiManagementSubscriptionOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionoptions/constructors.md#constructor)

## Properties

- [AllowTracing](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionoptions/properties.md#allowtracing) : `bool` `get; set` -- Gets or sets whether tracing is allowed for the subscription.
- [State](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionoptions/properties.md#state) : [AzureApiManagementSubscriptionState](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionstate.md) `get; set` -- Gets or sets the subscription state.
