Class SecGroup
Inherited Members
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class SecGroup : CustomResource
Constructors
View SourceSecGroup(String, SecGroupArgs, CustomResourceOptions)
Create a SecGroup resource with the given unique name, arguments, and options.
Declaration
public SecGroup(string name, SecGroupArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecGroupArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllTags
The collection of tags assigned on the security group, which have been explicitly and implicitly added.
Declaration
public Output<ImmutableArray<string>> AllTags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
DeleteDefaultRules
Whether or not to delete the default
egress security rules. This is false by default. See the below note
for more information.
Declaration
public Output<bool?> DeleteDefaultRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Description
A unique name for the security group.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
A unique name for the security group.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The region in which to obtain the V2 networking client.
A networking client is needed to create a port. If omitted, the
region argument of the provider is used. Changing this creates a new
security group.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A set of string tags for the security group.
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
TenantId
The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecGroupState, CustomResourceOptions)
Get an existing SecGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecGroup Get(string name, Input<string> id, SecGroupState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SecGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecGroup |