# getP2SVpnGateways

- Module: [Aspire.Hosting.Azure.Provisioning.Network](/reference/api/typescript/aspire.hosting.azure.provisioning.network.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Gets all P2SVpnGateway provisioning resources.

## Definition

```typescript
interface AzureResourceInfrastructure {
  // ... omitted for brevity
  getP2SVpnGateways(): P2SVpnGatewayProxy[]
}
```

## Returns

`P2SVpnGatewayProxy[]`

## Applies to

- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure.provisioning.network/azureresourceinfrastructure.md)
