# AzureApiManagementResource.AddApiWithoutTarget

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

Adds an API whose backend is configured separately.

## Remarks

Configure the API backend with `WithBackend`
or `WithBackend`.

## Definition

```go
type AzureApiManagementResource interface {
    // ... omitted for brevity
    AddApiWithoutTarget(
        name string,
        path string,
        options ...*AddApiWithoutTargetOptions,
    ) AzureApiManagementApiResource
}
```

## Signature

```go
AddApiWithoutTarget(
    name string,
    path string,
    options ...*AddApiWithoutTargetOptions,
) AzureApiManagementApiResource
```

## Parameters

- `name` (`string`) -- The globally unique Aspire resource name and default physical API name.
- `path` (`string`) -- The public path beneath the API Management gateway hostname.
- `options` (`...*AddApiWithoutTargetOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*AddApiWithoutTargetOptions` argument.

- `DisplayName` (`*string`) -- The API display name. The resource name is used when omitted.
- `SubscriptionRequired` (`*bool`) -- Whether callers must provide an API Management subscription key. The default is `true`.
- `ApiName` (`*string`) -- The physical API identifier in API Management. The Aspire resource name is used when omitted.

## Returns

[`AzureApiManagementApiResource`](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementapiresource.md) -- A builder for the API resource.

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

## Defined on

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