SecGroup
Create a SecGroup Resource
new SecGroup(name: string, args?: SecGroupArgs, opts?: CustomResourceOptions);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:
- Delete
Default boolRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- List<string>
A set of string tags for the security group.
- Tenant
Id 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 boolRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- []string
A set of string tags for the security group.
- Tenant
Id 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 booleanRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- string[]
A set of string tags for the security group.
- tenant
Id 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_ boolrules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- 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:
- 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.
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): SecGroupstatic 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:
- List<string>
The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- Delete
Default boolRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- List<string>
A set of string tags for the security group.
- Tenant
Id 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.
- []string
The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- Delete
Default boolRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- []string
A set of string tags for the security group.
- Tenant
Id 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.
- string[]
The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete
Default booleanRules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- string[]
A set of string tags for the security group.
- tenant
Id 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.
- List[str]
The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete_
default_ boolrules Whether or not to delete the default egress security rules. This is
falseby 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
regionargument of the provider is used. Changing this creates a new security group.- 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
openstackTerraform Provider.