1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcSecgroupRuleV3
opentelekomcloud 1.36.49 published on Thursday, Oct 2, 2025 by opentelekomcloud

opentelekomcloud.VpcSecgroupRuleV3

Deploy with Pulumi
opentelekomcloud logo
opentelekomcloud 1.36.49 published on Thursday, Oct 2, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC security group rule you can get at documentation portal

    Manages a VPC security group rule v3 resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const securityGroupId = config.requireObject("securityGroupId");
    const rule1 = new opentelekomcloud.VpcSecgroupRuleV3("rule1", {
        securityGroupId: securityGroupId,
        description: "some basic security rule",
        direction: "ingress",
        protocol: "tcp",
        action: "allow",
        priority: 1,
        multiPort: "8080",
        remoteIpPrefix: "10.10.0.0/16",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    security_group_id = config.require_object("securityGroupId")
    rule1 = opentelekomcloud.VpcSecgroupRuleV3("rule1",
        security_group_id=security_group_id,
        description="some basic security rule",
        direction="ingress",
        protocol="tcp",
        action="allow",
        priority=1,
        multi_port="8080",
        remote_ip_prefix="10.10.0.0/16")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		securityGroupId := cfg.RequireObject("securityGroupId")
    		_, err := opentelekomcloud.NewVpcSecgroupRuleV3(ctx, "rule1", &opentelekomcloud.VpcSecgroupRuleV3Args{
    			SecurityGroupId: pulumi.Any(securityGroupId),
    			Description:     pulumi.String("some basic security rule"),
    			Direction:       pulumi.String("ingress"),
    			Protocol:        pulumi.String("tcp"),
    			Action:          pulumi.String("allow"),
    			Priority:        pulumi.Float64(1),
    			MultiPort:       pulumi.String("8080"),
    			RemoteIpPrefix:  pulumi.String("10.10.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var securityGroupId = config.RequireObject<dynamic>("securityGroupId");
        var rule1 = new Opentelekomcloud.VpcSecgroupRuleV3("rule1", new()
        {
            SecurityGroupId = securityGroupId,
            Description = "some basic security rule",
            Direction = "ingress",
            Protocol = "tcp",
            Action = "allow",
            Priority = 1,
            MultiPort = "8080",
            RemoteIpPrefix = "10.10.0.0/16",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpcSecgroupRuleV3;
    import com.pulumi.opentelekomcloud.VpcSecgroupRuleV3Args;
    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) {
            final var config = ctx.config();
            final var securityGroupId = config.get("securityGroupId");
            var rule1 = new VpcSecgroupRuleV3("rule1", VpcSecgroupRuleV3Args.builder()
                .securityGroupId(securityGroupId)
                .description("some basic security rule")
                .direction("ingress")
                .protocol("tcp")
                .action("allow")
                .priority(1)
                .multiPort("8080")
                .remoteIpPrefix("10.10.0.0/16")
                .build());
    
        }
    }
    
    configuration:
      securityGroupId:
        type: dynamic
    resources:
      rule1:
        type: opentelekomcloud:VpcSecgroupRuleV3
        properties:
          securityGroupId: ${securityGroupId}
          description: some basic security rule
          direction: ingress
          protocol: tcp
          action: allow
          priority: 1
          multiPort: '8080'
          remoteIpPrefix: 10.10.0.0/16
    

    Create VpcSecgroupRuleV3 Resource

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

    Constructor syntax

    new VpcSecgroupRuleV3(name: string, args: VpcSecgroupRuleV3Args, opts?: CustomResourceOptions);
    @overload
    def VpcSecgroupRuleV3(resource_name: str,
                          args: VpcSecgroupRuleV3Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcSecgroupRuleV3(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          direction: Optional[str] = None,
                          security_group_id: Optional[str] = None,
                          action: Optional[str] = None,
                          description: Optional[str] = None,
                          ether_type: Optional[str] = None,
                          multi_port: Optional[str] = None,
                          priority: Optional[float] = None,
                          protocol: Optional[str] = None,
                          remote_group_id: Optional[str] = None,
                          remote_ip_prefix: Optional[str] = None,
                          timeouts: Optional[VpcSecgroupRuleV3TimeoutsArgs] = None,
                          vpc_secgroup_rule_v3_id: Optional[str] = None)
    func NewVpcSecgroupRuleV3(ctx *Context, name string, args VpcSecgroupRuleV3Args, opts ...ResourceOption) (*VpcSecgroupRuleV3, error)
    public VpcSecgroupRuleV3(string name, VpcSecgroupRuleV3Args args, CustomResourceOptions? opts = null)
    public VpcSecgroupRuleV3(String name, VpcSecgroupRuleV3Args args)
    public VpcSecgroupRuleV3(String name, VpcSecgroupRuleV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcSecgroupRuleV3
    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 VpcSecgroupRuleV3Args
    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 VpcSecgroupRuleV3Args
    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 VpcSecgroupRuleV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcSecgroupRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcSecgroupRuleV3Args
    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 vpcSecgroupRuleV3Resource = new Opentelekomcloud.VpcSecgroupRuleV3("vpcSecgroupRuleV3Resource", new()
    {
        Direction = "string",
        SecurityGroupId = "string",
        Action = "string",
        Description = "string",
        EtherType = "string",
        MultiPort = "string",
        Priority = 0,
        Protocol = "string",
        RemoteGroupId = "string",
        RemoteIpPrefix = "string",
        Timeouts = new Opentelekomcloud.Inputs.VpcSecgroupRuleV3TimeoutsArgs
        {
            Delete = "string",
        },
        VpcSecgroupRuleV3Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpcSecgroupRuleV3(ctx, "vpcSecgroupRuleV3Resource", &opentelekomcloud.VpcSecgroupRuleV3Args{
    	Direction:       pulumi.String("string"),
    	SecurityGroupId: pulumi.String("string"),
    	Action:          pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	EtherType:       pulumi.String("string"),
    	MultiPort:       pulumi.String("string"),
    	Priority:        pulumi.Float64(0),
    	Protocol:        pulumi.String("string"),
    	RemoteGroupId:   pulumi.String("string"),
    	RemoteIpPrefix:  pulumi.String("string"),
    	Timeouts: &opentelekomcloud.VpcSecgroupRuleV3TimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    	VpcSecgroupRuleV3Id: pulumi.String("string"),
    })
    
    var vpcSecgroupRuleV3Resource = new VpcSecgroupRuleV3("vpcSecgroupRuleV3Resource", VpcSecgroupRuleV3Args.builder()
        .direction("string")
        .securityGroupId("string")
        .action("string")
        .description("string")
        .etherType("string")
        .multiPort("string")
        .priority(0.0)
        .protocol("string")
        .remoteGroupId("string")
        .remoteIpPrefix("string")
        .timeouts(VpcSecgroupRuleV3TimeoutsArgs.builder()
            .delete("string")
            .build())
        .vpcSecgroupRuleV3Id("string")
        .build());
    
    vpc_secgroup_rule_v3_resource = opentelekomcloud.VpcSecgroupRuleV3("vpcSecgroupRuleV3Resource",
        direction="string",
        security_group_id="string",
        action="string",
        description="string",
        ether_type="string",
        multi_port="string",
        priority=0,
        protocol="string",
        remote_group_id="string",
        remote_ip_prefix="string",
        timeouts={
            "delete": "string",
        },
        vpc_secgroup_rule_v3_id="string")
    
    const vpcSecgroupRuleV3Resource = new opentelekomcloud.VpcSecgroupRuleV3("vpcSecgroupRuleV3Resource", {
        direction: "string",
        securityGroupId: "string",
        action: "string",
        description: "string",
        etherType: "string",
        multiPort: "string",
        priority: 0,
        protocol: "string",
        remoteGroupId: "string",
        remoteIpPrefix: "string",
        timeouts: {
            "delete": "string",
        },
        vpcSecgroupRuleV3Id: "string",
    });
    
    type: opentelekomcloud:VpcSecgroupRuleV3
    properties:
        action: string
        description: string
        direction: string
        etherType: string
        multiPort: string
        priority: 0
        protocol: string
        remoteGroupId: string
        remoteIpPrefix: string
        securityGroupId: string
        timeouts:
            delete: string
        vpcSecgroupRuleV3Id: string
    

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

    Direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    SecurityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    Action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    Description string
    Provides supplementary information about the security group rule.
    EtherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    MultiPort string
    Priority double
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    Protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    RemoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    RemoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    Timeouts VpcSecgroupRuleV3Timeouts
    VpcSecgroupRuleV3Id string
    Security Group Rule ID.
    Direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    SecurityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    Action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    Description string
    Provides supplementary information about the security group rule.
    EtherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    MultiPort string
    Priority float64
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    Protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    RemoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    RemoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    Timeouts VpcSecgroupRuleV3TimeoutsArgs
    VpcSecgroupRuleV3Id string
    Security Group Rule ID.
    direction String
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    securityGroupId String
    Specifies the ID of the security group to which the security group rule belongs.
    action String
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    description String
    Provides supplementary information about the security group rule.
    etherType String
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort String
    priority Double
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    protocol String
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteGroupId String
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix String
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    timeouts VpcSecgroupRuleV3Timeouts
    vpcSecgroupRuleV3Id String
    Security Group Rule ID.
    direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    securityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    description string
    Provides supplementary information about the security group rule.
    etherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort string
    priority number
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    timeouts VpcSecgroupRuleV3Timeouts
    vpcSecgroupRuleV3Id string
    Security Group Rule ID.
    direction str
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    security_group_id str
    Specifies the ID of the security group to which the security group rule belongs.
    action str
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    description str
    Provides supplementary information about the security group rule.
    ether_type str
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multi_port str
    priority float
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    protocol str
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remote_group_id str
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remote_ip_prefix str
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    timeouts VpcSecgroupRuleV3TimeoutsArgs
    vpc_secgroup_rule_v3_id str
    Security Group Rule ID.
    direction String
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    securityGroupId String
    Specifies the ID of the security group to which the security group rule belongs.
    action String
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    description String
    Provides supplementary information about the security group rule.
    etherType String
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort String
    priority Number
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    protocol String
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteGroupId String
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix String
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    timeouts Property Map
    vpcSecgroupRuleV3Id String
    Security Group Rule ID.

    Outputs

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

    CreatedAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    RemoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    UpdatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    CreatedAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Indicates the project ID.
    RemoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    UpdatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt String
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    remoteAddressGroupId String
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    updatedAt String
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    Indicates the project ID.
    remoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    updatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    created_at str
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    Indicates the project ID.
    remote_address_group_id str
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    updated_at str
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    createdAt String
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Indicates the project ID.
    remoteAddressGroupId String
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    updatedAt String
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.

    Look up Existing VpcSecgroupRuleV3 Resource

    Get an existing VpcSecgroupRuleV3 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?: VpcSecgroupRuleV3State, opts?: CustomResourceOptions): VpcSecgroupRuleV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            direction: Optional[str] = None,
            ether_type: Optional[str] = None,
            multi_port: Optional[str] = None,
            priority: Optional[float] = None,
            project_id: Optional[str] = None,
            protocol: Optional[str] = None,
            remote_address_group_id: Optional[str] = None,
            remote_group_id: Optional[str] = None,
            remote_ip_prefix: Optional[str] = None,
            security_group_id: Optional[str] = None,
            timeouts: Optional[VpcSecgroupRuleV3TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            vpc_secgroup_rule_v3_id: Optional[str] = None) -> VpcSecgroupRuleV3
    func GetVpcSecgroupRuleV3(ctx *Context, name string, id IDInput, state *VpcSecgroupRuleV3State, opts ...ResourceOption) (*VpcSecgroupRuleV3, error)
    public static VpcSecgroupRuleV3 Get(string name, Input<string> id, VpcSecgroupRuleV3State? state, CustomResourceOptions? opts = null)
    public static VpcSecgroupRuleV3 get(String name, Output<String> id, VpcSecgroupRuleV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcSecgroupRuleV3    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:
    Action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    CreatedAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Description string
    Provides supplementary information about the security group rule.
    Direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    EtherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    MultiPort string
    Priority double
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    RemoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    RemoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    RemoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    SecurityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    Timeouts VpcSecgroupRuleV3Timeouts
    UpdatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    VpcSecgroupRuleV3Id string
    Security Group Rule ID.
    Action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    CreatedAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    Description string
    Provides supplementary information about the security group rule.
    Direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    EtherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    MultiPort string
    Priority float64
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    ProjectId string
    Indicates the project ID.
    Protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    RemoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    RemoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    RemoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    SecurityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    Timeouts VpcSecgroupRuleV3TimeoutsArgs
    UpdatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    VpcSecgroupRuleV3Id string
    Security Group Rule ID.
    action String
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    createdAt String
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description String
    Provides supplementary information about the security group rule.
    direction String
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    etherType String
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort String
    priority Double
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    projectId String
    Indicates the project ID.
    protocol String
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteAddressGroupId String
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    remoteGroupId String
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix String
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    securityGroupId String
    Specifies the ID of the security group to which the security group rule belongs.
    timeouts VpcSecgroupRuleV3Timeouts
    updatedAt String
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupRuleV3Id String
    Security Group Rule ID.
    action string
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    createdAt string
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description string
    Provides supplementary information about the security group rule.
    direction string
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    etherType string
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort string
    priority number
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    projectId string
    Indicates the project ID.
    protocol string
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteAddressGroupId string
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    remoteGroupId string
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix string
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    securityGroupId string
    Specifies the ID of the security group to which the security group rule belongs.
    timeouts VpcSecgroupRuleV3Timeouts
    updatedAt string
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupRuleV3Id string
    Security Group Rule ID.
    action str
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    created_at str
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description str
    Provides supplementary information about the security group rule.
    direction str
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    ether_type str
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multi_port str
    priority float
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    project_id str
    Indicates the project ID.
    protocol str
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remote_address_group_id str
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    remote_group_id str
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remote_ip_prefix str
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    security_group_id str
    Specifies the ID of the security group to which the security group rule belongs.
    timeouts VpcSecgroupRuleV3TimeoutsArgs
    updated_at str
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpc_secgroup_rule_v3_id str
    Security Group Rule ID.
    action String
    Specifies the action of the security group rule. Supported values: allow, deny. Default value: allow.
    createdAt String
    Indicates the time when the security group rule was created. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    description String
    Provides supplementary information about the security group rule.
    direction String
    Specifies inbound or outbound direction of a security group rule. Supported values: ingress (inbound direction), egress (outbound direction).
    etherType String
    Specifies the IP version. Supported values: IPv4, IPv6. Default: IPv4 .
    multiPort String
    priority Number
    Specifies the rule priority in a security group. The value is from 1 to 100. The value 1 indicates the highest priority. Default value: 1.
    projectId String
    Indicates the project ID.
    protocol String
    Specifies the protocol type. The value can be icmp, tcp, udp, icmpv6 or an IP number (0 to 255). If the parameter is left blank, all protocols are supported. When the protocol is icmpv6, IP version should be IPv6. When the protocol is icmp, IP version should be IPv4.
    remoteAddressGroupId String
    Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters remote_ip_prefix and remote_group_id.
    remoteGroupId String
    Specifies the ID of the remote security group, which allows or denies traffic to and from the security group. The value has to be the ID of an existing security group. The parameter is mutually exclusive with parameter remote_ip_prefix.
    remoteIpPrefix String
    Specifies the remote IP address. If direction is set to egress, the parameter specifies the source IP address. If direction is set to ingress, the parameter specifies the destination IP address. The value is an IP address or a CIDR block. The parameter is mutually exclusive with parameter remote_group_id. If this parameter is left blank, the remote IP address is not limited, and the traffic from all remote IP addresses is allowed or rejected.
    securityGroupId String
    Specifies the ID of the security group to which the security group rule belongs.
    timeouts Property Map
    updatedAt String
    Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
    vpcSecgroupRuleV3Id String
    Security Group Rule ID.

    Supporting Types

    VpcSecgroupRuleV3Timeouts, VpcSecgroupRuleV3TimeoutsArgs

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

    Import

    VPC Security Group Rule V3 can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpcSecgroupRuleV3:VpcSecgroupRuleV3 secgroup_rule_1 <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.49 published on Thursday, Oct 2, 2025 by opentelekomcloud
      Meet Neo: Your AI Platform Teammate