Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.compute.getNetwork
Explore with Pulumi AI
Get a network within GCE from its name.
Example Usage
data "google_compute_network" "my-network" {
  name = "default-us-east1"
}
Using getNetwork
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 getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>def get_network(name: Optional[str] = None,
                project: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(name: Optional[pulumi.Input[str]] = None,
                project: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput> Note: This function is named LookupNetwork in the Go SDK.
public static class GetNetwork 
{
    public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gcp:compute/getNetwork:getNetwork
  arguments:
    # arguments dictionaryThe following arguments are supported:
getNetwork Result
The following output properties are available:
- Description string
 - Description of this network.
 - Gateway
Ipv4 string - The IP address of the gateway.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Internal
Ipv6Range string - The ula internal ipv6 range assigned to this network.
 - Name string
 - Self
Link string - The URI of the resource.
 - Subnetworks
Self List<string>Links  - the list of subnetworks which belong to the network
 - Project string
 
- Description string
 - Description of this network.
 - Gateway
Ipv4 string - The IP address of the gateway.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Internal
Ipv6Range string - The ula internal ipv6 range assigned to this network.
 - Name string
 - Self
Link string - The URI of the resource.
 - Subnetworks
Self []stringLinks  - the list of subnetworks which belong to the network
 - Project string
 
- description String
 - Description of this network.
 - gateway
Ipv4 String - The IP address of the gateway.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - internal
Ipv6Range String - The ula internal ipv6 range assigned to this network.
 - name String
 - self
Link String - The URI of the resource.
 - subnetworks
Self List<String>Links  - the list of subnetworks which belong to the network
 - project String
 
- description string
 - Description of this network.
 - gateway
Ipv4 string - The IP address of the gateway.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - internal
Ipv6Range string - The ula internal ipv6 range assigned to this network.
 - name string
 - self
Link string - The URI of the resource.
 - subnetworks
Self string[]Links  - 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.
 - internal_
ipv6_ strrange  - The ula internal ipv6 range assigned to this network.
 - name str
 - self_
link str - The URI of the resource.
 - subnetworks_
self_ Sequence[str]links  - the list of subnetworks which belong to the network
 - project str
 
- description String
 - Description of this network.
 - gateway
Ipv4 String - The IP address of the gateway.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - internal
Ipv6Range String - The ula internal ipv6 range assigned to this network.
 - name String
 - self
Link String - The URI of the resource.
 - subnetworks
Self List<String>Links  - the list of subnetworks which belong to the network
 - project String
 
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.