Class PortSecGroupAssociate
Inherited Members
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class PortSecGroupAssociate : CustomResource
Constructors
View SourcePortSecGroupAssociate(String, PortSecGroupAssociateArgs, CustomResourceOptions)
Create a PortSecGroupAssociate resource with the given unique name, arguments, and options.
Declaration
public PortSecGroupAssociate(string name, PortSecGroupAssociateArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PortSecGroupAssociateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllSecurityGroupIds
The collection of Security Group IDs on the port which have been explicitly and implicitly added.
Declaration
public Output<ImmutableArray<string>> AllSecurityGroupIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Enforce
Whether to replace or append the list of security
groups, specified in the security_group_ids. Defaults to false.
Declaration
public Output<bool?> Enforce { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
PortId
An UUID of the port to apply security groups to.
Declaration
public Output<string> PortId { 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 manage a port. If omitted, the
region argument of the provider is used. Changing this creates a new
resource.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecurityGroupIds
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).
Declaration
public Output<ImmutableArray<string>> SecurityGroupIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, PortSecGroupAssociateState, CustomResourceOptions)
Get an existing PortSecGroupAssociate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static PortSecGroupAssociate Get(string name, Input<string> id, PortSecGroupAssociateState 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. |
| PortSecGroupAssociateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| PortSecGroupAssociate |