vkcs.NetworkingPortSecgroupAssociate
Explore with Pulumi AI
Example Usage
Append a security group to an existing port
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const appendSecgroups = new vkcs.NetworkingPortSecgroupAssociate("appendSecgroups", {
portId: vkcs_networking_port.persistent_etcd.id,
securityGroupIds: [vkcs_networking_secgroup.etcd.id],
});
import pulumi
import pulumi_vkcs as vkcs
append_secgroups = vkcs.NetworkingPortSecgroupAssociate("appendSecgroups",
port_id=vkcs_networking_port["persistent_etcd"]["id"],
security_group_ids=[vkcs_networking_secgroup["etcd"]["id"]])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewNetworkingPortSecgroupAssociate(ctx, "appendSecgroups", &vkcs.NetworkingPortSecgroupAssociateArgs{
PortId: pulumi.Any(vkcs_networking_port.Persistent_etcd.Id),
SecurityGroupIds: pulumi.StringArray{
vkcs_networking_secgroup.Etcd.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var appendSecgroups = new Vkcs.NetworkingPortSecgroupAssociate("appendSecgroups", new()
{
PortId = vkcs_networking_port.Persistent_etcd.Id,
SecurityGroupIds = new[]
{
vkcs_networking_secgroup.Etcd.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociate;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var appendSecgroups = new NetworkingPortSecgroupAssociate("appendSecgroups", NetworkingPortSecgroupAssociateArgs.builder()
.portId(vkcs_networking_port.persistent_etcd().id())
.securityGroupIds(vkcs_networking_secgroup.etcd().id())
.build());
}
}
resources:
appendSecgroups:
type: vkcs:NetworkingPortSecgroupAssociate
properties:
portId: ${vkcs_networking_port.persistent_etcd.id}
securityGroupIds:
- ${vkcs_networking_secgroup.etcd.id}
Enforce a security group to an existing port
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const replaceSecgroups = new vkcs.NetworkingPortSecgroupAssociate("replaceSecgroups", {
portId: vkcs_networking_port.persistent_etcd.id,
securityGroupIds: [vkcs_networking_secgroup.http.id],
enforce: true,
});
import pulumi
import pulumi_vkcs as vkcs
replace_secgroups = vkcs.NetworkingPortSecgroupAssociate("replaceSecgroups",
port_id=vkcs_networking_port["persistent_etcd"]["id"],
security_group_ids=[vkcs_networking_secgroup["http"]["id"]],
enforce=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewNetworkingPortSecgroupAssociate(ctx, "replaceSecgroups", &vkcs.NetworkingPortSecgroupAssociateArgs{
PortId: pulumi.Any(vkcs_networking_port.Persistent_etcd.Id),
SecurityGroupIds: pulumi.StringArray{
vkcs_networking_secgroup.Http.Id,
},
Enforce: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var replaceSecgroups = new Vkcs.NetworkingPortSecgroupAssociate("replaceSecgroups", new()
{
PortId = vkcs_networking_port.Persistent_etcd.Id,
SecurityGroupIds = new[]
{
vkcs_networking_secgroup.Http.Id,
},
Enforce = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociate;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var replaceSecgroups = new NetworkingPortSecgroupAssociate("replaceSecgroups", NetworkingPortSecgroupAssociateArgs.builder()
.portId(vkcs_networking_port.persistent_etcd().id())
.securityGroupIds(vkcs_networking_secgroup.http().id())
.enforce(true)
.build());
}
}
resources:
replaceSecgroups:
type: vkcs:NetworkingPortSecgroupAssociate
properties:
portId: ${vkcs_networking_port.persistent_etcd.id}
securityGroupIds:
- ${vkcs_networking_secgroup.http.id}
enforce: true
Remove all security groups from an existing port
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const removeSecgroups = new vkcs.NetworkingPortSecgroupAssociate("removeSecgroups", {
portId: vkcs_networking_port.persistent_etcd.id,
securityGroupIds: [],
enforce: true,
});
import pulumi
import pulumi_vkcs as vkcs
remove_secgroups = vkcs.NetworkingPortSecgroupAssociate("removeSecgroups",
port_id=vkcs_networking_port["persistent_etcd"]["id"],
security_group_ids=[],
enforce=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewNetworkingPortSecgroupAssociate(ctx, "removeSecgroups", &vkcs.NetworkingPortSecgroupAssociateArgs{
PortId: pulumi.Any(vkcs_networking_port.Persistent_etcd.Id),
SecurityGroupIds: pulumi.StringArray{},
Enforce: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var removeSecgroups = new Vkcs.NetworkingPortSecgroupAssociate("removeSecgroups", new()
{
PortId = vkcs_networking_port.Persistent_etcd.Id,
SecurityGroupIds = new[] {},
Enforce = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociate;
import com.pulumi.vkcs.NetworkingPortSecgroupAssociateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var removeSecgroups = new NetworkingPortSecgroupAssociate("removeSecgroups", NetworkingPortSecgroupAssociateArgs.builder()
.portId(vkcs_networking_port.persistent_etcd().id())
.securityGroupIds()
.enforce(true)
.build());
}
}
resources:
removeSecgroups:
type: vkcs:NetworkingPortSecgroupAssociate
properties:
portId: ${vkcs_networking_port.persistent_etcd.id}
securityGroupIds: []
enforce: true
Create NetworkingPortSecgroupAssociate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkingPortSecgroupAssociate(name: string, args: NetworkingPortSecgroupAssociateArgs, opts?: CustomResourceOptions);
@overload
def NetworkingPortSecgroupAssociate(resource_name: str,
args: NetworkingPortSecgroupAssociateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkingPortSecgroupAssociate(resource_name: str,
opts: Optional[ResourceOptions] = None,
port_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
enforce: Optional[bool] = None,
networking_port_secgroup_associate_id: Optional[str] = None,
region: Optional[str] = None,
sdn: Optional[str] = None)
func NewNetworkingPortSecgroupAssociate(ctx *Context, name string, args NetworkingPortSecgroupAssociateArgs, opts ...ResourceOption) (*NetworkingPortSecgroupAssociate, error)
public NetworkingPortSecgroupAssociate(string name, NetworkingPortSecgroupAssociateArgs args, CustomResourceOptions? opts = null)
public NetworkingPortSecgroupAssociate(String name, NetworkingPortSecgroupAssociateArgs args)
public NetworkingPortSecgroupAssociate(String name, NetworkingPortSecgroupAssociateArgs args, CustomResourceOptions options)
type: vkcs:NetworkingPortSecgroupAssociate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkingPortSecgroupAssociateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkingPortSecgroupAssociateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkingPortSecgroupAssociateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkingPortSecgroupAssociateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkingPortSecgroupAssociateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkingPortSecgroupAssociateResource = new Vkcs.NetworkingPortSecgroupAssociate("networkingPortSecgroupAssociateResource", new()
{
PortId = "string",
SecurityGroupIds = new[]
{
"string",
},
Enforce = false,
NetworkingPortSecgroupAssociateId = "string",
Region = "string",
Sdn = "string",
});
example, err := vkcs.NewNetworkingPortSecgroupAssociate(ctx, "networkingPortSecgroupAssociateResource", &vkcs.NetworkingPortSecgroupAssociateArgs{
PortId: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Enforce: pulumi.Bool(false),
NetworkingPortSecgroupAssociateId: pulumi.String("string"),
Region: pulumi.String("string"),
Sdn: pulumi.String("string"),
})
var networkingPortSecgroupAssociateResource = new NetworkingPortSecgroupAssociate("networkingPortSecgroupAssociateResource", NetworkingPortSecgroupAssociateArgs.builder()
.portId("string")
.securityGroupIds("string")
.enforce(false)
.networkingPortSecgroupAssociateId("string")
.region("string")
.sdn("string")
.build());
networking_port_secgroup_associate_resource = vkcs.NetworkingPortSecgroupAssociate("networkingPortSecgroupAssociateResource",
port_id="string",
security_group_ids=["string"],
enforce=False,
networking_port_secgroup_associate_id="string",
region="string",
sdn="string")
const networkingPortSecgroupAssociateResource = new vkcs.NetworkingPortSecgroupAssociate("networkingPortSecgroupAssociateResource", {
portId: "string",
securityGroupIds: ["string"],
enforce: false,
networkingPortSecgroupAssociateId: "string",
region: "string",
sdn: "string",
});
type: vkcs:NetworkingPortSecgroupAssociate
properties:
enforce: false
networkingPortSecgroupAssociateId: string
portId: string
region: string
sdn: string
securityGroupIds:
- string
NetworkingPortSecgroupAssociate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkingPortSecgroupAssociate resource accepts the following input properties:
- Port
Id string - required string → An UUID of the port to apply security groups to.
- Security
Group List<string>Ids - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - Networking
Port stringSecgroup Associate Id - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the 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. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Port
Id string - required string → An UUID of the port to apply security groups to.
- Security
Group []stringIds - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - Networking
Port stringSecgroup Associate Id - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the 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. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- port
Id String - required string → An UUID of the port to apply security groups to.
- security
Group List<String>Ids - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port StringSecgroup Associate Id - string → ID of the resource.
- region String
- optional string → The region in which to obtain the 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. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- port
Id string - required string → An UUID of the port to apply security groups to.
- security
Group string[]Ids - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port stringSecgroup Associate Id - string → ID of the resource.
- region string
- optional string → The region in which to obtain the 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. - sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- port_
id str - required string → An UUID of the port to apply security groups to.
- security_
group_ Sequence[str]ids - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking_
port_ strsecgroup_ associate_ id - string → ID of the resource.
- region str
- optional string → The region in which to obtain the 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. - sdn str
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- port
Id String - required string → An UUID of the port to apply security groups to.
- security
Group List<String>Ids - required set of 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
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port StringSecgroup Associate Id - string → ID of the resource.
- region String
- optional string → The region in which to obtain the 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. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkingPortSecgroupAssociate resource produces the following output properties:
- All
Security List<string>Group Ids - set of 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 []stringGroup Ids - set of 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 List<String>Group Ids - set of 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 string[]Group Ids - set of 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_ Sequence[str]group_ ids - set of string → 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.
- all
Security List<String>Group Ids - set of 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.
Look up Existing NetworkingPortSecgroupAssociate Resource
Get an existing NetworkingPortSecgroupAssociate 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?: NetworkingPortSecgroupAssociateState, opts?: CustomResourceOptions): NetworkingPortSecgroupAssociate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_security_group_ids: Optional[Sequence[str]] = None,
enforce: Optional[bool] = None,
networking_port_secgroup_associate_id: Optional[str] = None,
port_id: Optional[str] = None,
region: Optional[str] = None,
sdn: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None) -> NetworkingPortSecgroupAssociate
func GetNetworkingPortSecgroupAssociate(ctx *Context, name string, id IDInput, state *NetworkingPortSecgroupAssociateState, opts ...ResourceOption) (*NetworkingPortSecgroupAssociate, error)
public static NetworkingPortSecgroupAssociate Get(string name, Input<string> id, NetworkingPortSecgroupAssociateState? state, CustomResourceOptions? opts = null)
public static NetworkingPortSecgroupAssociate get(String name, Output<String> id, NetworkingPortSecgroupAssociateState state, CustomResourceOptions options)
resources: _: type: vkcs:NetworkingPortSecgroupAssociate get: id: ${id}
- 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.
- 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.
- All
Security List<string>Group Ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Enforce bool
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - Networking
Port stringSecgroup Associate Id - string → ID of the resource.
- Port
Id string - required string → An UUID of the port to apply security groups to.
- Region string
- optional string → The region in which to obtain the 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. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Security
Group List<string>Ids - required set of 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 []stringGroup Ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- Enforce bool
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - Networking
Port stringSecgroup Associate Id - string → ID of the resource.
- Port
Id string - required string → An UUID of the port to apply security groups to.
- Region string
- optional string → The region in which to obtain the 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. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Security
Group []stringIds - required set of 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 List<String>Group Ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce Boolean
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port StringSecgroup Associate Id - string → ID of the resource.
- port
Id String - required string → An UUID of the port to apply security groups to.
- region String
- optional string → The region in which to obtain the 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. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- security
Group List<String>Ids - required set of 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 string[]Group Ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce boolean
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port stringSecgroup Associate Id - string → ID of the resource.
- port
Id string - required string → An UUID of the port to apply security groups to.
- region string
- optional string → The region in which to obtain the 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. - sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- security
Group string[]Ids - required set of 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_ Sequence[str]group_ ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce bool
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking_
port_ strsecgroup_ associate_ id - string → ID of the resource.
- port_
id str - required string → An UUID of the port to apply security groups to.
- region str
- optional string → The region in which to obtain the 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. - sdn str
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- security_
group_ Sequence[str]ids - required set of 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 List<String>Group Ids - set of string → The collection of Security Group IDs on the port which have been explicitly and implicitly added.
- enforce Boolean
- optional boolean → Whether to replace or append the list of security groups, specified in the
security_group_ids
. Defaults tofalse
. - networking
Port StringSecgroup Associate Id - string → ID of the resource.
- port
Id String - required string → An UUID of the port to apply security groups to.
- region String
- optional string → The region in which to obtain the 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. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- security
Group List<String>Ids - required set of 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).
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.