flexibleengine.WafDedicatedInstance
Explore with Pulumi AI
Manages a WAF dedicated instance resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const azName = config.requireObject("azName");
const ecsFlavorId = config.requireObject("ecsFlavorId");
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "My neutron security group"});
const instance1 = new flexibleengine.WafDedicatedInstance("instance1", {
availableZone: azName,
specificationCode: "waf.instance.professional",
ecsFlavor: ecsFlavorId,
vpcId: exampleVpc.vpcV1Id,
subnetId: exampleSubnet.vpcSubnetV1Id,
securityGroups: [exampleSecgroup.networkingSecgroupV2Id],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
az_name = config.require_object("azName")
ecs_flavor_id = config.require_object("ecsFlavorId")
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="My neutron security group")
instance1 = flexibleengine.WafDedicatedInstance("instance1",
available_zone=az_name,
specification_code="waf.instance.professional",
ecs_flavor=ecs_flavor_id,
vpc_id=example_vpc.vpc_v1_id,
subnet_id=example_subnet.vpc_subnet_v1_id,
security_groups=[example_secgroup.networking_secgroup_v2_id])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"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, "")
azName := cfg.RequireObject("azName")
ecsFlavorId := cfg.RequireObject("ecsFlavorId")
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
Description: pulumi.String("My neutron security group"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewWafDedicatedInstance(ctx, "instance1", &flexibleengine.WafDedicatedInstanceArgs{
AvailableZone: pulumi.Any(azName),
SpecificationCode: pulumi.String("waf.instance.professional"),
EcsFlavor: pulumi.Any(ecsFlavorId),
VpcId: exampleVpc.VpcV1Id,
SubnetId: exampleSubnet.VpcSubnetV1Id,
SecurityGroups: pulumi.StringArray{
exampleSecgroup.NetworkingSecgroupV2Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var azName = config.RequireObject<dynamic>("azName");
var ecsFlavorId = config.RequireObject<dynamic>("ecsFlavorId");
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
{
Description = "My neutron security group",
});
var instance1 = new Flexibleengine.WafDedicatedInstance("instance1", new()
{
AvailableZone = azName,
SpecificationCode = "waf.instance.professional",
EcsFlavor = ecsFlavorId,
VpcId = exampleVpc.VpcV1Id,
SubnetId = exampleSubnet.VpcSubnetV1Id,
SecurityGroups = new[]
{
exampleSecgroup.NetworkingSecgroupV2Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
import com.pulumi.flexibleengine.WafDedicatedInstance;
import com.pulumi.flexibleengine.WafDedicatedInstanceArgs;
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 azName = config.get("azName");
final var ecsFlavorId = config.get("ecsFlavorId");
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
.description("My neutron security group")
.build());
var instance1 = new WafDedicatedInstance("instance1", WafDedicatedInstanceArgs.builder()
.availableZone(azName)
.specificationCode("waf.instance.professional")
.ecsFlavor(ecsFlavorId)
.vpcId(exampleVpc.vpcV1Id())
.subnetId(exampleSubnet.vpcSubnetV1Id())
.securityGroups(exampleSecgroup.networkingSecgroupV2Id())
.build());
}
}
configuration:
azName:
type: dynamic
ecsFlavorId:
type: dynamic
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
properties:
description: My neutron security group
instance1:
type: flexibleengine:WafDedicatedInstance
properties:
availableZone: ${azName}
specificationCode: waf.instance.professional
ecsFlavor: ${ecsFlavorId}
vpcId: ${exampleVpc.vpcV1Id}
subnetId: ${exampleSubnet.vpcSubnetV1Id}
securityGroups:
- ${exampleSecgroup.networkingSecgroupV2Id}
Create WafDedicatedInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafDedicatedInstance(name: string, args: WafDedicatedInstanceArgs, opts?: CustomResourceOptions);
@overload
def WafDedicatedInstance(resource_name: str,
args: WafDedicatedInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafDedicatedInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
available_zone: Optional[str] = None,
ecs_flavor: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
specification_code: Optional[str] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None,
cpu_architecture: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[WafDedicatedInstanceTimeoutsArgs] = None,
waf_dedicated_instance_id: Optional[str] = None)
func NewWafDedicatedInstance(ctx *Context, name string, args WafDedicatedInstanceArgs, opts ...ResourceOption) (*WafDedicatedInstance, error)
public WafDedicatedInstance(string name, WafDedicatedInstanceArgs args, CustomResourceOptions? opts = null)
public WafDedicatedInstance(String name, WafDedicatedInstanceArgs args)
public WafDedicatedInstance(String name, WafDedicatedInstanceArgs args, CustomResourceOptions options)
type: flexibleengine:WafDedicatedInstance
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 WafDedicatedInstanceArgs
- 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 WafDedicatedInstanceArgs
- 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 WafDedicatedInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafDedicatedInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafDedicatedInstanceArgs
- 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 wafDedicatedInstanceResource = new Flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource", new()
{
AvailableZone = "string",
EcsFlavor = "string",
SecurityGroups = new[]
{
"string",
},
SpecificationCode = "string",
SubnetId = "string",
VpcId = "string",
CpuArchitecture = "string",
GroupId = "string",
Name = "string",
Region = "string",
Timeouts = new Flexibleengine.Inputs.WafDedicatedInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
},
WafDedicatedInstanceId = "string",
});
example, err := flexibleengine.NewWafDedicatedInstance(ctx, "wafDedicatedInstanceResource", &flexibleengine.WafDedicatedInstanceArgs{
AvailableZone: pulumi.String("string"),
EcsFlavor: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SpecificationCode: pulumi.String("string"),
SubnetId: pulumi.String("string"),
VpcId: pulumi.String("string"),
CpuArchitecture: pulumi.String("string"),
GroupId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Timeouts: &flexibleengine.WafDedicatedInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafDedicatedInstanceId: pulumi.String("string"),
})
var wafDedicatedInstanceResource = new WafDedicatedInstance("wafDedicatedInstanceResource", WafDedicatedInstanceArgs.builder()
.availableZone("string")
.ecsFlavor("string")
.securityGroups("string")
.specificationCode("string")
.subnetId("string")
.vpcId("string")
.cpuArchitecture("string")
.groupId("string")
.name("string")
.region("string")
.timeouts(WafDedicatedInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.wafDedicatedInstanceId("string")
.build());
waf_dedicated_instance_resource = flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource",
available_zone="string",
ecs_flavor="string",
security_groups=["string"],
specification_code="string",
subnet_id="string",
vpc_id="string",
cpu_architecture="string",
group_id="string",
name="string",
region="string",
timeouts={
"create": "string",
"delete": "string",
},
waf_dedicated_instance_id="string")
const wafDedicatedInstanceResource = new flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource", {
availableZone: "string",
ecsFlavor: "string",
securityGroups: ["string"],
specificationCode: "string",
subnetId: "string",
vpcId: "string",
cpuArchitecture: "string",
groupId: "string",
name: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
},
wafDedicatedInstanceId: "string",
});
type: flexibleengine:WafDedicatedInstance
properties:
availableZone: string
cpuArchitecture: string
ecsFlavor: string
groupId: string
name: string
region: string
securityGroups:
- string
specificationCode: string
subnetId: string
timeouts:
create: string
delete: string
vpcId: string
wafDedicatedInstanceId: string
WafDedicatedInstance 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 WafDedicatedInstance resource accepts the following input properties:
- Available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - Ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- Security
Groups List<string> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- Specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- Subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- Vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- Cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - Group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- Name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- Region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- Timeouts
Waf
Dedicated Instance Timeouts - Waf
Dedicated stringInstance Id - The id of the instance.
- Available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - Ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- Security
Groups []string - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- Specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- Subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- Vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- Cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - Group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- Name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- Region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- Timeouts
Waf
Dedicated Instance Timeouts Args - Waf
Dedicated stringInstance Id - The id of the instance.
- available
Zone String - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - ecs
Flavor String The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- security
Groups List<String> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- specification
Code String - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id String - The ID of the VPC Subnet. Changing this will create a new instance.
- vpc
Id String - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- cpu
Architecture String - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - group
Id String - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name String
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region String
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- timeouts
Waf
Dedicated Instance Timeouts - waf
Dedicated StringInstance Id - The id of the instance.
- available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- security
Groups string[] - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- timeouts
Waf
Dedicated Instance Timeouts - waf
Dedicated stringInstance Id - The id of the instance.
- available_
zone str - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - ecs_
flavor str The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- security_
groups Sequence[str] - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- specification_
code str - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet_
id str - The ID of the VPC Subnet. Changing this will create a new instance.
- vpc_
id str - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- cpu_
architecture str - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - group_
id str - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name str
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region str
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- timeouts
Waf
Dedicated Instance Timeouts Args - waf_
dedicated_ strinstance_ id - The id of the instance.
- available
Zone String - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - ecs
Flavor String The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- security
Groups List<String> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- specification
Code String - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id String - The ID of the VPC Subnet. Changing this will create a new instance.
- vpc
Id String - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- cpu
Architecture String - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - group
Id String - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name String
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region String
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- timeouts Property Map
- waf
Dedicated StringInstance Id - The id of the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafDedicatedInstance resource produces the following output properties:
- Access
Status double - The access status of the instance.
0
: inaccessible,1
: accessible. - Id string
- The provider-assigned unique ID for this managed resource.
- Run
Status double - The running status of the instance. Values are:
- Server
Id string - The id of the instance server.
- Service
Ip string - The ip of the instance service.
- Upgradable double
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
- Access
Status float64 - The access status of the instance.
0
: inaccessible,1
: accessible. - Id string
- The provider-assigned unique ID for this managed resource.
- Run
Status float64 - The running status of the instance. Values are:
- Server
Id string - The id of the instance server.
- Service
Ip string - The ip of the instance service.
- Upgradable float64
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
- access
Status Double - The access status of the instance.
0
: inaccessible,1
: accessible. - id String
- The provider-assigned unique ID for this managed resource.
- run
Status Double - The running status of the instance. Values are:
- server
Id String - The id of the instance server.
- service
Ip String - The ip of the instance service.
- upgradable Double
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
- access
Status number - The access status of the instance.
0
: inaccessible,1
: accessible. - id string
- The provider-assigned unique ID for this managed resource.
- run
Status number - The running status of the instance. Values are:
- server
Id string - The id of the instance server.
- service
Ip string - The ip of the instance service.
- upgradable number
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
- access_
status float - The access status of the instance.
0
: inaccessible,1
: accessible. - id str
- The provider-assigned unique ID for this managed resource.
- run_
status float - The running status of the instance. Values are:
- server_
id str - The id of the instance server.
- service_
ip str - The ip of the instance service.
- upgradable float
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
- access
Status Number - The access status of the instance.
0
: inaccessible,1
: accessible. - id String
- The provider-assigned unique ID for this managed resource.
- run
Status Number - The running status of the instance. Values are:
- server
Id String - The id of the instance server.
- service
Ip String - The ip of the instance service.
- upgradable Number
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded.
Look up Existing WafDedicatedInstance Resource
Get an existing WafDedicatedInstance 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?: WafDedicatedInstanceState, opts?: CustomResourceOptions): WafDedicatedInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_status: Optional[float] = None,
available_zone: Optional[str] = None,
cpu_architecture: Optional[str] = None,
ecs_flavor: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
run_status: Optional[float] = None,
security_groups: Optional[Sequence[str]] = None,
server_id: Optional[str] = None,
service_ip: Optional[str] = None,
specification_code: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[WafDedicatedInstanceTimeoutsArgs] = None,
upgradable: Optional[float] = None,
vpc_id: Optional[str] = None,
waf_dedicated_instance_id: Optional[str] = None) -> WafDedicatedInstance
func GetWafDedicatedInstance(ctx *Context, name string, id IDInput, state *WafDedicatedInstanceState, opts ...ResourceOption) (*WafDedicatedInstance, error)
public static WafDedicatedInstance Get(string name, Input<string> id, WafDedicatedInstanceState? state, CustomResourceOptions? opts = null)
public static WafDedicatedInstance get(String name, Output<String> id, WafDedicatedInstanceState state, CustomResourceOptions options)
resources: _: type: flexibleengine:WafDedicatedInstance 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.
- Access
Status double - The access status of the instance.
0
: inaccessible,1
: accessible. - Available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - Cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - Ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- Group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- Name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- Region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- Run
Status double - The running status of the instance. Values are:
- Security
Groups List<string> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- Server
Id string - The id of the instance server.
- Service
Ip string - The ip of the instance service.
- Specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- Subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- Timeouts
Waf
Dedicated Instance Timeouts - Upgradable double
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - Vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- Waf
Dedicated stringInstance Id - The id of the instance.
- Access
Status float64 - The access status of the instance.
0
: inaccessible,1
: accessible. - Available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - Cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - Ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- Group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- Name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- Region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- Run
Status float64 - The running status of the instance. Values are:
- Security
Groups []string - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- Server
Id string - The id of the instance server.
- Service
Ip string - The ip of the instance service.
- Specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- Subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- Timeouts
Waf
Dedicated Instance Timeouts Args - Upgradable float64
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - Vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- Waf
Dedicated stringInstance Id - The id of the instance.
- access
Status Double - The access status of the instance.
0
: inaccessible,1
: accessible. - available
Zone String - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - cpu
Architecture String - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - ecs
Flavor String The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- group
Id String - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name String
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region String
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- run
Status Double - The running status of the instance. Values are:
- security
Groups List<String> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- server
Id String - The id of the instance server.
- service
Ip String - The ip of the instance service.
- specification
Code String - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id String - The ID of the VPC Subnet. Changing this will create a new instance.
- timeouts
Waf
Dedicated Instance Timeouts - upgradable Double
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - vpc
Id String - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- waf
Dedicated StringInstance Id - The id of the instance.
- access
Status number - The access status of the instance.
0
: inaccessible,1
: accessible. - available
Zone string - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - cpu
Architecture string - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - ecs
Flavor string The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- group
Id string - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name string
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region string
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- run
Status number - The running status of the instance. Values are:
- security
Groups string[] - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- server
Id string - The id of the instance server.
- service
Ip string - The ip of the instance service.
- specification
Code string - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id string - The ID of the VPC Subnet. Changing this will create a new instance.
- timeouts
Waf
Dedicated Instance Timeouts - upgradable number
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - vpc
Id string - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- waf
Dedicated stringInstance Id - The id of the instance.
- access_
status float - The access status of the instance.
0
: inaccessible,1
: accessible. - available_
zone str - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - cpu_
architecture str - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - ecs_
flavor str The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- group_
id str - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name str
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region str
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- run_
status float - The running status of the instance. Values are:
- security_
groups Sequence[str] - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- server_
id str - The id of the instance server.
- service_
ip str - The ip of the instance service.
- specification_
code str - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet_
id str - The ID of the VPC Subnet. Changing this will create a new instance.
- timeouts
Waf
Dedicated Instance Timeouts Args - upgradable float
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - vpc_
id str - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- waf_
dedicated_ strinstance_ id - The id of the instance.
- access
Status Number - The access status of the instance.
0
: inaccessible,1
: accessible. - available
Zone String - The available zone names for the dedicated instances. It can be
obtained through this data source
flexibleengine.getAvailabilityZones
. Changing this will create a new instance. - cpu
Architecture String - The ECS cpu architecture of instance, Default value is
x86
. Changing this will create a new instance. - ecs
Flavor String The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source
flexibleengine_compute_flavors
. Changing this will create a new instance.NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.
- group
Id String - The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
- name String
- The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
- region String
- Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
- run
Status Number - The running status of the instance. Values are:
- security
Groups List<String> - The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
- server
Id String - The id of the instance server.
- service
Ip String - The ip of the instance service.
- specification
Code String - The specification code of instance. Different specifications have
different throughput. Changing this will create a new instance. Values are:
waf.instance.professional
- The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).waf.instance.enterprise
- The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
- subnet
Id String - The ID of the VPC Subnet. Changing this will create a new instance.
- timeouts Property Map
- upgradable Number
- The instance is to support upgrades.
0
: Cannot be upgraded,1
: Can be upgraded. - vpc
Id String - The VPC id of WAF dedicated instance. Changing this will create a new instance.
- waf
Dedicated StringInstance Id - The id of the instance.
Supporting Types
WafDedicatedInstanceTimeouts, WafDedicatedInstanceTimeoutsArgs
Import
WAF dedicated instance can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/wafDedicatedInstance:WafDedicatedInstance instance_1 2f87641090206b821f07e0f6bd6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.