# AzureApiManagementOperationResource Constructors

- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Type: [AzureApiManagementOperationResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an operation in an Azure API Management API.

<a id="constructor"></a>
<a id="constructor-string-string-string-string-string-azureapimanagementapiresource"></a>

## AzureApiManagementOperationResource(string, string, string, string, string, AzureApiManagementApiResource)

- Name: `Constructor(string, string, string, string, string, AzureApiManagementApiResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementOperationResource.cs#L25-L52)

Represents an operation in an Azure API Management API.

```csharp
public class AzureApiManagementOperationResource
{
    public AzureApiManagementOperationResource(
        string name,
        string operationName,
        string method,
        string urlTemplate,
        string displayName,
        AzureApiManagementApiResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the Aspire resource.
- `operationName` (`string`)
  The physical operation name in API Management.
- `method` (`string`)
  The HTTP method.
- `urlTemplate` (`string`)
  The URL template relative to the API path.
- `displayName` (`string`)
  The operation display name.
- `parent` ([AzureApiManagementApiResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementapiresource.md))
  The parent API.
