# FoundryToolboxResource.AsExisting

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Defined on: [FoundryToolboxResource](/reference/api/go/aspire.hosting.foundry/foundrytoolboxresource.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`

Uses an existing Microsoft Foundry Toolbox during local runs and deployment.

## Remarks

Existing mode validates that the remote Toolbox and optional pinned
`Version` exist without resolving locally modeled tools or
mutating the Toolbox.

## Definition

```go
type FoundryToolboxResource interface {
    // ... omitted for brevity
    AsExisting() FoundryToolboxResource
}
```

## Signature

```go
AsExisting() FoundryToolboxResource
```

## Returns

[`FoundryToolboxResource`](/reference/api/go/aspire.hosting.foundry/foundrytoolboxresource.md) -- The resource builder.

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

## Defined on

- [FoundryToolboxResource](/reference/api/go/aspire.hosting.foundry/foundrytoolboxresource.md) -- `handle`
