gcp.compute.getHcVpnGateway
Explore with Pulumi AI
Get a HA VPN Gateway within GCE from its name.
Example Usage
data "google_compute_ha_vpn_gateway" "gateway" {
name = "foobar"
}
Using getHcVpnGateway
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHcVpnGateway(args: GetHcVpnGatewayArgs, opts?: InvokeOptions): Promise<GetHcVpnGatewayResult>
function getHcVpnGatewayOutput(args: GetHcVpnGatewayOutputArgs, opts?: InvokeOptions): Output<GetHcVpnGatewayResult>
def get_hc_vpn_gateway(name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHcVpnGatewayResult
def get_hc_vpn_gateway_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHcVpnGatewayResult]
func GetHcVpnGateway(ctx *Context, args *GetHcVpnGatewayArgs, opts ...InvokeOption) (*GetHcVpnGatewayResult, error)
func GetHcVpnGatewayOutput(ctx *Context, args *GetHcVpnGatewayOutputArgs, opts ...InvokeOption) GetHcVpnGatewayResultOutput
> Note: This function is named GetHcVpnGateway
in the Go SDK.
public static class GetHcVpnGateway
{
public static Task<GetHcVpnGatewayResult> InvokeAsync(GetHcVpnGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetHcVpnGatewayResult> Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHcVpnGatewayResult> getHcVpnGateway(GetHcVpnGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getHcVpnGateway:getHcVpnGateway
arguments:
# arguments dictionary
The following arguments are supported:
getHcVpnGateway Result
The following output properties are available:
- Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network string
- Self
Link string - Stack
Type string - Vpn
Interfaces List<GetHc Vpn Gateway Vpn Interface> - Project string
- Region string
- Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network string
- Self
Link string - Stack
Type string - Vpn
Interfaces []GetHc Vpn Gateway Vpn Interface - Project string
- Region string
- description String
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- network String
- self
Link String - stack
Type String - vpn
Interfaces List<GetHc Vpn Gateway Vpn Interface> - project String
- region String
- description string
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- network string
- self
Link string - stack
Type string - vpn
Interfaces GetHc Vpn Gateway Vpn Interface[] - project string
- region string
- description str
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- network str
- self_
link str - stack_
type str - vpn_
interfaces Sequence[GetHc Vpn Gateway Vpn Interface] - project str
- region str
- description String
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- network String
- self
Link String - stack
Type String - vpn
Interfaces List<Property Map> - project String
- region String
Supporting Types
GetHcVpnGatewayVpnInterface
- Id int
- The numeric ID of this VPN gateway interface.
- Interconnect
Attachment string URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- Ip
Address string - The external IP address for this VPN gateway interface.
- Id int
- The numeric ID of this VPN gateway interface.
- Interconnect
Attachment string URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- Ip
Address string - The external IP address for this VPN gateway interface.
- id Integer
- The numeric ID of this VPN gateway interface.
- interconnect
Attachment String URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- ip
Address String - The external IP address for this VPN gateway interface.
- id number
- The numeric ID of this VPN gateway interface.
- interconnect
Attachment string URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- ip
Address string - The external IP address for this VPN gateway interface.
- id int
- The numeric ID of this VPN gateway interface.
- interconnect_
attachment str URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- ip_
address str - The external IP address for this VPN gateway interface.
- id Number
- The numeric ID of this VPN gateway interface.
- interconnect
Attachment String URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.
Not currently available publicly.
- ip
Address String - The external IP address for this VPN gateway interface.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.