Class GetSecGroup
Inheritance
System.Object
GetSecGroup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public static class GetSecGroup
Methods
View SourceInvokeAsync(GetSecGroupArgs, InvokeOptions)
Use this data source to get the ID of an available OpenStack security group.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var secgroup = Output.Create(OpenStack.Networking.GetSecGroup.InvokeAsync(new OpenStack.Networking.GetSecGroupArgs
{
Name = "tf_test_secgroup",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSecGroupResult> InvokeAsync(GetSecGroupArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSecGroupArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSecGroupResult> |