1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. NetworkingSecgroupV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.NetworkingSecgroupV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Import

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

    $ pulumi import opentelekomcloud:index/networkingSecgroupV2:NetworkingSecgroupV2 secgroup_1 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: opentelekomcloud: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 Opentelekomcloud.NetworkingSecgroupV2("networkingSecgroupV2Resource", new()
    {
        DeleteDefaultRules = false,
        Description = "string",
        Name = "string",
        NetworkingSecgroupV2Id = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.NetworkingSecgroupV2TimeoutsArgs
        {
            Delete = "string",
        },
    });
    
    example, err := opentelekomcloud.NewNetworkingSecgroupV2(ctx, "networkingSecgroupV2Resource", &opentelekomcloud.NetworkingSecgroupV2Args{
    	DeleteDefaultRules:     pulumi.Bool(false),
    	Description:            pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	NetworkingSecgroupV2Id: pulumi.String("string"),
    	Region:                 pulumi.String("string"),
    	TenantId:               pulumi.String("string"),
    	Timeouts: &opentelekomcloud.NetworkingSecgroupV2TimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    })
    
    var networkingSecgroupV2Resource = new NetworkingSecgroupV2("networkingSecgroupV2Resource", NetworkingSecgroupV2Args.builder()
        .deleteDefaultRules(false)
        .description("string")
        .name("string")
        .networkingSecgroupV2Id("string")
        .region("string")
        .tenantId("string")
        .timeouts(NetworkingSecgroupV2TimeoutsArgs.builder()
            .delete("string")
            .build())
        .build());
    
    networking_secgroup_v2_resource = opentelekomcloud.NetworkingSecgroupV2("networkingSecgroupV2Resource",
        delete_default_rules=False,
        description="string",
        name="string",
        networking_secgroup_v2_id="string",
        region="string",
        tenant_id="string",
        timeouts={
            "delete": "string",
        })
    
    const networkingSecgroupV2Resource = new opentelekomcloud.NetworkingSecgroupV2("networkingSecgroupV2Resource", {
        deleteDefaultRules: false,
        description: "string",
        name: "string",
        networkingSecgroupV2Id: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            "delete": "string",
        },
    });
    
    type: opentelekomcloud:NetworkingSecgroupV2
    properties:
        deleteDefaultRules: false
        description: string
        name: string
        networkingSecgroupV2Id: string
        region: string
        tenantId: 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.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    Region string
    TenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    Timeouts NetworkingSecgroupV2Timeouts
    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    Region string
    TenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    Timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules Boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description String
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    region String
    tenantId String
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2Timeouts
    deleteDefaultRules boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description string
    A unique name for the security group.
    name string
    A unique name for the security group.
    networkingSecgroupV2Id string
    region string
    tenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2Timeouts
    delete_default_rules bool
    Whether or not to delete the default egress security rules. This is false by default.
    description str
    A unique name for the security group.
    name str
    A unique name for the security group.
    networking_secgroup_v2_id str
    region str
    tenant_id str
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules Boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description String
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    region String
    tenantId String
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    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: opentelekomcloud: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.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    Region string
    TenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    Timeouts NetworkingSecgroupV2Timeouts
    DeleteDefaultRules bool
    Whether or not to delete the default egress security rules. This is false by default.
    Description string
    A unique name for the security group.
    Name string
    A unique name for the security group.
    NetworkingSecgroupV2Id string
    Region string
    TenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    Timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules Boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description String
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    region String
    tenantId String
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2Timeouts
    deleteDefaultRules boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description string
    A unique name for the security group.
    name string
    A unique name for the security group.
    networkingSecgroupV2Id string
    region string
    tenantId string
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2Timeouts
    delete_default_rules bool
    Whether or not to delete the default egress security rules. This is false by default.
    description str
    A unique name for the security group.
    name str
    A unique name for the security group.
    networking_secgroup_v2_id str
    region str
    tenant_id str
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts NetworkingSecgroupV2TimeoutsArgs
    deleteDefaultRules Boolean
    Whether or not to delete the default egress security rules. This is false by default.
    description String
    A unique name for the security group.
    name String
    A unique name for the security group.
    networkingSecgroupV2Id String
    region String
    tenantId String
    The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group.
    timeouts Property Map

    Supporting Types

    NetworkingSecgroupV2Timeouts, NetworkingSecgroupV2TimeoutsArgs

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud