# AzureApiManagementOperationResource.withInboundPolicy

- Module: [Aspire.Hosting.Azure.ApiManagement](/reference/api/typescript/aspire.hosting.azure.apimanagement.md)
- Defined on: [AzureApiManagementOperationResource](/reference/api/typescript/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Appends an XML policy statement to the operation-level inbound policy section.

## Definition

```typescript
interface AzureApiManagementOperationResource {
  // ... omitted for brevity
  withInboundPolicy(policyXml: string): AzureApiManagementOperationResource;
}
```

## Signature

```typescript
withInboundPolicy(policyXml: string): AzureApiManagementOperationResource
```

## Parameters

- `policyXml` (`string`)

## Returns

[AzureApiManagementOperationResource](/reference/api/typescript/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) `builder`

## Defined on

- [AzureApiManagementOperationResource](/reference/api/typescript/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) -- `handle`
