1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getNetworkingSecgroup
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getNetworkingSecgroup

Explore with Pulumi AI

Use this data source to get the ID of an available VKCS security group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";

const etcd = vkcs.getNetworkingSecgroup({
    name: "etcd-tf-example",
});
Copy
import pulumi
import pulumi_vkcs as vkcs

etcd = vkcs.get_networking_secgroup(name="etcd-tf-example")
Copy
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.LookupNetworkingSecgroup(ctx, &vkcs.LookupNetworkingSecgroupArgs{
			Name: pulumi.StringRef("etcd-tf-example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;

return await Deployment.RunAsync(() => 
{
    var etcd = Vkcs.GetNetworkingSecgroup.Invoke(new()
    {
        Name = "etcd-tf-example",
    });

});
Copy
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.GetNetworkingSecgroupArgs;
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 etcd = VkcsFunctions.getNetworkingSecgroup(GetNetworkingSecgroupArgs.builder()
            .name("etcd-tf-example")
            .build());

    }
}
Copy
variables:
  etcd:
    fn::invoke:
      function: vkcs:getNetworkingSecgroup
      arguments:
        name: etcd-tf-example
Copy

Using getNetworkingSecgroup

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 getNetworkingSecgroup(args: GetNetworkingSecgroupArgs, opts?: InvokeOptions): Promise<GetNetworkingSecgroupResult>
function getNetworkingSecgroupOutput(args: GetNetworkingSecgroupOutputArgs, opts?: InvokeOptions): Output<GetNetworkingSecgroupResult>
Copy
def get_networking_secgroup(description: Optional[str] = None,
                            id: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None,
                            sdn: Optional[str] = None,
                            secgroup_id: Optional[str] = None,
                            tags: Optional[Sequence[str]] = None,
                            tenant_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetNetworkingSecgroupResult
def get_networking_secgroup_output(description: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            sdn: Optional[pulumi.Input[str]] = None,
                            secgroup_id: Optional[pulumi.Input[str]] = None,
                            tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            tenant_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingSecgroupResult]
Copy
func LookupNetworkingSecgroup(ctx *Context, args *LookupNetworkingSecgroupArgs, opts ...InvokeOption) (*LookupNetworkingSecgroupResult, error)
func LookupNetworkingSecgroupOutput(ctx *Context, args *LookupNetworkingSecgroupOutputArgs, opts ...InvokeOption) LookupNetworkingSecgroupResultOutput
Copy

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

public static class GetNetworkingSecgroup 
{
    public static Task<GetNetworkingSecgroupResult> InvokeAsync(GetNetworkingSecgroupArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkingSecgroupResult> Invoke(GetNetworkingSecgroupInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkingSecgroupResult> getNetworkingSecgroup(GetNetworkingSecgroupArgs args, InvokeOptions options)
public static Output<GetNetworkingSecgroupResult> getNetworkingSecgroup(GetNetworkingSecgroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vkcs:index/getNetworkingSecgroup:getNetworkingSecgroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Description string
optional string → Human-readable description the the subnet.
Id string
optional string → The ID of the security group.
Name string
optional string → The name of the security group.
Region string
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
Sdn string
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
SecgroupId string
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

Tags List<string>
optional set of string → The list of security group tags to filter.
TenantId string
optional string → The owner of the security group.
Description string
optional string → Human-readable description the the subnet.
Id string
optional string → The ID of the security group.
Name string
optional string → The name of the security group.
Region string
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
Sdn string
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
SecgroupId string
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

Tags []string
optional set of string → The list of security group tags to filter.
TenantId string
optional string → The owner of the security group.
description String
optional string → Human-readable description the the subnet.
id String
optional string → The ID of the security group.
name String
optional string → The name of the security group.
region String
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
sdn String
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
secgroupId String
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

tags List<String>
optional set of string → The list of security group tags to filter.
tenantId String
optional string → The owner of the security group.
description string
optional string → Human-readable description the the subnet.
id string
optional string → The ID of the security group.
name string
optional string → The name of the security group.
region string
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
sdn string
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
secgroupId string
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

tags string[]
optional set of string → The list of security group tags to filter.
tenantId string
optional string → The owner of the security group.
description str
optional string → Human-readable description the the subnet.
id str
optional string → The ID of the security group.
name str
optional string → The name of the security group.
region str
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
sdn str
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
secgroup_id str
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

tags Sequence[str]
optional set of string → The list of security group tags to filter.
tenant_id str
optional string → The owner of the security group.
description String
optional string → Human-readable description the the subnet.
id String
optional string → The ID of the security group.
name String
optional string → The name of the security group.
region String
optional string → The region in which to obtain the Network client. A Network client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
sdn String
optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
secgroupId String
optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the id attribute instead.

Deprecated: Deprecated

tags List<String>
optional set of string → The list of security group tags to filter.
tenantId String
optional string → The owner of the security group.

getNetworkingSecgroup Result

The following output properties are available:

AllTags List<string>
set of string → The set of string tags applied on the security group.
Id string
Region string
SecgroupId string

Deprecated: Deprecated

TenantId string
Description string
Name string
Sdn string
Tags List<string>
AllTags []string
set of string → The set of string tags applied on the security group.
Id string
Region string
SecgroupId string

Deprecated: Deprecated

TenantId string
Description string
Name string
Sdn string
Tags []string
allTags List<String>
set of string → The set of string tags applied on the security group.
id String
region String
secgroupId String

Deprecated: Deprecated

tenantId String
description String
name String
sdn String
tags List<String>
allTags string[]
set of string → The set of string tags applied on the security group.
id string
region string
secgroupId string

Deprecated: Deprecated

tenantId string
description string
name string
sdn string
tags string[]
all_tags Sequence[str]
set of string → The set of string tags applied on the security group.
id str
region str
secgroup_id str

Deprecated: Deprecated

tenant_id str
description str
name str
sdn str
tags Sequence[str]
allTags List<String>
set of string → The set of string tags applied on the security group.
id String
region String
secgroupId String

Deprecated: Deprecated

tenantId String
description String
name String
sdn String
tags List<String>

Package Details

Repository
vkcs vk-cs/terraform-provider-vkcs
License
Notes
This Pulumi package is based on the vkcs Terraform Provider.