1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCloudNetworkSubnets
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core

    Subnets define IP address ranges within a network for instance connectivity, with support for DHCP and DNS configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCloudNetworkSubnets = gcore.getCloudNetworkSubnets({
        projectId: 1,
        regionId: 1,
        networkId: "b30d0de7-bca2-4c83-9c57-9e645bd2cc92",
        tagKeys: [
            "key1",
            "key2",
        ],
        tagKeyValue: "tag_key_value",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cloud_network_subnets = gcore.get_cloud_network_subnets(project_id=1,
        region_id=1,
        network_id="b30d0de7-bca2-4c83-9c57-9e645bd2cc92",
        tag_keys=[
            "key1",
            "key2",
        ],
        tag_key_value="tag_key_value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.GetCloudNetworkSubnets(ctx, &gcore.GetCloudNetworkSubnetsArgs{
    			ProjectId: pulumi.Float64Ref(1),
    			RegionId:  pulumi.Float64Ref(1),
    			NetworkId: pulumi.StringRef("b30d0de7-bca2-4c83-9c57-9e645bd2cc92"),
    			TagKeys: []string{
    				"key1",
    				"key2",
    			},
    			TagKeyValue: pulumi.StringRef("tag_key_value"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCloudNetworkSubnets = Gcore.GetCloudNetworkSubnets.Invoke(new()
        {
            ProjectId = 1,
            RegionId = 1,
            NetworkId = "b30d0de7-bca2-4c83-9c57-9e645bd2cc92",
            TagKeys = new[]
            {
                "key1",
                "key2",
            },
            TagKeyValue = "tag_key_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCloudNetworkSubnetsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleCloudNetworkSubnets = GcoreFunctions.getCloudNetworkSubnets(GetCloudNetworkSubnetsArgs.builder()
                .projectId(1)
                .regionId(1)
                .networkId("b30d0de7-bca2-4c83-9c57-9e645bd2cc92")
                .tagKeys(            
                    "key1",
                    "key2")
                .tagKeyValue("tag_key_value")
                .build());
    
        }
    }
    
    variables:
      exampleCloudNetworkSubnets:
        fn::invoke:
          function: gcore:getCloudNetworkSubnets
          arguments:
            projectId: 1
            regionId: 1
            networkId: b30d0de7-bca2-4c83-9c57-9e645bd2cc92
            tagKeys:
              - key1
              - key2
            tagKeyValue: tag_key_value
    

    Using getCloudNetworkSubnets

    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 getCloudNetworkSubnets(args: GetCloudNetworkSubnetsArgs, opts?: InvokeOptions): Promise<GetCloudNetworkSubnetsResult>
    function getCloudNetworkSubnetsOutput(args: GetCloudNetworkSubnetsOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkSubnetsResult>
    def get_cloud_network_subnets(max_items: Optional[float] = None,
                                  network_id: Optional[str] = None,
                                  order_by: Optional[str] = None,
                                  owned_by: Optional[str] = None,
                                  project_id: Optional[float] = None,
                                  region_id: Optional[float] = None,
                                  tag_key_value: Optional[str] = None,
                                  tag_keys: Optional[Sequence[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudNetworkSubnetsResult
    def get_cloud_network_subnets_output(max_items: Optional[pulumi.Input[float]] = None,
                                  network_id: Optional[pulumi.Input[str]] = None,
                                  order_by: Optional[pulumi.Input[str]] = None,
                                  owned_by: Optional[pulumi.Input[str]] = None,
                                  project_id: Optional[pulumi.Input[float]] = None,
                                  region_id: Optional[pulumi.Input[float]] = None,
                                  tag_key_value: Optional[pulumi.Input[str]] = None,
                                  tag_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkSubnetsResult]
    func GetCloudNetworkSubnets(ctx *Context, args *GetCloudNetworkSubnetsArgs, opts ...InvokeOption) (*GetCloudNetworkSubnetsResult, error)
    func GetCloudNetworkSubnetsOutput(ctx *Context, args *GetCloudNetworkSubnetsOutputArgs, opts ...InvokeOption) GetCloudNetworkSubnetsResultOutput

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

    public static class GetCloudNetworkSubnets 
    {
        public static Task<GetCloudNetworkSubnetsResult> InvokeAsync(GetCloudNetworkSubnetsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudNetworkSubnetsResult> Invoke(GetCloudNetworkSubnetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudNetworkSubnetsResult> getCloudNetworkSubnets(GetCloudNetworkSubnetsArgs args, InvokeOptions options)
    public static Output<GetCloudNetworkSubnetsResult> getCloudNetworkSubnets(GetCloudNetworkSubnetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCloudNetworkSubnets:getCloudNetworkSubnets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MaxItems double
    Max items to fetch, default: 1000
    NetworkId string
    Only list subnets of this network
    OrderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    OwnedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    ProjectId double
    Project ID
    RegionId double
    Region ID
    TagKeyValue string
    Optional. Filter by tag key-value pairs.
    TagKeys List<string>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    MaxItems float64
    Max items to fetch, default: 1000
    NetworkId string
    Only list subnets of this network
    OrderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    OwnedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    ProjectId float64
    Project ID
    RegionId float64
    Region ID
    TagKeyValue string
    Optional. Filter by tag key-value pairs.
    TagKeys []string
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    maxItems Double
    Max items to fetch, default: 1000
    networkId String
    Only list subnets of this network
    orderBy String
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy String
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    projectId Double
    Project ID
    regionId Double
    Region ID
    tagKeyValue String
    Optional. Filter by tag key-value pairs.
    tagKeys List<String>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    maxItems number
    Max items to fetch, default: 1000
    networkId string
    Only list subnets of this network
    orderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    projectId number
    Project ID
    regionId number
    Region ID
    tagKeyValue string
    Optional. Filter by tag key-value pairs.
    tagKeys string[]
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    max_items float
    Max items to fetch, default: 1000
    network_id str
    Only list subnets of this network
    order_by str
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    owned_by str
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    project_id float
    Project ID
    region_id float
    Region ID
    tag_key_value str
    Optional. Filter by tag key-value pairs.
    tag_keys Sequence[str]
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    maxItems Number
    Max items to fetch, default: 1000
    networkId String
    Only list subnets of this network
    orderBy String
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy String
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    projectId Number
    Project ID
    regionId Number
    Region ID
    tagKeyValue String
    Optional. Filter by tag key-value pairs.
    tagKeys List<String>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2

    getCloudNetworkSubnets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetCloudNetworkSubnetsItem>
    The items returned by the data source
    OrderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    OwnedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    MaxItems double
    Max items to fetch, default: 1000
    NetworkId string
    Only list subnets of this network
    ProjectId double
    Project ID
    RegionId double
    Region ID
    TagKeyValue string
    Optional. Filter by tag key-value pairs.
    TagKeys List<string>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetCloudNetworkSubnetsItem
    The items returned by the data source
    OrderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    OwnedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    MaxItems float64
    Max items to fetch, default: 1000
    NetworkId string
    Only list subnets of this network
    ProjectId float64
    Project ID
    RegionId float64
    Region ID
    TagKeyValue string
    Optional. Filter by tag key-value pairs.
    TagKeys []string
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCloudNetworkSubnetsItem>
    The items returned by the data source
    orderBy String
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy String
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    maxItems Double
    Max items to fetch, default: 1000
    networkId String
    Only list subnets of this network
    projectId Double
    Project ID
    regionId Double
    Region ID
    tagKeyValue String
    Optional. Filter by tag key-value pairs.
    tagKeys List<String>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    id string
    The provider-assigned unique ID for this managed resource.
    items GetCloudNetworkSubnetsItem[]
    The items returned by the data source
    orderBy string
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy string
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    maxItems number
    Max items to fetch, default: 1000
    networkId string
    Only list subnets of this network
    projectId number
    Project ID
    regionId number
    Region ID
    tagKeyValue string
    Optional. Filter by tag key-value pairs.
    tagKeys string[]
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetCloudNetworkSubnetsItem]
    The items returned by the data source
    order_by str
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    owned_by str
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    max_items float
    Max items to fetch, default: 1000
    network_id str
    Only list subnets of this network
    project_id float
    Project ID
    region_id float
    Region ID
    tag_key_value str
    Optional. Filter by tag key-value pairs.
    tag_keys Sequence[str]
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    orderBy String
    Ordering subnets list result by name, created_at, updated_at, available_ips, total_ips, and cidr (default) fields of the subnet and directions (name.asc). Available values: "availableips.asc", "availableips.desc", "cidr.asc", "cidr.desc", "createdat.asc", "createdat.desc", "name.asc", "name.desc", "totalips.asc", "totalips.desc", "updatedat.asc", "updatedat.desc".
    ownedBy String
    Controls which subnets are returned. 'project' (default) returns only subnets owned by the project. 'any' returns all subnets from networks available to the project, including subnets from shared networks. Available values: "any", "project".
    maxItems Number
    Max items to fetch, default: 1000
    networkId String
    Only list subnets of this network
    projectId Number
    Project ID
    regionId Number
    Region ID
    tagKeyValue String
    Optional. Filter by tag key-value pairs.
    tagKeys List<String>
    Optional. Filter by tag keys. ?tag_key=key1&tag_key=key2

    Supporting Types

    GetCloudNetworkSubnetsItem

    AvailableIps double
    Number of available ips in subnet
    Cidr string
    CIDR
    CreatedAt string
    Datetime when the subnet was created
    CreatorTaskId string
    Task that created this entity
    DnsNameservers List<string>
    List IP addresses of a DNS resolver reachable from the network
    EnableDhcp bool
    True if DHCP should be enabled
    GatewayIp string
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    HasRouter bool
    Deprecated. Always returns false.

    Deprecated: Deprecated

    HostRoutes List<GetCloudNetworkSubnetsItemHostRoute>
    List of custom static routes to advertise via DHCP.
    Id string
    Subnet id.
    IpVersion double
    IP version Available values: 4, 6.
    Name string
    Subnet name
    NetworkId string
    Network ID
    ProjectId double
    Project ID
    Region string
    Region name
    RegionId double
    Region ID
    Tags List<GetCloudNetworkSubnetsItemTag>
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    TotalIps double
    Total number of ips in subnet
    UpdatedAt string
    Datetime when the subnet was last updated
    AvailableIps float64
    Number of available ips in subnet
    Cidr string
    CIDR
    CreatedAt string
    Datetime when the subnet was created
    CreatorTaskId string
    Task that created this entity
    DnsNameservers []string
    List IP addresses of a DNS resolver reachable from the network
    EnableDhcp bool
    True if DHCP should be enabled
    GatewayIp string
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    HasRouter bool
    Deprecated. Always returns false.

    Deprecated: Deprecated

    HostRoutes []GetCloudNetworkSubnetsItemHostRoute
    List of custom static routes to advertise via DHCP.
    Id string
    Subnet id.
    IpVersion float64
    IP version Available values: 4, 6.
    Name string
    Subnet name
    NetworkId string
    Network ID
    ProjectId float64
    Project ID
    Region string
    Region name
    RegionId float64
    Region ID
    Tags []GetCloudNetworkSubnetsItemTag
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    TotalIps float64
    Total number of ips in subnet
    UpdatedAt string
    Datetime when the subnet was last updated
    availableIps Double
    Number of available ips in subnet
    cidr String
    CIDR
    createdAt String
    Datetime when the subnet was created
    creatorTaskId String
    Task that created this entity
    dnsNameservers List<String>
    List IP addresses of a DNS resolver reachable from the network
    enableDhcp Boolean
    True if DHCP should be enabled
    gatewayIp String
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    hasRouter Boolean
    Deprecated. Always returns false.

    Deprecated: Deprecated

    hostRoutes List<GetCloudNetworkSubnetsItemHostRoute>
    List of custom static routes to advertise via DHCP.
    id String
    Subnet id.
    ipVersion Double
    IP version Available values: 4, 6.
    name String
    Subnet name
    networkId String
    Network ID
    projectId Double
    Project ID
    region String
    Region name
    regionId Double
    Region ID
    tags List<GetCloudNetworkSubnetsItemTag>
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    totalIps Double
    Total number of ips in subnet
    updatedAt String
    Datetime when the subnet was last updated
    availableIps number
    Number of available ips in subnet
    cidr string
    CIDR
    createdAt string
    Datetime when the subnet was created
    creatorTaskId string
    Task that created this entity
    dnsNameservers string[]
    List IP addresses of a DNS resolver reachable from the network
    enableDhcp boolean
    True if DHCP should be enabled
    gatewayIp string
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    hasRouter boolean
    Deprecated. Always returns false.

    Deprecated: Deprecated

    hostRoutes GetCloudNetworkSubnetsItemHostRoute[]
    List of custom static routes to advertise via DHCP.
    id string
    Subnet id.
    ipVersion number
    IP version Available values: 4, 6.
    name string
    Subnet name
    networkId string
    Network ID
    projectId number
    Project ID
    region string
    Region name
    regionId number
    Region ID
    tags GetCloudNetworkSubnetsItemTag[]
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    totalIps number
    Total number of ips in subnet
    updatedAt string
    Datetime when the subnet was last updated
    available_ips float
    Number of available ips in subnet
    cidr str
    CIDR
    created_at str
    Datetime when the subnet was created
    creator_task_id str
    Task that created this entity
    dns_nameservers Sequence[str]
    List IP addresses of a DNS resolver reachable from the network
    enable_dhcp bool
    True if DHCP should be enabled
    gateway_ip str
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    has_router bool
    Deprecated. Always returns false.

    Deprecated: Deprecated

    host_routes Sequence[GetCloudNetworkSubnetsItemHostRoute]
    List of custom static routes to advertise via DHCP.
    id str
    Subnet id.
    ip_version float
    IP version Available values: 4, 6.
    name str
    Subnet name
    network_id str
    Network ID
    project_id float
    Project ID
    region str
    Region name
    region_id float
    Region ID
    tags Sequence[GetCloudNetworkSubnetsItemTag]
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    total_ips float
    Total number of ips in subnet
    updated_at str
    Datetime when the subnet was last updated
    availableIps Number
    Number of available ips in subnet
    cidr String
    CIDR
    createdAt String
    Datetime when the subnet was created
    creatorTaskId String
    Task that created this entity
    dnsNameservers List<String>
    List IP addresses of a DNS resolver reachable from the network
    enableDhcp Boolean
    True if DHCP should be enabled
    gatewayIp String
    Default GW IPv4 address, advertised in DHCP routes of this subnet. If null, no gateway is advertised by this subnet.
    hasRouter Boolean
    Deprecated. Always returns false.

    Deprecated: Deprecated

    hostRoutes List<Property Map>
    List of custom static routes to advertise via DHCP.
    id String
    Subnet id.
    ipVersion Number
    IP version Available values: 4, 6.
    name String
    Subnet name
    networkId String
    Network ID
    projectId Number
    Project ID
    region String
    Region name
    regionId Number
    Region ID
    tags List<Property Map>
    List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
    totalIps Number
    Total number of ips in subnet
    updatedAt String
    Datetime when the subnet was last updated

    GetCloudNetworkSubnetsItemHostRoute

    Destination string
    CIDR of destination IPv4 or IPv6 subnet.
    Nexthop string
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
    Destination string
    CIDR of destination IPv4 or IPv6 subnet.
    Nexthop string
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
    destination String
    CIDR of destination IPv4 or IPv6 subnet.
    nexthop String
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
    destination string
    CIDR of destination IPv4 or IPv6 subnet.
    nexthop string
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
    destination str
    CIDR of destination IPv4 or IPv6 subnet.
    nexthop str
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.
    destination String
    CIDR of destination IPv4 or IPv6 subnet.
    nexthop String
    IPv4 or IPv6 address to forward traffic to if it's destination IP matches 'destination' CIDR.

    GetCloudNetworkSubnetsItemTag

    Key string
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    ReadOnly bool
    If true, the tag is read-only and cannot be modified by the user
    Value string
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    Key string
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    ReadOnly bool
    If true, the tag is read-only and cannot be modified by the user
    Value string
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    key String
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    readOnly Boolean
    If true, the tag is read-only and cannot be modified by the user
    value String
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    key string
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    readOnly boolean
    If true, the tag is read-only and cannot be modified by the user
    value string
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    key str
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    read_only bool
    If true, the tag is read-only and cannot be modified by the user
    value str
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    key String
    Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
    readOnly Boolean
    If true, the tag is read-only and cannot be modified by the user
    value String
    Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.3
    published on Monday, Mar 30, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.