GetNetwork

Get a network within GCE from its name.

Using GetNetwork

function getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
function  get_network(name=None, project=None, opts=None)
func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)

Note: This function is named LookupNetwork in the Go SDK.

public static class GetNetwork {
    public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the network.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Name string

The name of the network.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name string

The name of the network.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name str

The name of the network.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

GetNetwork Result

The following output properties are available:

Description string

Description of this network.

GatewayIpv4 string

The IP address of the gateway.

Id string

The provider-assigned unique ID for this managed resource.

Name string
SelfLink string

The URI of the resource.

SubnetworksSelfLinks List<string>

the list of subnetworks which belong to the network

Project string
Description string

Description of this network.

GatewayIpv4 string

The IP address of the gateway.

Id string

The provider-assigned unique ID for this managed resource.

Name string
SelfLink string

The URI of the resource.

SubnetworksSelfLinks []string

the list of subnetworks which belong to the network

Project string
description string

Description of this network.

gatewayIpv4 string

The IP address of the gateway.

id string

The provider-assigned unique ID for this managed resource.

name string
selfLink string

The URI of the resource.

subnetworksSelfLinks string[]

the list of subnetworks which belong to the network

project string
description str

Description of this network.

gateway_ipv4 str

The IP address of the gateway.

id str

The provider-assigned unique ID for this managed resource.

name str
self_link str

The URI of the resource.

subnetworks_self_links List[str]

the list of subnetworks which belong to the network

project str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.