Skip to content
Docs Try Aspire

withGatewayPort

Function
📦 Aspire.Hosting.Azure.CosmosDB v13.2.0-preview.1.26159.1
interface AzureCosmosDBEmulatorResource {
// ... omitted for brevity
withGatewayPort(port: number): AzureCosmosDBEmulatorResource;
}

Signature

method withGatewayPort builder
Sets the host port for the Cosmos DB emulator gateway endpoint
withGatewayPort(port: number): AzureCosmosDBEmulatorResource
port number
AzureCosmosDBEmulatorResource

Applies to

This function is an extension method on the following types: