opentelekomcloud.CfwAddressGroupV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CFW address group you can get at documentation portal
Manages a CFW Address Group resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const objectId = config.requireObject("objectId");
const group1 = new opentelekomcloud.CfwAddressGroupV1("group1", {
objectId: objectId,
addressType: 0,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
object_id = config.require_object("objectId")
group1 = opentelekomcloud.CfwAddressGroupV1("group1",
object_id=object_id,
address_type=0)
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, "")
objectId := cfg.RequireObject("objectId")
_, err := opentelekomcloud.NewCfwAddressGroupV1(ctx, "group1", &opentelekomcloud.CfwAddressGroupV1Args{
ObjectId: pulumi.Any(objectId),
AddressType: pulumi.Float64(0),
})
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 objectId = config.RequireObject<dynamic>("objectId");
var group1 = new Opentelekomcloud.CfwAddressGroupV1("group1", new()
{
ObjectId = objectId,
AddressType = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwAddressGroupV1;
import com.pulumi.opentelekomcloud.CfwAddressGroupV1Args;
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 objectId = config.get("objectId");
var group1 = new CfwAddressGroupV1("group1", CfwAddressGroupV1Args.builder()
.objectId(objectId)
.addressType(0)
.build());
}
}
configuration:
objectId:
type: dynamic
resources:
group1:
type: opentelekomcloud:CfwAddressGroupV1
properties:
objectId: ${objectId}
addressType: 0
Notes
But due to some attributes missing from the API response, it’s required to ignore changes as below:
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
// ...
const group1 = new opentelekomcloud.CfwAddressGroupV1("group1", {});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
# ...
group1 = opentelekomcloud.CfwAddressGroupV1("group1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// ...
_, err := opentelekomcloud.NewCfwAddressGroupV1(ctx, "group1", nil)
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 group1 = new Opentelekomcloud.CfwAddressGroupV1("group1");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwAddressGroupV1;
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) {
// ...
var group1 = new CfwAddressGroupV1("group1");
}
}
resources:
group1:
type: opentelekomcloud:CfwAddressGroupV1
Create CfwAddressGroupV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwAddressGroupV1(name: string, args: CfwAddressGroupV1Args, opts?: CustomResourceOptions);
@overload
def CfwAddressGroupV1(resource_name: str,
args: CfwAddressGroupV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CfwAddressGroupV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
object_id: Optional[str] = None,
address_type: Optional[float] = None,
description: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CfwAddressGroupV1TimeoutsArgs] = None)
func NewCfwAddressGroupV1(ctx *Context, name string, args CfwAddressGroupV1Args, opts ...ResourceOption) (*CfwAddressGroupV1, error)
public CfwAddressGroupV1(string name, CfwAddressGroupV1Args args, CustomResourceOptions? opts = null)
public CfwAddressGroupV1(String name, CfwAddressGroupV1Args args)
public CfwAddressGroupV1(String name, CfwAddressGroupV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CfwAddressGroupV1
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 CfwAddressGroupV1Args
- 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 CfwAddressGroupV1Args
- 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 CfwAddressGroupV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwAddressGroupV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwAddressGroupV1Args
- 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 cfwAddressGroupV1Resource = new Opentelekomcloud.CfwAddressGroupV1("cfwAddressGroupV1Resource", new()
{
ObjectId = "string",
AddressType = 0,
Description = "string",
Name = "string",
Timeouts = new Opentelekomcloud.Inputs.CfwAddressGroupV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCfwAddressGroupV1(ctx, "cfwAddressGroupV1Resource", &opentelekomcloud.CfwAddressGroupV1Args{
ObjectId: pulumi.String("string"),
AddressType: pulumi.Float64(0),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &opentelekomcloud.CfwAddressGroupV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cfwAddressGroupV1Resource = new CfwAddressGroupV1("cfwAddressGroupV1Resource", CfwAddressGroupV1Args.builder()
.objectId("string")
.addressType(0.0)
.description("string")
.name("string")
.timeouts(CfwAddressGroupV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cfw_address_group_v1_resource = opentelekomcloud.CfwAddressGroupV1("cfwAddressGroupV1Resource",
object_id="string",
address_type=0,
description="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const cfwAddressGroupV1Resource = new opentelekomcloud.CfwAddressGroupV1("cfwAddressGroupV1Resource", {
objectId: "string",
addressType: 0,
description: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:CfwAddressGroupV1
properties:
addressType: 0
description: string
name: string
objectId: string
timeouts:
create: string
delete: string
update: string
CfwAddressGroupV1 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 CfwAddressGroupV1 resource accepts the following input properties:
- Object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Address
Type double - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - Description string
- Specifies the description of the address group.
- Name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- Timeouts
Cfw
Address Group V1Timeouts
- Object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Address
Type float64 - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - Description string
- Specifies the description of the address group.
- Name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- Timeouts
Cfw
Address Group V1Timeouts Args
- object
Id String - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- address
Type Double - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description String
- Specifies the description of the address group.
- name String
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- timeouts
Cfw
Address Group V1Timeouts
- object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- address
Type number - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description string
- Specifies the description of the address group.
- name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- timeouts
Cfw
Address Group V1Timeouts
- object_
id str - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- address_
type float - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description str
- Specifies the description of the address group.
- name str
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- timeouts
Cfw
Address Group V1Timeouts Args
- object
Id String - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- address
Type Number - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description String
- Specifies the description of the address group.
- name String
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwAddressGroupV1 resource produces the following output properties:
- Address
Set doubleType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Id string
- The provider-assigned unique ID for this managed resource.
- Address
Set float64Type - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Id string
- The provider-assigned unique ID for this managed resource.
- address
Set DoubleType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - id String
- The provider-assigned unique ID for this managed resource.
- address
Set numberType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - id string
- The provider-assigned unique ID for this managed resource.
- address_
set_ floattype - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - id str
- The provider-assigned unique ID for this managed resource.
- address
Set NumberType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CfwAddressGroupV1 Resource
Get an existing CfwAddressGroupV1 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?: CfwAddressGroupV1State, opts?: CustomResourceOptions): CfwAddressGroupV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_set_type: Optional[float] = None,
address_type: Optional[float] = None,
description: Optional[str] = None,
name: Optional[str] = None,
object_id: Optional[str] = None,
timeouts: Optional[CfwAddressGroupV1TimeoutsArgs] = None) -> CfwAddressGroupV1
func GetCfwAddressGroupV1(ctx *Context, name string, id IDInput, state *CfwAddressGroupV1State, opts ...ResourceOption) (*CfwAddressGroupV1, error)
public static CfwAddressGroupV1 Get(string name, Input<string> id, CfwAddressGroupV1State? state, CustomResourceOptions? opts = null)
public static CfwAddressGroupV1 get(String name, Output<String> id, CfwAddressGroupV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CfwAddressGroupV1 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.
- Address
Set doubleType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type double - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - Description string
- Specifies the description of the address group.
- Name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- Object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Timeouts
Cfw
Address Group V1Timeouts
- Address
Set float64Type - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type float64 - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - Description string
- Specifies the description of the address group.
- Name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- Object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- Timeouts
Cfw
Address Group V1Timeouts Args
- address
Set DoubleType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Double - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description String
- Specifies the description of the address group.
- name String
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- object
Id String - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- timeouts
Cfw
Address Group V1Timeouts
- address
Set numberType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type number - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description string
- Specifies the description of the address group.
- name string
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- object
Id string - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- timeouts
Cfw
Address Group V1Timeouts
- address_
set_ floattype - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address_
type float - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description str
- Specifies the description of the address group.
- name str
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- object_
id str - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- timeouts
Cfw
Address Group V1Timeouts Args
- address
Set NumberType - Indicates the Address group type:
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Number - Specifies the Internet protocol type of an address:
0
(IPv4),1
(IPv6). - description String
- Specifies the description of the address group.
- name String
- Specifies the CFW Address group name. The CFW address group name of the same type is unique in the same firewall.
- object
Id String - Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
- timeouts Property Map
Supporting Types
CfwAddressGroupV1Timeouts, CfwAddressGroupV1TimeoutsArgs
Import
CFW Address Group V1 resource can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/cfwAddressGroupV1:CfwAddressGroupV1 group_1 b4cd6aeb0b7445d3bf271457c6941544in09
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.