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",
});
import pulumi
import pulumi_vkcs as vkcs
etcd = vkcs.get_networking_secgroup(name="etcd-tf-example")
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
})
}
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",
});
});
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());
}
}
variables:
etcd:
fn::invoke:
function: vkcs:getNetworkingSecgroup
arguments:
name: etcd-tf-example
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>
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]
func LookupNetworkingSecgroup(ctx *Context, args *LookupNetworkingSecgroupArgs, opts ...InvokeOption) (*LookupNetworkingSecgroupResult, error)
func LookupNetworkingSecgroupOutput(ctx *Context, args *LookupNetworkingSecgroupOutputArgs, opts ...InvokeOption) LookupNetworkingSecgroupResultOutput
> 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)
}
public static CompletableFuture<GetNetworkingSecgroupResult> getNetworkingSecgroup(GetNetworkingSecgroupArgs args, InvokeOptions options)
public static Output<GetNetworkingSecgroupResult> getNetworkingSecgroup(GetNetworkingSecgroupArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getNetworkingSecgroup:getNetworkingSecgroup
arguments:
# arguments dictionary
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.
- Secgroup
Id string - optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - List<string>
- optional set of string → The list of security group tags to filter.
- Tenant
Id 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.
- Secgroup
Id string - optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - []string
- optional set of string → The list of security group tags to filter.
- Tenant
Id 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.
- secgroup
Id String - optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - List<String>
- optional set of string → The list of security group tags to filter.
- tenant
Id 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.
- secgroup
Id string - optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - string[]
- optional set of string → The list of security group tags to filter.
- tenant
Id 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. - 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.
- secgroup
Id String - optional deprecated string → The ID of the security group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - List<String>
- optional set of string → The list of security group tags to filter.
- tenant
Id String - optional string → The owner of the security group.
getNetworkingSecgroup Result
The following output properties are available:
- List<string>
- set of string → The set of string tags applied on the security group.
- Id string
- Region string
- Secgroup
Id string - Tenant
Id string - Description string
- Name string
- Sdn string
- List<string>
- []string
- set of string → The set of string tags applied on the security group.
- Id string
- Region string
- Secgroup
Id string - Tenant
Id string - Description string
- Name string
- Sdn string
- []string
- List<String>
- set of string → The set of string tags applied on the security group.
- id String
- region String
- secgroup
Id String - tenant
Id String - description String
- name String
- sdn String
- List<String>
- string[]
- set of string → The set of string tags applied on the security group.
- id string
- region string
- secgroup
Id string - tenant
Id string - description string
- name string
- sdn string
- string[]
- Sequence[str]
- set of string → The set of string tags applied on the security group.
- id str
- region str
- secgroup_
id str - tenant_
id str - description str
- name str
- sdn str
- Sequence[str]
- List<String>
- set of string → The set of string tags applied on the security group.
- id String
- region String
- secgroup
Id String - tenant
Id String - description String
- name String
- sdn String
- List<String>
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.