vkcs.NetworkingSecgroup
Explore with Pulumi AI
Import
Security Groups can be imported using the id
, e.g.
$ pulumi import vkcs:index/networkingSecgroup:NetworkingSecgroup secgroup_1 38809219-5e8a-4852-9139-6f461c90e8bc
Create NetworkingSecgroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkingSecgroup(name: string, args?: NetworkingSecgroupArgs, opts?: CustomResourceOptions);
@overload
def NetworkingSecgroup(resource_name: str,
args: Optional[NetworkingSecgroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkingSecgroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_default_rules: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
networking_secgroup_id: Optional[str] = None,
region: Optional[str] = None,
sdn: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[NetworkingSecgroupTimeoutsArgs] = None)
func NewNetworkingSecgroup(ctx *Context, name string, args *NetworkingSecgroupArgs, opts ...ResourceOption) (*NetworkingSecgroup, error)
public NetworkingSecgroup(string name, NetworkingSecgroupArgs? args = null, CustomResourceOptions? opts = null)
public NetworkingSecgroup(String name, NetworkingSecgroupArgs args)
public NetworkingSecgroup(String name, NetworkingSecgroupArgs args, CustomResourceOptions options)
type: vkcs:NetworkingSecgroup
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 NetworkingSecgroupArgs
- 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 NetworkingSecgroupArgs
- 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 NetworkingSecgroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkingSecgroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkingSecgroupArgs
- 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 networkingSecgroupResource = new Vkcs.NetworkingSecgroup("networkingSecgroupResource", new()
{
DeleteDefaultRules = false,
Description = "string",
Name = "string",
NetworkingSecgroupId = "string",
Region = "string",
Sdn = "string",
Tags = new[]
{
"string",
},
Timeouts = new Vkcs.Inputs.NetworkingSecgroupTimeoutsArgs
{
Delete = "string",
},
});
example, err := vkcs.NewNetworkingSecgroup(ctx, "networkingSecgroupResource", &vkcs.NetworkingSecgroupArgs{
DeleteDefaultRules: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkingSecgroupId: pulumi.String("string"),
Region: pulumi.String("string"),
Sdn: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &vkcs.NetworkingSecgroupTimeoutsArgs{
Delete: pulumi.String("string"),
},
})
var networkingSecgroupResource = new NetworkingSecgroup("networkingSecgroupResource", NetworkingSecgroupArgs.builder()
.deleteDefaultRules(false)
.description("string")
.name("string")
.networkingSecgroupId("string")
.region("string")
.sdn("string")
.tags("string")
.timeouts(NetworkingSecgroupTimeoutsArgs.builder()
.delete("string")
.build())
.build());
networking_secgroup_resource = vkcs.NetworkingSecgroup("networkingSecgroupResource",
delete_default_rules=False,
description="string",
name="string",
networking_secgroup_id="string",
region="string",
sdn="string",
tags=["string"],
timeouts={
"delete": "string",
})
const networkingSecgroupResource = new vkcs.NetworkingSecgroup("networkingSecgroupResource", {
deleteDefaultRules: false,
description: "string",
name: "string",
networkingSecgroupId: "string",
region: "string",
sdn: "string",
tags: ["string"],
timeouts: {
"delete": "string",
},
});
type: vkcs:NetworkingSecgroup
properties:
deleteDefaultRules: false
description: string
name: string
networkingSecgroupId: string
region: string
sdn: string
tags:
- string
timeouts:
delete: string
NetworkingSecgroup 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 NetworkingSecgroup resource accepts the following input properties:
- Delete
Default boolRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - Description string
- optional string → A unique name for the security group.
- Name string
- required string → A unique name for the security group.
- Networking
Secgroup stringId - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<string>
- optional set of string → A set of string tags for the security group.
- Timeouts
Networking
Secgroup Timeouts
- Delete
Default boolRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - Description string
- optional string → A unique name for the security group.
- Name string
- required string → A unique name for the security group.
- Networking
Secgroup stringId - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- []string
- optional set of string → A set of string tags for the security group.
- Timeouts
Networking
Secgroup Timeouts Args
- delete
Default BooleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description String
- optional string → A unique name for the security group.
- name String
- required string → A unique name for the security group.
- networking
Secgroup StringId - string → ID of the resource.
- region String
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<String>
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts
- delete
Default booleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description string
- optional string → A unique name for the security group.
- name string
- required string → A unique name for the security group.
- networking
Secgroup stringId - string → ID of the resource.
- region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- string[]
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts
- delete_
default_ boolrules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description str
- optional string → A unique name for the security group.
- name str
- required string → A unique name for the security group.
- networking_
secgroup_ strid - string → ID of the resource.
- region str
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn str
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Sequence[str]
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts Args
- delete
Default BooleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description String
- optional string → A unique name for the security group.
- name String
- required string → A unique name for the security group.
- networking
Secgroup StringId - string → ID of the resource.
- region String
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<String>
- optional set of string → A set of string tags for the security group.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkingSecgroup resource produces the following output properties:
- List<string>
- set of 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.
- []string
- set of 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.
- List<String>
- set of 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.
- string[]
- set of 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.
- Sequence[str]
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- id str
- The provider-assigned unique ID for this managed resource.
- List<String>
- set of 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 Existing NetworkingSecgroup Resource
Get an existing NetworkingSecgroup 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?: NetworkingSecgroupState, opts?: CustomResourceOptions): NetworkingSecgroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_tags: Optional[Sequence[str]] = None,
delete_default_rules: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
networking_secgroup_id: Optional[str] = None,
region: Optional[str] = None,
sdn: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[NetworkingSecgroupTimeoutsArgs] = None) -> NetworkingSecgroup
func GetNetworkingSecgroup(ctx *Context, name string, id IDInput, state *NetworkingSecgroupState, opts ...ResourceOption) (*NetworkingSecgroup, error)
public static NetworkingSecgroup Get(string name, Input<string> id, NetworkingSecgroupState? state, CustomResourceOptions? opts = null)
public static NetworkingSecgroup get(String name, Output<String> id, NetworkingSecgroupState state, CustomResourceOptions options)
resources: _: type: vkcs:NetworkingSecgroup 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.
- List<string>
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- Delete
Default boolRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - Description string
- optional string → A unique name for the security group.
- Name string
- required string → A unique name for the security group.
- Networking
Secgroup stringId - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<string>
- optional set of string → A set of string tags for the security group.
- Timeouts
Networking
Secgroup Timeouts
- []string
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- Delete
Default boolRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - Description string
- optional string → A unique name for the security group.
- Name string
- required string → A unique name for the security group.
- Networking
Secgroup stringId - string → ID of the resource.
- Region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - Sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- []string
- optional set of string → A set of string tags for the security group.
- Timeouts
Networking
Secgroup Timeouts Args
- List<String>
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete
Default BooleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description String
- optional string → A unique name for the security group.
- name String
- required string → A unique name for the security group.
- networking
Secgroup StringId - string → ID of the resource.
- region String
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<String>
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts
- string[]
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete
Default booleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description string
- optional string → A unique name for the security group.
- name string
- required string → A unique name for the security group.
- networking
Secgroup stringId - string → ID of the resource.
- region string
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn string
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- string[]
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts
- Sequence[str]
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete_
default_ boolrules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description str
- optional string → A unique name for the security group.
- name str
- required string → A unique name for the security group.
- networking_
secgroup_ strid - string → ID of the resource.
- region str
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn str
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- Sequence[str]
- optional set of string → A set of string tags for the security group.
- timeouts
Networking
Secgroup Timeouts Args
- List<String>
- set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
- delete
Default BooleanRules - optional boolean → Whether or not to delete the default egress security rules. This is
false
by default. See the below note for more information. - description String
- optional string → A unique name for the security group.
- name String
- required string → A unique name for the security group.
- networking
Secgroup StringId - string → ID of the resource.
- region String
- optional string → The region in which to obtain the networking client. A networking client is needed to create a port. If omitted, the
region
argument of the provider is used. Changing this creates a new security group. - sdn String
- optional string → SDN to use for this resource. Must be one of following: "neutron", "sprut". Default value is project's default SDN.
- List<String>
- optional set of string → A set of string tags for the security group.
- timeouts Property Map
Supporting Types
NetworkingSecgroupTimeouts, NetworkingSecgroupTimeoutsArgs
- Delete string
- Delete string
- delete String
- delete string
- delete str
- delete String
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.