1. Packages
  2. Vkcs Provider
  3. API Docs
  4. NetworkingSecgroup
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.NetworkingSecgroup

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    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:

    DeleteDefaultRules bool
    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.
    NetworkingSecgroupId string
    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.
    Tags List<string>
    optional set of string → A set of string tags for the security group.
    Timeouts NetworkingSecgroupTimeouts
    DeleteDefaultRules bool
    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.
    NetworkingSecgroupId string
    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.
    Tags []string
    optional set of string → A set of string tags for the security group.
    Timeouts NetworkingSecgroupTimeoutsArgs
    deleteDefaultRules Boolean
    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.
    networkingSecgroupId String
    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.
    tags List<String>
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeouts
    deleteDefaultRules boolean
    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.
    networkingSecgroupId string
    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.
    tags string[]
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeouts
    delete_default_rules bool
    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_id str
    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.
    tags Sequence[str]
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeoutsArgs
    deleteDefaultRules Boolean
    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.
    networkingSecgroupId String
    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.
    tags 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:

    AllTags 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.
    AllTags []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.
    allTags 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.
    allTags 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.
    all_tags 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.
    allTags 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.
    The following state arguments are supported:
    AllTags List<string>
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    DeleteDefaultRules bool
    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.
    NetworkingSecgroupId string
    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.
    Tags List<string>
    optional set of string → A set of string tags for the security group.
    Timeouts NetworkingSecgroupTimeouts
    AllTags []string
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    DeleteDefaultRules bool
    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.
    NetworkingSecgroupId string
    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.
    Tags []string
    optional set of string → A set of string tags for the security group.
    Timeouts NetworkingSecgroupTimeoutsArgs
    allTags List<String>
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    deleteDefaultRules Boolean
    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.
    networkingSecgroupId String
    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.
    tags List<String>
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeouts
    allTags string[]
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    deleteDefaultRules boolean
    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.
    networkingSecgroupId string
    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.
    tags string[]
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeouts
    all_tags Sequence[str]
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    delete_default_rules bool
    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_id str
    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.
    tags Sequence[str]
    optional set of string → A set of string tags for the security group.
    timeouts NetworkingSecgroupTimeoutsArgs
    allTags List<String>
    set of string → The collection of tags assigned on the security group, which have been explicitly and implicitly added.
    deleteDefaultRules Boolean
    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.
    networkingSecgroupId String
    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.
    tags 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.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs