# AddFlociGcp

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/go/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: `DistributedApplicationBuilder`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Adds a Floci GCP emulator container resource

## Definition

```go
func (DistributedApplicationBuilder) AddFlociGcp(
    name string,
    options ...*AddFlociGcpOptions,
) FlociGcpContainerResource
```

## Parameters

- `name` (`string`) -- The name of the Floci container resource.
- `options` (`...*AddFlociGcpOptions`) -- optional settings, see [Options](#options)

## Options

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

- `Port` (`*float64`) -- Optional. The host port to bind for the GCP endpoint.
- `DefaultProjectId` (`*string`) -- Optional. The default GCP project ID (default: `floci-local`).

## Returns

[`FlociGcpContainerResource`](/reference/api/go/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md) -- A reference to the `IResourceBuilder` for further resource configuration.

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

## Applies to

- `DistributedApplicationBuilder`
