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

flexibleengine.getAsConfigurations

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 AS configurations.

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const configurations = flexibleengine.getAsConfigurations({});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    configurations = flexibleengine.get_as_configurations()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.GetAsConfigurations(ctx, &flexibleengine.GetAsConfigurationsArgs{}, 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 configurations = Flexibleengine.GetAsConfigurations.Invoke();
    
    });
    
    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.GetAsConfigurationsArgs;
    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 configurations = FlexibleengineFunctions.getAsConfigurations();
    
        }
    }
    
    variables:
      configurations:
        fn::invoke:
          function: flexibleengine:getAsConfigurations
          arguments: {}
    

    Using getAsConfigurations

    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 getAsConfigurations(args: GetAsConfigurationsArgs, opts?: InvokeOptions): Promise<GetAsConfigurationsResult>
    function getAsConfigurationsOutput(args: GetAsConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetAsConfigurationsResult>
    def get_as_configurations(id: Optional[str] = None,
                              image_id: Optional[str] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAsConfigurationsResult
    def get_as_configurations_output(id: Optional[pulumi.Input[str]] = None,
                              image_id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAsConfigurationsResult]
    func GetAsConfigurations(ctx *Context, args *GetAsConfigurationsArgs, opts ...InvokeOption) (*GetAsConfigurationsResult, error)
    func GetAsConfigurationsOutput(ctx *Context, args *GetAsConfigurationsOutputArgs, opts ...InvokeOption) GetAsConfigurationsResultOutput

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

    public static class GetAsConfigurations 
    {
        public static Task<GetAsConfigurationsResult> InvokeAsync(GetAsConfigurationsArgs args, InvokeOptions? opts = null)
        public static Output<GetAsConfigurationsResult> Invoke(GetAsConfigurationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAsConfigurationsResult> getAsConfigurations(GetAsConfigurationsArgs args, InvokeOptions options)
    public static Output<GetAsConfigurationsResult> getAsConfigurations(GetAsConfigurationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getAsConfigurations:getAsConfigurations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the list.
    ImageId string
    Specifies the image ID.
    Name string
    Specifies the AS configuration name. Supports fuzzy search.
    Region string
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.
    Id string
    The ID of the list.
    ImageId string
    Specifies the image ID.
    Name string
    Specifies the AS configuration name. Supports fuzzy search.
    Region string
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.
    id String
    The ID of the list.
    imageId String
    Specifies the image ID.
    name String
    Specifies the AS configuration name. Supports fuzzy search.
    region String
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.
    id string
    The ID of the list.
    imageId string
    Specifies the image ID.
    name string
    Specifies the AS configuration name. Supports fuzzy search.
    region string
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.
    id str
    The ID of the list.
    image_id str
    Specifies the image ID.
    name str
    Specifies the AS configuration name. Supports fuzzy search.
    region str
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.
    id String
    The ID of the list.
    imageId String
    Specifies the image ID.
    name String
    Specifies the AS configuration name. Supports fuzzy search.
    region String
    The region in which to obtain the AS configurations. If omitted, the provider-level region will be used.

    getAsConfigurations Result

    The following output properties are available:

    Configurations List<GetAsConfigurationsConfiguration>
    A list of AS configurations. The configurations object structure is documented below.
    Id string
    The ID of the list.
    Region string
    ImageId string
    Name string
    Configurations []GetAsConfigurationsConfiguration
    A list of AS configurations. The configurations object structure is documented below.
    Id string
    The ID of the list.
    Region string
    ImageId string
    Name string
    configurations List<GetAsConfigurationsConfiguration>
    A list of AS configurations. The configurations object structure is documented below.
    id String
    The ID of the list.
    region String
    imageId String
    name String
    configurations GetAsConfigurationsConfiguration[]
    A list of AS configurations. The configurations object structure is documented below.
    id string
    The ID of the list.
    region string
    imageId string
    name string
    configurations Sequence[GetAsConfigurationsConfiguration]
    A list of AS configurations. The configurations object structure is documented below.
    id str
    The ID of the list.
    region str
    image_id str
    name str
    configurations List<Property Map>
    A list of AS configurations. The configurations object structure is documented below.
    id String
    The ID of the list.
    region String
    imageId String
    name String

    Supporting Types

    GetAsConfigurationsConfiguration

    InstanceConfigs List<GetAsConfigurationsConfigurationInstanceConfig>
    The list of information about instance configurations. The instance_config structure is documented below.
    ScalingConfigurationName string
    The AS configuration name.
    Status string
    The AS configuration status, the value can be Bound or Unbound.
    InstanceConfigs []GetAsConfigurationsConfigurationInstanceConfig
    The list of information about instance configurations. The instance_config structure is documented below.
    ScalingConfigurationName string
    The AS configuration name.
    Status string
    The AS configuration status, the value can be Bound or Unbound.
    instanceConfigs List<GetAsConfigurationsConfigurationInstanceConfig>
    The list of information about instance configurations. The instance_config structure is documented below.
    scalingConfigurationName String
    The AS configuration name.
    status String
    The AS configuration status, the value can be Bound or Unbound.
    instanceConfigs GetAsConfigurationsConfigurationInstanceConfig[]
    The list of information about instance configurations. The instance_config structure is documented below.
    scalingConfigurationName string
    The AS configuration name.
    status string
    The AS configuration status, the value can be Bound or Unbound.
    instance_configs Sequence[GetAsConfigurationsConfigurationInstanceConfig]
    The list of information about instance configurations. The instance_config structure is documented below.
    scaling_configuration_name str
    The AS configuration name.
    status str
    The AS configuration status, the value can be Bound or Unbound.
    instanceConfigs List<Property Map>
    The list of information about instance configurations. The instance_config structure is documented below.
    scalingConfigurationName String
    The AS configuration name.
    status String
    The AS configuration status, the value can be Bound or Unbound.

    GetAsConfigurationsConfigurationInstanceConfig

    ChargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    Disks List<GetAsConfigurationsConfigurationInstanceConfigDisk>
    The list of disk group information. The disk structure is documented below.
    EcsGroupId string
    The ECS group ID.
    Flavor string
    The ECS flavor name.
    FlavorPriorityPolicy string
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    Image string
    The ECS image ID.
    InstanceId string
    The ECS instance ID when using its specification as the template to create AS configurations.
    KeyName string
    The name of the SSH key pair used to log in to the instance.
    Metadata Dictionary<string, string>
    The key/value pairs to make available from within the instance.
    Personalities List<GetAsConfigurationsConfigurationInstanceConfigPersonality>
    The list of information about the injected file. The personality structure is documented below.
    PublicIps List<GetAsConfigurationsConfigurationInstanceConfigPublicIp>
    The EIP list of the ECS instance. The public_ip structure is documented below.
    SecurityGroupIds List<string>
    An array of one or more security group IDs.
    UserData string
    The user data to provide when launching the instance.
    ChargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    Disks []GetAsConfigurationsConfigurationInstanceConfigDisk
    The list of disk group information. The disk structure is documented below.
    EcsGroupId string
    The ECS group ID.
    Flavor string
    The ECS flavor name.
    FlavorPriorityPolicy string
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    Image string
    The ECS image ID.
    InstanceId string
    The ECS instance ID when using its specification as the template to create AS configurations.
    KeyName string
    The name of the SSH key pair used to log in to the instance.
    Metadata map[string]string
    The key/value pairs to make available from within the instance.
    Personalities []GetAsConfigurationsConfigurationInstanceConfigPersonality
    The list of information about the injected file. The personality structure is documented below.
    PublicIps []GetAsConfigurationsConfigurationInstanceConfigPublicIp
    The EIP list of the ECS instance. The public_ip structure is documented below.
    SecurityGroupIds []string
    An array of one or more security group IDs.
    UserData string
    The user data to provide when launching the instance.
    chargingMode String
    The bandwidth billing mode, the value can be traffic or bandwidth.
    disks List<GetAsConfigurationsConfigurationInstanceConfigDisk>
    The list of disk group information. The disk structure is documented below.
    ecsGroupId String
    The ECS group ID.
    flavor String
    The ECS flavor name.
    flavorPriorityPolicy String
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    image String
    The ECS image ID.
    instanceId String
    The ECS instance ID when using its specification as the template to create AS configurations.
    keyName String
    The name of the SSH key pair used to log in to the instance.
    metadata Map<String,String>
    The key/value pairs to make available from within the instance.
    personalities List<GetAsConfigurationsConfigurationInstanceConfigPersonality>
    The list of information about the injected file. The personality structure is documented below.
    publicIps List<GetAsConfigurationsConfigurationInstanceConfigPublicIp>
    The EIP list of the ECS instance. The public_ip structure is documented below.
    securityGroupIds List<String>
    An array of one or more security group IDs.
    userData String
    The user data to provide when launching the instance.
    chargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    disks GetAsConfigurationsConfigurationInstanceConfigDisk[]
    The list of disk group information. The disk structure is documented below.
    ecsGroupId string
    The ECS group ID.
    flavor string
    The ECS flavor name.
    flavorPriorityPolicy string
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    image string
    The ECS image ID.
    instanceId string
    The ECS instance ID when using its specification as the template to create AS configurations.
    keyName string
    The name of the SSH key pair used to log in to the instance.
    metadata {[key: string]: string}
    The key/value pairs to make available from within the instance.
    personalities GetAsConfigurationsConfigurationInstanceConfigPersonality[]
    The list of information about the injected file. The personality structure is documented below.
    publicIps GetAsConfigurationsConfigurationInstanceConfigPublicIp[]
    The EIP list of the ECS instance. The public_ip structure is documented below.
    securityGroupIds string[]
    An array of one or more security group IDs.
    userData string
    The user data to provide when launching the instance.
    charging_mode str
    The bandwidth billing mode, the value can be traffic or bandwidth.
    disks Sequence[GetAsConfigurationsConfigurationInstanceConfigDisk]
    The list of disk group information. The disk structure is documented below.
    ecs_group_id str
    The ECS group ID.
    flavor str
    The ECS flavor name.
    flavor_priority_policy str
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    image str
    The ECS image ID.
    instance_id str
    The ECS instance ID when using its specification as the template to create AS configurations.
    key_name str
    The name of the SSH key pair used to log in to the instance.
    metadata Mapping[str, str]
    The key/value pairs to make available from within the instance.
    personalities Sequence[GetAsConfigurationsConfigurationInstanceConfigPersonality]
    The list of information about the injected file. The personality structure is documented below.
    public_ips Sequence[GetAsConfigurationsConfigurationInstanceConfigPublicIp]
    The EIP list of the ECS instance. The public_ip structure is documented below.
    security_group_ids Sequence[str]
    An array of one or more security group IDs.
    user_data str
    The user data to provide when launching the instance.
    chargingMode String
    The bandwidth billing mode, the value can be traffic or bandwidth.
    disks List<Property Map>
    The list of disk group information. The disk structure is documented below.
    ecsGroupId String
    The ECS group ID.
    flavor String
    The ECS flavor name.
    flavorPriorityPolicy String
    The priority policy used when there are multiple flavors and instances to be created using an AS configuration. The value can be PICK_FIRST and COST_FIRST.
    image String
    The ECS image ID.
    instanceId String
    The ECS instance ID when using its specification as the template to create AS configurations.
    keyName String
    The name of the SSH key pair used to log in to the instance.
    metadata Map<String>
    The key/value pairs to make available from within the instance.
    personalities List<Property Map>
    The list of information about the injected file. The personality structure is documented below.
    publicIps List<Property Map>
    The EIP list of the ECS instance. The public_ip structure is documented below.
    securityGroupIds List<String>
    An array of one or more security group IDs.
    userData String
    The user data to provide when launching the instance.

    GetAsConfigurationsConfigurationInstanceConfigDisk

    DiskType string
    The disk type.
    KmsId string
    The encryption KMS ID of the DATA disk.
    Size double
    The bandwidth (Mbit/s).
    VolumeType string
    The volume type.
    DiskType string
    The disk type.
    KmsId string
    The encryption KMS ID of the DATA disk.
    Size float64
    The bandwidth (Mbit/s).
    VolumeType string
    The volume type.
    diskType String
    The disk type.
    kmsId String
    The encryption KMS ID of the DATA disk.
    size Double
    The bandwidth (Mbit/s).
    volumeType String
    The volume type.
    diskType string
    The disk type.
    kmsId string
    The encryption KMS ID of the DATA disk.
    size number
    The bandwidth (Mbit/s).
    volumeType string
    The volume type.
    disk_type str
    The disk type.
    kms_id str
    The encryption KMS ID of the DATA disk.
    size float
    The bandwidth (Mbit/s).
    volume_type str
    The volume type.
    diskType String
    The disk type.
    kmsId String
    The encryption KMS ID of the DATA disk.
    size Number
    The bandwidth (Mbit/s).
    volumeType String
    The volume type.

    GetAsConfigurationsConfigurationInstanceConfigPersonality

    Content string
    The content of the injected file.
    Path string
    The path of the injected file.
    Content string
    The content of the injected file.
    Path string
    The path of the injected file.
    content String
    The content of the injected file.
    path String
    The path of the injected file.
    content string
    The content of the injected file.
    path string
    The path of the injected file.
    content str
    The content of the injected file.
    path str
    The path of the injected file.
    content String
    The content of the injected file.
    path String
    The path of the injected file.

    GetAsConfigurationsConfigurationInstanceConfigPublicIp

    Eips List<GetAsConfigurationsConfigurationInstanceConfigPublicIpEip>
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.
    Eips []GetAsConfigurationsConfigurationInstanceConfigPublicIpEip
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.
    eips List<GetAsConfigurationsConfigurationInstanceConfigPublicIpEip>
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.
    eips GetAsConfigurationsConfigurationInstanceConfigPublicIpEip[]
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.
    eips Sequence[GetAsConfigurationsConfigurationInstanceConfigPublicIpEip]
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.
    eips List<Property Map>
    The list of EIP configuration that will be automatically assigned to the instance. The eip object structure is documented below.

    GetAsConfigurationsConfigurationInstanceConfigPublicIpEip

    Bandwidths List<GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth>
    The list of bandwidth information. The bandwidth object structure is documented below.
    IpType string
    The EIP type.
    Bandwidths []GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth
    The list of bandwidth information. The bandwidth object structure is documented below.
    IpType string
    The EIP type.
    bandwidths List<GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth>
    The list of bandwidth information. The bandwidth object structure is documented below.
    ipType String
    The EIP type.
    bandwidths GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth[]
    The list of bandwidth information. The bandwidth object structure is documented below.
    ipType string
    The EIP type.
    bandwidths Sequence[GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth]
    The list of bandwidth information. The bandwidth object structure is documented below.
    ip_type str
    The EIP type.
    bandwidths List<Property Map>
    The list of bandwidth information. The bandwidth object structure is documented below.
    ipType String
    The EIP type.

    GetAsConfigurationsConfigurationInstanceConfigPublicIpEipBandwidth

    ChargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    ShareType string
    The bandwidth sharing type.
    Size double
    The bandwidth (Mbit/s).
    ChargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    ShareType string
    The bandwidth sharing type.
    Size float64
    The bandwidth (Mbit/s).
    chargingMode String
    The bandwidth billing mode, the value can be traffic or bandwidth.
    shareType String
    The bandwidth sharing type.
    size Double
    The bandwidth (Mbit/s).
    chargingMode string
    The bandwidth billing mode, the value can be traffic or bandwidth.
    shareType string
    The bandwidth sharing type.
    size number
    The bandwidth (Mbit/s).
    charging_mode str
    The bandwidth billing mode, the value can be traffic or bandwidth.
    share_type str
    The bandwidth sharing type.
    size float
    The bandwidth (Mbit/s).
    chargingMode String
    The bandwidth billing mode, the value can be traffic or bandwidth.
    shareType String
    The bandwidth sharing type.
    size Number
    The bandwidth (Mbit/s).

    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