# AzureApiManagementOperationResource.WithInboundPolicy

- Module: [Aspire.Hosting.Azure.ApiManagement](/reference/api/go/aspire.hosting.azure.apimanagement.md)
- Defined on: [AzureApiManagementOperationResource](/reference/api/go/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

```go
type AzureApiManagementOperationResource interface {
    // ... omitted for brevity
    WithInboundPolicy(policyXml string) AzureApiManagementOperationResource
}
```

## Signature

```go
WithInboundPolicy(policyXml string) AzureApiManagementOperationResource
```

## Parameters

- `policyXml` (`string`) -- One or more well-formed APIM policy elements without a `policies` envelope.

## Returns

[`AzureApiManagementOperationResource`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

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