opentelekomcloud.VpcSecgroupRuleV3
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). - Security
Group stringId - 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.
- Ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - Multi
Port 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - Remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
Vpc
Secgroup Rule V3Timeouts - Vpc
Secgroup stringRule V3Id - Security Group Rule ID.
- Direction string
- Specifies inbound or outbound direction of a security group rule. Supported values:
ingress
(inbound direction),egress
(outbound direction). - Security
Group stringId - 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.
- Ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - Multi
Port 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - Remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
Vpc
Secgroup Rule V3Timeouts Args - Vpc
Secgroup stringRule V3Id - Security Group Rule ID.
- direction String
- Specifies inbound or outbound direction of a security group rule. Supported values:
ingress
(inbound direction),egress
(outbound direction). - security
Group StringId - 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.
- ether
Type String - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Group StringId - 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 StringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
Vpc
Secgroup Rule V3Timeouts - vpc
Secgroup StringRule V3Id - Security Group Rule ID.
- direction string
- Specifies inbound or outbound direction of a security group rule. Supported values:
ingress
(inbound direction),egress
(outbound direction). - security
Group stringId - 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.
- ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
Vpc
Secgroup Rule V3Timeouts - vpc
Secgroup stringRule V3Id - 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_ strid - 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote_
group_ strid - 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_ strprefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
Vpc
Secgroup Rule V3Timeouts Args - vpc_
secgroup_ strrule_ v3_ id - Security Group Rule ID.
- direction String
- Specifies inbound or outbound direction of a security group rule. Supported values:
ingress
(inbound direction),egress
(outbound direction). - security
Group StringId - 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.
- ether
Type String - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Group StringId - 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 StringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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
- vpc
Secgroup StringRule V3Id - Security Group Rule ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSecgroupRuleV3 resource produces the following output properties:
- Created
At 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.
- Project
Id string - Indicates the project ID.
- Remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - Updated
At 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 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.
- Project
Id string - Indicates the project ID.
- Remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - Updated
At 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 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.
- project
Id String - Indicates the project ID.
- remote
Address StringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - updated
At 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 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.
- project
Id string - Indicates the project ID.
- remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - updated
At 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_ strgroup_ id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_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.
- created
At 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.
- project
Id String - Indicates the project ID.
- remote
Address StringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - updated
At 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.
- Action string
- Specifies the action of the security group rule. Supported values:
allow
,deny
. Default value:allow
. - Created
At 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). - Ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - Multi
Port 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
. - Project
Id string - Indicates the project ID.
- Protocol string
- Specifies the protocol type. The value can be
icmp
,tcp
,udp
,icmpv6
or anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - Remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - Remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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 stringId - Specifies the ID of the security group to which the security group rule belongs.
- Timeouts
Vpc
Secgroup Rule V3Timeouts - Updated
At string - Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Vpc
Secgroup stringRule V3Id - Security Group Rule ID.
- Action string
- Specifies the action of the security group rule. Supported values:
allow
,deny
. Default value:allow
. - Created
At 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). - Ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - Multi
Port 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
. - Project
Id string - Indicates the project ID.
- Protocol string
- Specifies the protocol type. The value can be
icmp
,tcp
,udp
,icmpv6
or anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - Remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - Remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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 stringId - Specifies the ID of the security group to which the security group rule belongs.
- Timeouts
Vpc
Secgroup Rule V3Timeouts Args - Updated
At string - Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- Vpc
Secgroup stringRule V3Id - Security Group Rule ID.
- action String
- Specifies the action of the security group rule. Supported values:
allow
,deny
. Default value:allow
. - created
At 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). - ether
Type String - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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
. - project
Id String - Indicates the project ID.
- protocol String
- Specifies the protocol type. The value can be
icmp
,tcp
,udp
,icmpv6
or anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Address StringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - remote
Group StringId - 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 StringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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 StringId - Specifies the ID of the security group to which the security group rule belongs.
- timeouts
Vpc
Secgroup Rule V3Timeouts - updated
At String - Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup StringRule V3Id - Security Group Rule ID.
- action string
- Specifies the action of the security group rule. Supported values:
allow
,deny
. Default value:allow
. - created
At 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). - ether
Type string - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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
. - project
Id string - Indicates the project ID.
- protocol string
- Specifies the protocol type. The value can be
icmp
,tcp
,udp
,icmpv6
or anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Address stringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - remote
Group stringId - 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 stringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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 stringId - Specifies the ID of the security group to which the security group rule belongs.
- timeouts
Vpc
Secgroup Rule V3Timeouts - updated
At string - Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup stringRule V3Id - 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 anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote_
address_ strgroup_ id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - remote_
group_ strid - 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_ strprefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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_ strid - Specifies the ID of the security group to which the security group rule belongs.
- timeouts
Vpc
Secgroup Rule V3Timeouts Args - 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_ strrule_ v3_ id - Security Group Rule ID.
- action String
- Specifies the action of the security group rule. Supported values:
allow
,deny
. Default value:allow
. - created
At 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). - ether
Type String - Specifies the IP version. Supported values:
IPv4
,IPv6
. Default:IPv4
. - multi
Port 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
. - project
Id String - Indicates the project ID.
- protocol String
- Specifies the protocol type. The value can be
icmp
,tcp
,udp
,icmpv6
or anIP number (0 to 255)
. If the parameter is left blank, all protocols are supported. When the protocol isicmpv6
, IP version should beIPv6
. When the protocol isicmp
, IP version should beIPv4
. - remote
Address StringGroup Id - Indicates the ID of the remote IP address group. The parameter value is mutually exclusive with parameters
remote_ip_prefix
andremote_group_id
. - remote
Group StringId - 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 StringPrefix - Specifies the remote IP address. If
direction
is set toegress
, the parameter specifies the source IP address. Ifdirection
is set toingress
, the parameter specifies the destination IP address. The value is anIP address
or aCIDR block
. The parameter is mutually exclusive with parameterremote_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 StringId - Specifies the ID of the security group to which the security group rule belongs.
- timeouts Property Map
- updated
At String - Indicates the time when the security group rule was updated. It is a UTC time in yyyy-MM-ddTHH:mm:ssZ format.
- vpc
Secgroup StringRule V3Id - 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.