PortSecGroupAssociate
Create a PortSecGroupAssociate Resource
new PortSecGroupAssociate(name: string, args: PortSecGroupAssociateArgs, opts?: CustomResourceOptions);def PortSecGroupAssociate(resource_name, opts=None, enforce=None, port_id=None, region=None, security_group_ids=None, __props__=None);func NewPortSecGroupAssociate(ctx *Context, name string, args PortSecGroupAssociateArgs, opts ...ResourceOption) (*PortSecGroupAssociate, error)public PortSecGroupAssociate(string name, PortSecGroupAssociateArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PortSecGroupAssociateArgs
- 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 PortSecGroupAssociateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortSecGroupAssociateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PortSecGroupAssociate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PortSecGroupAssociate resource accepts the following input properties:
- Port
Id string An UUID of the port to apply security groups to.
- Security
Group List<string>Ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- Enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- Region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.
- Port
Id string An UUID of the port to apply security groups to.
- Security
Group []stringIds A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- Enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- Region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.
- port
Id string An UUID of the port to apply security groups to.
- security
Group string[]Ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- enforce boolean
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.
- port_
id str An UUID of the port to apply security groups to.
- security_
group_ List[str]ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- region str
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PortSecGroupAssociate resource produces the following output properties:
- All
Security List<string>Group Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Id string
- The provider-assigned unique ID for this managed resource.
- All
Security []stringGroup Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Id string
- The provider-assigned unique ID for this managed resource.
- all
Security string[]Group Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- id string
- The provider-assigned unique ID for this managed resource.
- all_
security_ List[str]group_ ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing PortSecGroupAssociate Resource
Get an existing PortSecGroupAssociate 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?: PortSecGroupAssociateState, opts?: CustomResourceOptions): PortSecGroupAssociatestatic get(resource_name, id, opts=None, all_security_group_ids=None, enforce=None, port_id=None, region=None, security_group_ids=None, __props__=None);func GetPortSecGroupAssociate(ctx *Context, name string, id IDInput, state *PortSecGroupAssociateState, opts ...ResourceOption) (*PortSecGroupAssociate, error)public static PortSecGroupAssociate Get(string name, Input<string> id, PortSecGroupAssociateState? 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:
- All
Security List<string>Group Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- Port
Id string An UUID of the port to apply security groups to.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.- Security
Group List<string>Ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- All
Security []stringGroup Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- Port
Id string An UUID of the port to apply security groups to.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.- Security
Group []stringIds A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- all
Security string[]Group Ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce boolean
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- port
Id string An UUID of the port to apply security groups to.
- region string
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.- security
Group string[]Ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- all_
security_ List[str]group_ ids The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce bool
Whether to replace or append the list of security groups, specified in the
security_group_ids. Defaults tofalse.- port_
id str An UUID of the port to apply security groups to.
- region str
The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the
regionargument of the provider is used. Changing this creates a new resource.- security_
group_ List[str]ids A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.