1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getWafDedicatedInstances
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getWafDedicatedInstances

Explore with Pulumi AI

Use this data source to get a list of WAF dedicated instances.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const instanceName = config.requireObject("instanceName");
const instances = flexibleengine.getWafDedicatedInstances({
    name: instanceName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
instance_name = config.require_object("instanceName")
instances = flexibleengine.get_waf_dedicated_instances(name=instance_name)
Copy
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, "")
		instanceName := cfg.RequireObject("instanceName")
		_, err := flexibleengine.GetWafDedicatedInstances(ctx, &flexibleengine.GetWafDedicatedInstancesArgs{
			Name: pulumi.StringRef(instanceName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var instanceName = config.RequireObject<dynamic>("instanceName");
    var instances = Flexibleengine.GetWafDedicatedInstances.Invoke(new()
    {
        Name = instanceName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetWafDedicatedInstancesArgs;
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 instanceName = config.get("instanceName");
        final var instances = FlexibleengineFunctions.getWafDedicatedInstances(GetWafDedicatedInstancesArgs.builder()
            .name(instanceName)
            .build());

    }
}
Copy
configuration:
  instanceName:
    type: dynamic
variables:
  instances:
    fn::invoke:
      function: flexibleengine:getWafDedicatedInstances
      arguments:
        name: ${instanceName}
Copy

Using getWafDedicatedInstances

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getWafDedicatedInstances(args: GetWafDedicatedInstancesArgs, opts?: InvokeOptions): Promise<GetWafDedicatedInstancesResult>
function getWafDedicatedInstancesOutput(args: GetWafDedicatedInstancesOutputArgs, opts?: InvokeOptions): Output<GetWafDedicatedInstancesResult>
Copy
def get_waf_dedicated_instances(enterprise_project_id: Optional[str] = None,
                                id: Optional[str] = None,
                                name: Optional[str] = None,
                                region: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetWafDedicatedInstancesResult
def get_waf_dedicated_instances_output(enterprise_project_id: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                region: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetWafDedicatedInstancesResult]
Copy
func GetWafDedicatedInstances(ctx *Context, args *GetWafDedicatedInstancesArgs, opts ...InvokeOption) (*GetWafDedicatedInstancesResult, error)
func GetWafDedicatedInstancesOutput(ctx *Context, args *GetWafDedicatedInstancesOutputArgs, opts ...InvokeOption) GetWafDedicatedInstancesResultOutput
Copy

> Note: This function is named GetWafDedicatedInstances in the Go SDK.

public static class GetWafDedicatedInstances 
{
    public static Task<GetWafDedicatedInstancesResult> InvokeAsync(GetWafDedicatedInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetWafDedicatedInstancesResult> Invoke(GetWafDedicatedInstancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWafDedicatedInstancesResult> getWafDedicatedInstances(GetWafDedicatedInstancesArgs args, InvokeOptions options)
public static Output<GetWafDedicatedInstancesResult> getWafDedicatedInstances(GetWafDedicatedInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getWafDedicatedInstances:getWafDedicatedInstances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnterpriseProjectId string
Specifies the enterprise project id of the WAF dedicated instance.
Id string
The id of WAF dedicated instance.
Name string
The name of WAF dedicated instance.
Region string
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.
EnterpriseProjectId string
Specifies the enterprise project id of the WAF dedicated instance.
Id string
The id of WAF dedicated instance.
Name string
The name of WAF dedicated instance.
Region string
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.
enterpriseProjectId String
Specifies the enterprise project id of the WAF dedicated instance.
id String
The id of WAF dedicated instance.
name String
The name of WAF dedicated instance.
region String
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.
enterpriseProjectId string
Specifies the enterprise project id of the WAF dedicated instance.
id string
The id of WAF dedicated instance.
name string
The name of WAF dedicated instance.
region string
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.
enterprise_project_id str
Specifies the enterprise project id of the WAF dedicated instance.
id str
The id of WAF dedicated instance.
name str
The name of WAF dedicated instance.
region str
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.
enterpriseProjectId String
Specifies the enterprise project id of the WAF dedicated instance.
id String
The id of WAF dedicated instance.
name String
The name of WAF dedicated instance.
region String
The region in which to query the WAF dedicated instance. If omitted, the provider-level region will be used.

getWafDedicatedInstances Result

The following output properties are available:

Id string
The id of WAF dedicated instance.
Instances List<GetWafDedicatedInstancesInstance>
An array of available WAF dedicated instances. The instances object structure is documented below.
Region string
EnterpriseProjectId string
Name string
The name of WAF dedicated instance.
Id string
The id of WAF dedicated instance.
Instances []GetWafDedicatedInstancesInstance
An array of available WAF dedicated instances. The instances object structure is documented below.
Region string
EnterpriseProjectId string
Name string
The name of WAF dedicated instance.
id String
The id of WAF dedicated instance.
instances List<GetWafDedicatedInstancesInstance>
An array of available WAF dedicated instances. The instances object structure is documented below.
region String
enterpriseProjectId String
name String
The name of WAF dedicated instance.
id string
The id of WAF dedicated instance.
instances GetWafDedicatedInstancesInstance[]
An array of available WAF dedicated instances. The instances object structure is documented below.
region string
enterpriseProjectId string
name string
The name of WAF dedicated instance.
id str
The id of WAF dedicated instance.
instances Sequence[GetWafDedicatedInstancesInstance]
An array of available WAF dedicated instances. The instances object structure is documented below.
region str
enterprise_project_id str
name str
The name of WAF dedicated instance.
id String
The id of WAF dedicated instance.
instances List<Property Map>
An array of available WAF dedicated instances. The instances object structure is documented below.
region String
enterpriseProjectId String
name String
The name of WAF dedicated instance.

Supporting Types

GetWafDedicatedInstancesInstance

AccessStatus This property is required. double
The access status of the instance. 0: inaccessible, 1: accessible.
AvailableZone This property is required. string
The available zone names for the WAF dedicated instances.
CpuArchitecture This property is required. string
The ECS cpu architecture of WAF dedicated instance.
EcsFlavor This property is required. string
The flavor of the ECS used by the WAF instance.
GroupId This property is required. string
The instance group ID used by the WAF dedicated instance in ELB mode.
Id This property is required. string
The id of WAF dedicated instance.
Name This property is required. string
The name of WAF dedicated instance.
RunStatus This property is required. double
The running status of the instance. Values are:
SecurityGroups This property is required. List<string>
The security group of the instance. This is an array of security group ids.
ServerId This property is required. string
The service of the instance.
ServiceIp This property is required. string
The service ip of the instance.
SubnetId This property is required. string
The ID of the VPC Subnet of WAF dedicated instance VPC.
Upgradable This property is required. double
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
VpcId This property is required. string
The VPC id of WAF dedicated instance.
AccessStatus This property is required. float64
The access status of the instance. 0: inaccessible, 1: accessible.
AvailableZone This property is required. string
The available zone names for the WAF dedicated instances.
CpuArchitecture This property is required. string
The ECS cpu architecture of WAF dedicated instance.
EcsFlavor This property is required. string
The flavor of the ECS used by the WAF instance.
GroupId This property is required. string
The instance group ID used by the WAF dedicated instance in ELB mode.
Id This property is required. string
The id of WAF dedicated instance.
Name This property is required. string
The name of WAF dedicated instance.
RunStatus This property is required. float64
The running status of the instance. Values are:
SecurityGroups This property is required. []string
The security group of the instance. This is an array of security group ids.
ServerId This property is required. string
The service of the instance.
ServiceIp This property is required. string
The service ip of the instance.
SubnetId This property is required. string
The ID of the VPC Subnet of WAF dedicated instance VPC.
Upgradable This property is required. float64
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
VpcId This property is required. string
The VPC id of WAF dedicated instance.
accessStatus This property is required. Double
The access status of the instance. 0: inaccessible, 1: accessible.
availableZone This property is required. String
The available zone names for the WAF dedicated instances.
cpuArchitecture This property is required. String
The ECS cpu architecture of WAF dedicated instance.
ecsFlavor This property is required. String
The flavor of the ECS used by the WAF instance.
groupId This property is required. String
The instance group ID used by the WAF dedicated instance in ELB mode.
id This property is required. String
The id of WAF dedicated instance.
name This property is required. String
The name of WAF dedicated instance.
runStatus This property is required. Double
The running status of the instance. Values are:
securityGroups This property is required. List<String>
The security group of the instance. This is an array of security group ids.
serverId This property is required. String
The service of the instance.
serviceIp This property is required. String
The service ip of the instance.
subnetId This property is required. String
The ID of the VPC Subnet of WAF dedicated instance VPC.
upgradable This property is required. Double
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
vpcId This property is required. String
The VPC id of WAF dedicated instance.
accessStatus This property is required. number
The access status of the instance. 0: inaccessible, 1: accessible.
availableZone This property is required. string
The available zone names for the WAF dedicated instances.
cpuArchitecture This property is required. string
The ECS cpu architecture of WAF dedicated instance.
ecsFlavor This property is required. string
The flavor of the ECS used by the WAF instance.
groupId This property is required. string
The instance group ID used by the WAF dedicated instance in ELB mode.
id This property is required. string
The id of WAF dedicated instance.
name This property is required. string
The name of WAF dedicated instance.
runStatus This property is required. number
The running status of the instance. Values are:
securityGroups This property is required. string[]
The security group of the instance. This is an array of security group ids.
serverId This property is required. string
The service of the instance.
serviceIp This property is required. string
The service ip of the instance.
subnetId This property is required. string
The ID of the VPC Subnet of WAF dedicated instance VPC.
upgradable This property is required. number
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
vpcId This property is required. string
The VPC id of WAF dedicated instance.
access_status This property is required. float
The access status of the instance. 0: inaccessible, 1: accessible.
available_zone This property is required. str
The available zone names for the WAF dedicated instances.
cpu_architecture This property is required. str
The ECS cpu architecture of WAF dedicated instance.
ecs_flavor This property is required. str
The flavor of the ECS used by the WAF instance.
group_id This property is required. str
The instance group ID used by the WAF dedicated instance in ELB mode.
id This property is required. str
The id of WAF dedicated instance.
name This property is required. str
The name of WAF dedicated instance.
run_status This property is required. float
The running status of the instance. Values are:
security_groups This property is required. Sequence[str]
The security group of the instance. This is an array of security group ids.
server_id This property is required. str
The service of the instance.
service_ip This property is required. str
The service ip of the instance.
subnet_id This property is required. str
The ID of the VPC Subnet of WAF dedicated instance VPC.
upgradable This property is required. float
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
vpc_id This property is required. str
The VPC id of WAF dedicated instance.
accessStatus This property is required. Number
The access status of the instance. 0: inaccessible, 1: accessible.
availableZone This property is required. String
The available zone names for the WAF dedicated instances.
cpuArchitecture This property is required. String
The ECS cpu architecture of WAF dedicated instance.
ecsFlavor This property is required. String
The flavor of the ECS used by the WAF instance.
groupId This property is required. String
The instance group ID used by the WAF dedicated instance in ELB mode.
id This property is required. String
The id of WAF dedicated instance.
name This property is required. String
The name of WAF dedicated instance.
runStatus This property is required. Number
The running status of the instance. Values are:
securityGroups This property is required. List<String>
The security group of the instance. This is an array of security group ids.
serverId This property is required. String
The service of the instance.
serviceIp This property is required. String
The service ip of the instance.
subnetId This property is required. String
The ID of the VPC Subnet of WAF dedicated instance VPC.
upgradable This property is required. Number
The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
vpcId This property is required. String
The VPC id of WAF dedicated instance.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.