eventstorecloud.getNetwork
Explore with Pulumi AI
Retrieves data for an existing Network
resource
Example Usage
using Pulumi;
using EventStoreCloud = Pulumi.EventStoreCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(EventStoreCloud.GetNetwork.InvokeAsync(new EventStoreCloud.GetNetworkArgs
{
Name = "Example Network",
ProjectId = @var.Project_id,
}));
this.NetworkCidr = example.Apply(example => example.CidrBlock);
}
[Output("networkCidr")]
public Output<string> NetworkCidr { get; set; }
}
package main
import (
"github.com/EventStore/pulumi-eventstorecloud/sdk/go/eventstorecloud"
"github.com/pulumi/pulumi-eventstorecloud/sdk/go/eventstorecloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := eventstorecloud.LookupNetwork(ctx, &GetNetworkArgs{
Name: "Example Network",
ProjectId: _var.Project_id,
}, nil)
if err != nil {
return err
}
ctx.Export("networkCidr", example.CidrBlock)
return nil
})
}
Coming soon!
import pulumi
import pulumi_eventstorecloud as eventstorecloud
example = eventstorecloud.get_network(name="Example Network",
project_id=var["project_id"])
pulumi.export("networkCidr", example.cidr_block)
import * as pulumi from "@pulumi/pulumi";
import * as eventstorecloud from "@pulumi/eventstorecloud";
const example = eventstorecloud.getNetwork({
name: "Example Network",
projectId: _var.project_id,
});
export const networkCidr = example.then(example => example.cidrBlock);
Coming soon!
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_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(name: Optional[pulumi.Input[str]] = None,
project_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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: eventstorecloud:index/getNetwork:getNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- name str
- project_
id str
getNetwork Result
The following output properties are available:
- cidr_
block str Address space of the network in CIDR block notation
- id str
The provider-assigned unique ID for this managed resource.
- name str
- project_
id str - region str
Provider region in which to provision the network
- resource_
provider str Cloud Provider in which to provision the network.
Package Details
- Repository
- eventstorecloud EventStore/pulumi-eventstorecloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
eventstorecloud
Terraform Provider.