SecGroup

Create a SecGroup Resource

def SecGroup(resource_name, opts=None, delete_default_rules=None, description=None, name=None, region=None, tags=None, tenant_id=None, __props__=None);
func NewSecGroup(ctx *Context, name string, args *SecGroupArgs, opts ...ResourceOption) (*SecGroup, error)
public SecGroup(string name, SecGroupArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SecGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SecGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SecGroup resource accepts the following input properties:

DeleteDefaultRules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

Description string

A unique name for the security group.

Name string

A unique name for the security group.

Region string

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.

Tags List<string>

A set of string tags for the security group.

TenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

DeleteDefaultRules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

Description string

A unique name for the security group.

Name string

A unique name for the security group.

Region string

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.

Tags []string

A set of string tags for the security group.

TenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

deleteDefaultRules boolean

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

description string

A unique name for the security group.

name string

A unique name for the security group.

region string

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.

tags string[]

A set of string tags for the security group.

tenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

delete_default_rules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

description str

A unique name for the security group.

name str

A unique name for the security group.

region str

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.

tags List[str]

A set of string tags for the security group.

tenant_id str

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecGroup resource produces the following output properties:

AllTags List<string>

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

Id string
The provider-assigned unique ID for this managed resource.
AllTags []string

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

Id string
The provider-assigned unique ID for this managed resource.
allTags string[]

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

id string
The provider-assigned unique ID for this managed resource.
all_tags List[str]

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing SecGroup Resource

Get an existing SecGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SecGroupState, opts?: CustomResourceOptions): SecGroup
static get(resource_name, id, opts=None, all_tags=None, delete_default_rules=None, description=None, name=None, region=None, tags=None, tenant_id=None, __props__=None);
func GetSecGroup(ctx *Context, name string, id IDInput, state *SecGroupState, opts ...ResourceOption) (*SecGroup, error)
public static SecGroup Get(string name, Input<string> id, SecGroupState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AllTags List<string>

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

DeleteDefaultRules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

Description string

A unique name for the security group.

Name string

A unique name for the security group.

Region string

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.

Tags List<string>

A set of string tags for the security group.

TenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

AllTags []string

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

DeleteDefaultRules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

Description string

A unique name for the security group.

Name string

A unique name for the security group.

Region string

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.

Tags []string

A set of string tags for the security group.

TenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

allTags string[]

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

deleteDefaultRules boolean

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

description string

A unique name for the security group.

name string

A unique name for the security group.

region string

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.

tags string[]

A set of string tags for the security group.

tenantId string

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

all_tags List[str]

The collection of tags assigned on the security group, which have been explicitly and implicitly added.

delete_default_rules bool

Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.

description str

A unique name for the security group.

name str

A unique name for the security group.

region str

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.

tags List[str]

A set of string tags for the security group.

tenant_id str

The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.