glesys 0.14.2 published on Tuesday, Apr 15, 2025 by glesys
glesys.getNetwork
Explore with Pulumi AI
Get information about a Network associated with your GleSYS Project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as glesys from "@pulumi/glesys";
const examplenet = glesys.getNetwork({
id: "vl12345",
});
export const networkDc = examplenet.then(examplenet => examplenet.datacenter);
import pulumi
import pulumi_glesys as glesys
examplenet = glesys.get_network(id="vl12345")
pulumi.export("networkDc", examplenet.datacenter)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
examplenet, err := glesys.LookupNetwork(ctx, &glesys.LookupNetworkArgs{
Id: "vl12345",
}, nil)
if err != nil {
return err
}
ctx.Export("networkDc", examplenet.Datacenter)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Glesys = Pulumi.Glesys;
return await Deployment.RunAsync(() =>
{
var examplenet = Glesys.GetNetwork.Invoke(new()
{
Id = "vl12345",
});
return new Dictionary<string, object?>
{
["networkDc"] = examplenet.Apply(getNetworkResult => getNetworkResult.Datacenter),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.glesys.GlesysFunctions;
import com.pulumi.glesys.inputs.GetNetworkArgs;
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 examplenet = GlesysFunctions.getNetwork(GetNetworkArgs.builder()
.id("vl12345")
.build());
ctx.export("networkDc", examplenet.applyValue(getNetworkResult -> getNetworkResult.datacenter()));
}
}
variables:
examplenet:
fn::invoke:
function: glesys:getNetwork
arguments:
id: vl12345
outputs:
networkDc: ${examplenet.datacenter}
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(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(id: 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)
public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
fn::invoke:
function: glesys:index/getNetwork:getNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- network ID.
- Id string
- network ID.
- id String
- network ID.
- id string
- network ID.
- id str
- network ID.
- id String
- network ID.
getNetwork Result
The following output properties are available:
- Datacenter string
- network datacenter.
- Description string
- network description.
- Id string
- network ID.
- Public string
- network public, yes/no.
- Datacenter string
- network datacenter.
- Description string
- network description.
- Id string
- network ID.
- Public string
- network public, yes/no.
- datacenter String
- network datacenter.
- description String
- network description.
- id String
- network ID.
- public_ String
- network public, yes/no.
- datacenter string
- network datacenter.
- description string
- network description.
- id string
- network ID.
- public string
- network public, yes/no.
- datacenter str
- network datacenter.
- description str
- network description.
- id str
- network ID.
- public str
- network public, yes/no.
- datacenter String
- network datacenter.
- description String
- network description.
- id String
- network ID.
- public String
- network public, yes/no.
Package Details
- Repository
- glesys glesys/terraform-provider-glesys
- License
- Notes
- This Pulumi package is based on the
glesys
Terraform Provider.