1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NetworkingSecgroupV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NetworkingSecgroupV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Import

    Security Groups can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/networkingSecgroupV2:NetworkingSecgroupV2 example_secgroup 38809219-5e8a-4852-9139-6f461c90e8bc
    

    Create NetworkingSecgroupV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkingSecgroupV2(name: string, args?: NetworkingSecgroupV2Args, opts?: CustomResourceOptions);
    @overload
    def NetworkingSecgroupV2(resource_name: str,
                             args: Optional[NetworkingSecgroupV2Args] = None,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkingSecgroupV2(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             delete_default_rules: Optional[bool] = None,
                             description: Optional[str] = None,
                             name: Optional[str] = None,
                             networking_secgroup_v2_id: Optional[str] = None,
                             region: Optional[str] = None,
                             tenant_id: Optional[str] = None,
                             timeouts: Optional[NetworkingSecgroupV2TimeoutsArgs] = None)
    func NewNetworkingSecgroupV2(ctx *Context, name string, args *NetworkingSecgroupV2Args, opts ...ResourceOption) (*NetworkingSecgroupV2, error)
    public NetworkingSecgroupV2(string name, NetworkingSecgroupV2Args? args = null, CustomResourceOptions? opts = null)
    public NetworkingSecgroupV2(String name, NetworkingSecgroupV2Args args)
    public NetworkingSecgroupV2(String name, NetworkingSecgroupV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:NetworkingSecgroupV2
    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 NetworkingSecgroupV2Args
    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 NetworkingSecgroupV2Args
    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 NetworkingSecgroupV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkingSecgroupV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkingSecgroupV2Args
    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 networkingSecgroupV2Resource = new Flexibleengine.NetworkingSecgroupV2("networkingSecgroupV2Resource", new()
    {
        DeleteDefaultRules = false,
        Description = "string",
        Name = "string",
        NetworkingSecgroupV2Id = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.NetworkingSecgroupV2TimeoutsArgs
        {
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "networkingSecgroupV2Resource", &flexibleengine.NetworkingSecgroupV2Args{
    	DeleteDefaultRules:     pulumi.Bool(false),
    	Description:            pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	NetworkingSecgroupV2Id: pulumi.String("string"),
    	Region:                 pulumi.String("string"),
    	Timeouts: &flexibleengine.NetworkingSecgroupV2TimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    })
    
    var networkingSecgroupV2Resource = new NetworkingSecgroupV2("networkingSecgroupV2Resource", NetworkingSecgroupV2Args.builder()
        .deleteDefaultRules(false)
        .description("string")
        .name("string")
        .networkingSecgroupV2Id("string")
        .region("string")
        .timeouts(NetworkingSecgroupV2TimeoutsArgs.builder()
            .delete("string")
            .build())
        .build());
    
    networking_secgroup_v2_resource = flexibleengine.NetworkingSecgroupV2("networkingSecgroupV2Resource",
        delete_default_rules=False,
        description="string",
        name="string",
        networking_secgroup_v2_id="string",
        region="string",
        timeouts={
            "delete": "string",
        })
    
    const networkingSecgroupV2Resource = new flexibleengine.NetworkingSecgroupV2("networkingSecgroupV2Resource", {
        deleteDefaultRules: false,
        description: "string",
        name: "string",
        networkingSecgroupV2Id: "string",
        region: "string",
        timeouts: {
            "delete": "string",
        },
    });
    
    type: flexibleengine:NetworkingSecgroupV2
    properties:
        deleteDefaultRules: false
        description: string
        name: string
        networkingSecgroupV2Id: string
        region: string
        timeouts:
            delete: string
    

    NetworkingSecgroupV2 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 NetworkingSecgroupV2 resource accepts the following input properties:

    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    The resource ID in UUID format.
    Region string
    The region in which to obtain the V2 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.
    TenantId string
    The owner of the security group.

    Deprecated: Deprecated

    Timeouts NetworkingSecgroupV2Timeouts
    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    The resource ID in UUID format.
    Region string
    The region in which to obtain the V2 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.
    TenantId string
    The owner of the security group.

    Deprecated: Deprecated

    Timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules 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
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    The resource ID in UUID format.
    region String
    The region in which to obtain the V2 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.
    tenantId String
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2Timeouts
    deleteDefaultRules 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
    A unique name for the security group.
    name string
    A unique name for the security group.
    networkingSecgroupV2Id string
    The resource ID in UUID format.
    region string
    The region in which to obtain the V2 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.
    tenantId string
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2Timeouts
    delete_default_rules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    description str
    A unique name for the security group.
    name str
    A unique name for the security group.
    networking_secgroup_v2_id str
    The resource ID in UUID format.
    region str
    The region in which to obtain the V2 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.
    tenant_id str
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules 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
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    The resource ID in UUID format.
    region String
    The region in which to obtain the V2 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.
    tenantId String
    The owner of the security group.

    Deprecated: Deprecated

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkingSecgroupV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkingSecgroupV2 Resource

    Get an existing NetworkingSecgroupV2 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?: NetworkingSecgroupV2State, opts?: CustomResourceOptions): NetworkingSecgroupV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_default_rules: Optional[bool] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            networking_secgroup_v2_id: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[NetworkingSecgroupV2TimeoutsArgs] = None) -> NetworkingSecgroupV2
    func GetNetworkingSecgroupV2(ctx *Context, name string, id IDInput, state *NetworkingSecgroupV2State, opts ...ResourceOption) (*NetworkingSecgroupV2, error)
    public static NetworkingSecgroupV2 Get(string name, Input<string> id, NetworkingSecgroupV2State? state, CustomResourceOptions? opts = null)
    public static NetworkingSecgroupV2 get(String name, Output<String> id, NetworkingSecgroupV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:NetworkingSecgroupV2    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:
    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    The resource ID in UUID format.
    Region string
    The region in which to obtain the V2 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.
    TenantId string
    The owner of the security group.

    Deprecated: Deprecated

    Timeouts NetworkingSecgroupV2Timeouts
    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    The resource ID in UUID format.
    Region string
    The region in which to obtain the V2 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.
    TenantId string
    The owner of the security group.

    Deprecated: Deprecated

    Timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules 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
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    The resource ID in UUID format.
    region String
    The region in which to obtain the V2 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.
    tenantId String
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2Timeouts
    deleteDefaultRules 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
    A unique name for the security group.
    name string
    A unique name for the security group.
    networkingSecgroupV2Id string
    The resource ID in UUID format.
    region string
    The region in which to obtain the V2 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.
    tenantId string
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2Timeouts
    delete_default_rules bool
    Whether or not to delete the default egress security rules. This is false by default. See the below note for more information.
    description str
    A unique name for the security group.
    name str
    A unique name for the security group.
    networking_secgroup_v2_id str
    The resource ID in UUID format.
    region str
    The region in which to obtain the V2 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.
    tenant_id str
    The owner of the security group.

    Deprecated: Deprecated

    timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules 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
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    The resource ID in UUID format.
    region String
    The region in which to obtain the V2 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.
    tenantId String
    The owner of the security group.

    Deprecated: Deprecated

    timeouts Property Map

    Supporting Types

    NetworkingSecgroupV2Timeouts, NetworkingSecgroupV2TimeoutsArgs

    Delete string
    Delete string
    delete String
    delete string
    delete str
    delete String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud