# withInboundPolicy

- Module: [Aspire.Hosting.Azure.ApiManagement](/reference/api/typescript/aspire.hosting.azure.apimanagement.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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

## Definition

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

## Parameters

- `policyXml` (`string`)

## Returns

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

## Applies to

- [AzureApiManagementApiResource](/reference/api/typescript/aspire.hosting.azure.apimanagement/azureapimanagementapiresource.md)
