Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
Networks provide software-defined networking infrastructure for connecting instances and other cloud resources within a region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudNetwork = gcore.getCloudNetwork({
projectId: 1,
regionId: 1,
networkId: "b39792c3-3160-4356-912e-ba396c95cdcf",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_network = gcore.get_cloud_network(project_id=1,
region_id=1,
network_id="b39792c3-3160-4356-912e-ba396c95cdcf")
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.LookupCloudNetwork(ctx, &gcore.LookupCloudNetworkArgs{
ProjectId: pulumi.Float64Ref(1),
RegionId: pulumi.Float64Ref(1),
NetworkId: pulumi.StringRef("b39792c3-3160-4356-912e-ba396c95cdcf"),
}, 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 exampleCloudNetwork = Gcore.GetCloudNetwork.Invoke(new()
{
ProjectId = 1,
RegionId = 1,
NetworkId = "b39792c3-3160-4356-912e-ba396c95cdcf",
});
});
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.GetCloudNetworkArgs;
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 exampleCloudNetwork = GcoreFunctions.getCloudNetwork(GetCloudNetworkArgs.builder()
.projectId(1)
.regionId(1)
.networkId("b39792c3-3160-4356-912e-ba396c95cdcf")
.build());
}
}
variables:
exampleCloudNetwork:
fn::invoke:
function: gcore:getCloudNetwork
arguments:
projectId: 1
regionId: 1
networkId: b39792c3-3160-4356-912e-ba396c95cdcf
Using getCloudNetwork
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 getCloudNetwork(args: GetCloudNetworkArgs, opts?: InvokeOptions): Promise<GetCloudNetworkResult>
function getCloudNetworkOutput(args: GetCloudNetworkOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkResult>def get_cloud_network(find_one_by: Optional[GetCloudNetworkFindOneBy] = None,
network_id: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudNetworkResult
def get_cloud_network_output(find_one_by: Optional[pulumi.Input[GetCloudNetworkFindOneByArgs]] = None,
network_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkResult]func LookupCloudNetwork(ctx *Context, args *LookupCloudNetworkArgs, opts ...InvokeOption) (*LookupCloudNetworkResult, error)
func LookupCloudNetworkOutput(ctx *Context, args *LookupCloudNetworkOutputArgs, opts ...InvokeOption) LookupCloudNetworkResultOutput> Note: This function is named LookupCloudNetwork in the Go SDK.
public static class GetCloudNetwork
{
public static Task<GetCloudNetworkResult> InvokeAsync(GetCloudNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetCloudNetworkResult> Invoke(GetCloudNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudNetworkResult> getCloudNetwork(GetCloudNetworkArgs args, InvokeOptions options)
public static Output<GetCloudNetworkResult> getCloudNetwork(GetCloudNetworkArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudNetwork:getCloudNetwork
arguments:
# arguments dictionaryThe following arguments are supported:
- Find
One GetBy Cloud Network Find One By - Network
Id string - Network ID
- Project
Id double - Project ID
- Region
Id double - Region ID
- Find
One GetBy Cloud Network Find One By - Network
Id string - Network ID
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- find
One GetBy Cloud Network Find One By - network
Id String - Network ID
- project
Id Double - Project ID
- region
Id Double - Region ID
- find
One GetBy Cloud Network Find One By - network
Id string - Network ID
- project
Id number - Project ID
- region
Id number - Region ID
- find_
one_ Getby Cloud Network Find One By - network_
id str - Network ID
- project_
id float - Project ID
- region_
id float - Region ID
- find
One Property MapBy - network
Id String - Network ID
- project
Id Number - Project ID
- region
Id Number - Region ID
getCloudNetwork Result
The following output properties are available:
- Created
At string - Datetime when the network was created
- Creator
Task stringId - Task that created this entity
- Default bool
- True if network has
is_defaultattribute - External bool
- True if the network
router:externalattribute - Id string
- Network ID
- Mtu double
- MTU (maximum transmission unit). Default value is 1450
- Name string
- Network name
- Port
Security boolEnabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - Region string
- Region name
- Segmentation
Id double - Id of network segment
- bool
- True when the network is shared with your project by external owner
- Subnets List<string>
- List of subnetworks
-
List<Get
Cloud Network Tag> - 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.
- Type string
- Network type (vlan, vxlan)
- Updated
At string - Datetime when the network was last updated
- Find
One GetBy Cloud Network Find One By - Network
Id string - Network ID
- Project
Id double - Project ID
- Region
Id double - Region ID
- Created
At string - Datetime when the network was created
- Creator
Task stringId - Task that created this entity
- Default bool
- True if network has
is_defaultattribute - External bool
- True if the network
router:externalattribute - Id string
- Network ID
- Mtu float64
- MTU (maximum transmission unit). Default value is 1450
- Name string
- Network name
- Port
Security boolEnabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - Region string
- Region name
- Segmentation
Id float64 - Id of network segment
- bool
- True when the network is shared with your project by external owner
- Subnets []string
- List of subnetworks
-
[]Get
Cloud Network Tag - 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.
- Type string
- Network type (vlan, vxlan)
- Updated
At string - Datetime when the network was last updated
- Find
One GetBy Cloud Network Find One By - Network
Id string - Network ID
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- created
At String - Datetime when the network was created
- creator
Task StringId - Task that created this entity
- default_ Boolean
- True if network has
is_defaultattribute - external Boolean
- True if the network
router:externalattribute - id String
- Network ID
- mtu Double
- MTU (maximum transmission unit). Default value is 1450
- name String
- Network name
- port
Security BooleanEnabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - region String
- Region name
- segmentation
Id Double - Id of network segment
- Boolean
- True when the network is shared with your project by external owner
- subnets List<String>
- List of subnetworks
-
List<Get
Cloud Network Tag> - 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.
- type String
- Network type (vlan, vxlan)
- updated
At String - Datetime when the network was last updated
- find
One GetBy Cloud Network Find One By - network
Id String - Network ID
- project
Id Double - Project ID
- region
Id Double - Region ID
- created
At string - Datetime when the network was created
- creator
Task stringId - Task that created this entity
- default boolean
- True if network has
is_defaultattribute - external boolean
- True if the network
router:externalattribute - id string
- Network ID
- mtu number
- MTU (maximum transmission unit). Default value is 1450
- name string
- Network name
- port
Security booleanEnabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - region string
- Region name
- segmentation
Id number - Id of network segment
- boolean
- True when the network is shared with your project by external owner
- subnets string[]
- List of subnetworks
-
Get
Cloud Network Tag[] - 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.
- type string
- Network type (vlan, vxlan)
- updated
At string - Datetime when the network was last updated
- find
One GetBy Cloud Network Find One By - network
Id string - Network ID
- project
Id number - Project ID
- region
Id number - Region ID
- created_
at str - Datetime when the network was created
- creator_
task_ strid - Task that created this entity
- default bool
- True if network has
is_defaultattribute - external bool
- True if the network
router:externalattribute - id str
- Network ID
- mtu float
- MTU (maximum transmission unit). Default value is 1450
- name str
- Network name
- port_
security_ boolenabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - region str
- Region name
- segmentation_
id float - Id of network segment
- bool
- True when the network is shared with your project by external owner
- subnets Sequence[str]
- List of subnetworks
-
Sequence[Get
Cloud Network Tag] - 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.
- type str
- Network type (vlan, vxlan)
- updated_
at str - Datetime when the network was last updated
- find_
one_ Getby Cloud Network Find One By - network_
id str - Network ID
- project_
id float - Project ID
- region_
id float - Region ID
- created
At String - Datetime when the network was created
- creator
Task StringId - Task that created this entity
- default Boolean
- True if network has
is_defaultattribute - external Boolean
- True if the network
router:externalattribute - id String
- Network ID
- mtu Number
- MTU (maximum transmission unit). Default value is 1450
- name String
- Network name
- port
Security BooleanEnabled - Indicates
port_security_enabledstatus of all newly created in the network ports. - region String
- Region name
- segmentation
Id Number - Id of network segment
- Boolean
- True when the network is shared with your project by external owner
- subnets List<String>
- List of subnetworks
- 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.
- type String
- Network type (vlan, vxlan)
- updated
At String - Datetime when the network was last updated
- find
One Property MapBy - network
Id String - Network ID
- project
Id Number - Project ID
- region
Id Number - Region ID
Supporting Types
GetCloudNetworkFindOneBy
- Order
By string - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - Owned
By string - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- External bool
- Filter by external network status
- Name string
- Filter networks by name
- Network
Type string - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- Tag
Key stringValue - Optional. Filter by tag key-value pairs.
- Tag
Keys List<string> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- Order
By string - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - Owned
By string - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- External bool
- Filter by external network status
- Name string
- Filter networks by name
- Network
Type string - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- Tag
Key stringValue - Optional. Filter by tag key-value pairs.
- Tag
Keys []string - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- order
By String - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - owned
By String - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- external Boolean
- Filter by external network status
- name String
- Filter networks by name
- network
Type String - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- tag
Key StringValue - Optional. Filter by tag key-value pairs.
- tag
Keys List<String> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- order
By string - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - owned
By string - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- external boolean
- Filter by external network status
- name string
- Filter networks by name
- network
Type string - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- tag
Key stringValue - Optional. Filter by tag key-value pairs.
- tag
Keys string[] - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- order_
by str - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - owned_
by str - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- external bool
- Filter by external network status
- name str
- Filter networks by name
- network_
type str - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- tag_
key_ strvalue - Optional. Filter by tag key-value pairs.
- tag_
keys Sequence[str] - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
- order
By String - Ordering networks list result by
name,created_atorpriorityfields and directions (e.g.created_at.desc). Default iscreated_at.desc. Usepriority.descto sort by shared network priority (relevant whenowned_by=any). Available values: "createdat.asc", "createdat.desc", "name.asc", "name.desc", "priority.desc". - owned
By String - Controls which networks are returned. 'project' (default) returns only networks owned by the project. 'any' returns all networks that the project can use, including shared networks from other projects. Available values: "any", "project".
- external Boolean
- Filter by external network status
- name String
- Filter networks by name
- network
Type String - Filter by network type (vlan or vxlan) Available values: "vlan", "vxlan".
- tag
Key StringValue - Optional. Filter by tag key-value pairs.
- tag
Keys List<String> - Optional. Filter by tag keys. ?
tag_key=key1&tag_key=key2
GetCloudNetworkTag
- Key string
- 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 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.
- Read
Only 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.
- read
Only 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.
- read
Only 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.
- read
Only 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
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
published on Tuesday, Mar 24, 2026 by g-core
