PortSecGroupAssociate

Create a PortSecGroupAssociate Resource

def PortSecGroupAssociate(resource_name, opts=None, enforce=None, port_id=None, region=None, security_group_ids=None, __props__=None);
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:

PortId string

An UUID of the port to apply security groups to.

SecurityGroupIds List<string>

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 to false.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the region argument of the provider is used. Changing this creates a new resource.

PortId string

An UUID of the port to apply security groups to.

SecurityGroupIds []string

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 to false.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the region argument of the provider is used. Changing this creates a new resource.

portId string

An UUID of the port to apply security groups to.

securityGroupIds string[]

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 to false.

region string

The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the region argument 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_ids List[str]

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 to false.

region str

The region in which to obtain the V2 networking client. A networking client is needed to manage a port. If omitted, the region argument 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:

AllSecurityGroupIds List<string>

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.
AllSecurityGroupIds []string

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.
allSecurityGroupIds string[]

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_group_ids List[str]

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.

static 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)
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:

AllSecurityGroupIds List<string>

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 to false.

PortId 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 region argument of the provider is used. Changing this creates a new resource.

SecurityGroupIds List<string>

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).

AllSecurityGroupIds []string

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 to false.

PortId 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 region argument of the provider is used. Changing this creates a new resource.

SecurityGroupIds []string

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).

allSecurityGroupIds string[]

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 to false.

portId 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 region argument of the provider is used. Changing this creates a new resource.

securityGroupIds string[]

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_group_ids List[str]

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 to false.

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 region argument of the provider is used. Changing this creates a new resource.

security_group_ids List[str]

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 openstack Terraform Provider.