vkcs.getNetworkingSdn
Explore with Pulumi AI
Use this data source to get a list of available VKCS SDNs in the current project. The first SDN is default. You do not have to specify default sdn argument in resources and datasources. You may specify non default SDN only for root resources such as vkcs.NetworkingRouter
, vkcs.NetworkingNetwork
, vkcs.NetworkingSecgroup
(they do not depend on any other resource/datasource with sdn argument).
New since v0.7.4.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const sdn = vkcs.getNetworkingSdn({});
import pulumi
import pulumi_vkcs as vkcs
sdn = vkcs.get_networking_sdn()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.GetNetworkingSdn(ctx, &vkcs.GetNetworkingSdnArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var sdn = Vkcs.GetNetworkingSdn.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetNetworkingSdnArgs;
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 sdn = VkcsFunctions.getNetworkingSdn();
}
}
variables:
sdn:
fn::invoke:
function: vkcs:getNetworkingSdn
arguments: {}
Using getNetworkingSdn
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 getNetworkingSdn(args: GetNetworkingSdnArgs, opts?: InvokeOptions): Promise<GetNetworkingSdnResult>
function getNetworkingSdnOutput(args: GetNetworkingSdnOutputArgs, opts?: InvokeOptions): Output<GetNetworkingSdnResult>
def get_networking_sdn(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkingSdnResult
def get_networking_sdn_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingSdnResult]
func GetNetworkingSdn(ctx *Context, args *GetNetworkingSdnArgs, opts ...InvokeOption) (*GetNetworkingSdnResult, error)
func GetNetworkingSdnOutput(ctx *Context, args *GetNetworkingSdnOutputArgs, opts ...InvokeOption) GetNetworkingSdnResultOutput
> Note: This function is named GetNetworkingSdn
in the Go SDK.
public static class GetNetworkingSdn
{
public static Task<GetNetworkingSdnResult> InvokeAsync(GetNetworkingSdnArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkingSdnResult> Invoke(GetNetworkingSdnInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkingSdnResult> getNetworkingSdn(GetNetworkingSdnArgs args, InvokeOptions options)
public static Output<GetNetworkingSdnResult> getNetworkingSdn(GetNetworkingSdnArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getNetworkingSdn:getNetworkingSdn
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- string → ID of the resource.
- Id string
- string → ID of the resource.
- id String
- string → ID of the resource.
- id string
- string → ID of the resource.
- id str
- string → ID of the resource.
- id String
- string → ID of the resource.
getNetworkingSdn Result
The following output properties are available:
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.