1. Packages
  2. Packages
  3. Civo Provider
  4. API Docs
  5. getVpcNetwork
Viewing docs for civo 1.3.1
published on Thursday, Aug 6, 2026 by civo
civo logo
Viewing docs for civo 1.3.1
published on Thursday, Aug 6, 2026 by civo

    Retrieve information about a network for use in other resources.

    This data source provides all of the network’s properties as configured on your Civo account.

    Networks may be looked up by id or label, and you can optionally pass region if you want to make a lookup for a specific network inside that region.

    Using getVpcNetwork

    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 getVpcNetwork(args: GetVpcNetworkArgs, opts?: InvokeOptions): Promise<GetVpcNetworkResult>
    function getVpcNetworkOutput(args: GetVpcNetworkOutputArgs, opts?: InvokeOptions): Output<GetVpcNetworkResult>
    def get_vpc_network(id: Optional[str] = None,
                        label: Optional[str] = None,
                        region: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVpcNetworkResult
    def get_vpc_network_output(id: pulumi.Input[Optional[str]] = None,
                        label: pulumi.Input[Optional[str]] = None,
                        region: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVpcNetworkResult]
    func LookupVpcNetwork(ctx *Context, args *LookupVpcNetworkArgs, opts ...InvokeOption) (*LookupVpcNetworkResult, error)
    func LookupVpcNetworkOutput(ctx *Context, args *LookupVpcNetworkOutputArgs, opts ...InvokeOption) LookupVpcNetworkResultOutput

    > Note: This function is named LookupVpcNetwork in the Go SDK.

    public static class GetVpcNetwork 
    {
        public static Task<GetVpcNetworkResult> InvokeAsync(GetVpcNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcNetworkResult> Invoke(GetVpcNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcNetworkResult> getVpcNetwork(GetVpcNetworkArgs args, InvokeOptions options)
    public static Output<GetVpcNetworkResult> getVpcNetwork(GetVpcNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: civo:index/getVpcNetwork:getVpcNetwork
      arguments:
        # arguments dictionary
    data "civo_get_vpc_network" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of this resource.
    Label string
    The label of an existing network
    Region string
    The region of an existing network
    Id string
    The ID of this resource.
    Label string
    The label of an existing network
    Region string
    The region of an existing network
    id string
    The ID of this resource.
    label string
    The label of an existing network
    region string
    The region of an existing network
    id String
    The ID of this resource.
    label String
    The label of an existing network
    region String
    The region of an existing network
    id string
    The ID of this resource.
    label string
    The label of an existing network
    region string
    The region of an existing network
    id str
    The ID of this resource.
    label str
    The label of an existing network
    region str
    The region of an existing network
    id String
    The ID of this resource.
    label String
    The label of an existing network
    region String
    The region of an existing network

    getVpcNetwork Result

    The following output properties are available:

    CidrV4 string
    Default bool
    If is the default network
    Name string
    The name of the network
    NameserversV4s List<string>
    Id string
    The ID of this resource.
    Label string
    The label of an existing network
    Region string
    The region of an existing network
    CidrV4 string
    Default bool
    If is the default network
    Name string
    The name of the network
    NameserversV4s []string
    Id string
    The ID of this resource.
    Label string
    The label of an existing network
    Region string
    The region of an existing network
    cidr_v4 string
    default bool
    If is the default network
    name string
    The name of the network
    nameservers_v4s list(string)
    id string
    The ID of this resource.
    label string
    The label of an existing network
    region string
    The region of an existing network
    cidrV4 String
    default_ Boolean
    If is the default network
    name String
    The name of the network
    nameserversV4s List<String>
    id String
    The ID of this resource.
    label String
    The label of an existing network
    region String
    The region of an existing network
    cidrV4 string
    default boolean
    If is the default network
    name string
    The name of the network
    nameserversV4s string[]
    id string
    The ID of this resource.
    label string
    The label of an existing network
    region string
    The region of an existing network
    cidr_v4 str
    default bool
    If is the default network
    name str
    The name of the network
    nameservers_v4s Sequence[str]
    id str
    The ID of this resource.
    label str
    The label of an existing network
    region str
    The region of an existing network
    cidrV4 String
    default Boolean
    If is the default network
    name String
    The name of the network
    nameserversV4s List<String>
    id String
    The ID of this resource.
    label String
    The label of an existing network
    region String
    The region of an existing network

    Package Details

    Repository
    Civo civo/terraform-provider-civo
    License
    Notes
    This Pulumi package is based on the civo Terraform Provider.
    civo logo
    Viewing docs for civo 1.3.1
    published on Thursday, Aug 6, 2026 by civo

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial