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

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    configuration:
      instanceName:
        type: dynamic
    variables:
      instances:
        fn::invoke:
          function: flexibleengine:getWafDedicatedInstances
          arguments:
            name: ${instanceName}
    

    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>
    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]
    func GetWafDedicatedInstances(ctx *Context, args *GetWafDedicatedInstancesArgs, opts ...InvokeOption) (*GetWafDedicatedInstancesResult, error)
    func GetWafDedicatedInstancesOutput(ctx *Context, args *GetWafDedicatedInstancesOutputArgs, opts ...InvokeOption) GetWafDedicatedInstancesResultOutput

    > 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)
    }
    public static CompletableFuture<GetWafDedicatedInstancesResult> getWafDedicatedInstances(GetWafDedicatedInstancesArgs args, InvokeOptions options)
    public static Output<GetWafDedicatedInstancesResult> getWafDedicatedInstances(GetWafDedicatedInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getWafDedicatedInstances:getWafDedicatedInstances
      arguments:
        # arguments dictionary

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