1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eds
  5. getBundles
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.eds.getBundles

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Ecd bundles of the current Alibaba Cloud user.

    NOTE: Available in v1.143.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.eds.getBundles({
        bundleType: "SYSTEM",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.eds.get_bundles(bundle_type="SYSTEM")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eds.GetBundles(ctx, &eds.GetBundlesArgs{
    			BundleType: pulumi.StringRef("SYSTEM"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.Eds.GetBundles.Invoke(new()
        {
            BundleType = "SYSTEM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eds.EdsFunctions;
    import com.pulumi.alicloud.eds.inputs.GetBundlesArgs;
    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 default = EdsFunctions.getBundles(GetBundlesArgs.builder()
                .bundleType("SYSTEM")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:eds:getBundles
          Arguments:
            bundleType: SYSTEM
    

    Using getBundles

    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 getBundles(args: GetBundlesArgs, opts?: InvokeOptions): Promise<GetBundlesResult>
    function getBundlesOutput(args: GetBundlesOutputArgs, opts?: InvokeOptions): Output<GetBundlesResult>
    def get_bundles(bundle_ids: Optional[Sequence[str]] = None,
                    bundle_type: Optional[str] = None,
                    ids: Optional[Sequence[str]] = None,
                    name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetBundlesResult
    def get_bundles_output(bundle_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    bundle_type: Optional[pulumi.Input[str]] = None,
                    ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetBundlesResult]
    func GetBundles(ctx *Context, args *GetBundlesArgs, opts ...InvokeOption) (*GetBundlesResult, error)
    func GetBundlesOutput(ctx *Context, args *GetBundlesOutputArgs, opts ...InvokeOption) GetBundlesResultOutput

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

    public static class GetBundles 
    {
        public static Task<GetBundlesResult> InvokeAsync(GetBundlesArgs args, InvokeOptions? opts = null)
        public static Output<GetBundlesResult> Invoke(GetBundlesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBundlesResult> getBundles(GetBundlesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:eds/getBundles:getBundles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BundleIds List<string>
    BundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    Ids List<string>
    A list of Bundle IDs.
    NameRegex string
    A regex string to filter results by Bundle name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    BundleIds []string
    BundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    Ids []string
    A list of Bundle IDs.
    NameRegex string
    A regex string to filter results by Bundle name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    bundleIds List<String>
    bundleType String
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    ids List<String>
    A list of Bundle IDs.
    nameRegex String
    A regex string to filter results by Bundle name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    bundleIds string[]
    bundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    ids string[]
    A list of Bundle IDs.
    nameRegex string
    A regex string to filter results by Bundle name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    bundle_ids Sequence[str]
    bundle_type str
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    ids Sequence[str]
    A list of Bundle IDs.
    name_regex str
    A regex string to filter results by Bundle name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    bundleIds List<String>
    bundleType String
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    ids List<String>
    A list of Bundle IDs.
    nameRegex String
    A regex string to filter results by Bundle name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getBundles Result

    The following output properties are available:

    BundleIds List<string>
    Bundles List<Pulumi.AliCloud.Eds.Outputs.GetBundlesBundle>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    BundleType string
    NameRegex string
    OutputFile string
    BundleIds []string
    Bundles []GetBundlesBundle
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    BundleType string
    NameRegex string
    OutputFile string
    bundleIds List<String>
    bundles List<GetBundlesBundle>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    bundleType String
    nameRegex String
    outputFile String
    bundleIds string[]
    bundles GetBundlesBundle[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    bundleType string
    nameRegex string
    outputFile string
    bundle_ids Sequence[str]
    bundles Sequence[GetBundlesBundle]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    bundle_type str
    name_regex str
    output_file str
    bundleIds List<String>
    bundles List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    bundleType String
    nameRegex String
    outputFile String

    Supporting Types

    GetBundlesBundle

    BundleId string
    The bundle id of the bundle.
    BundleName string
    The name of the bundle.
    BundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    Description string
    The description of the bundle.
    DesktopType string
    The desktop type of the bundle.
    DesktopTypeAttributes List<Pulumi.AliCloud.Eds.Inputs.GetBundlesBundleDesktopTypeAttribute>
    The desktop type attribute of the bundle.
    Disks List<Pulumi.AliCloud.Eds.Inputs.GetBundlesBundleDisk>
    The disks of the bundle.
    Id string
    The ID of the bundle.
    ImageId string
    The image id attribute of the bundle.
    OsType string
    The os type attribute of the bundle.
    BundleId string
    The bundle id of the bundle.
    BundleName string
    The name of the bundle.
    BundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    Description string
    The description of the bundle.
    DesktopType string
    The desktop type of the bundle.
    DesktopTypeAttributes []GetBundlesBundleDesktopTypeAttribute
    The desktop type attribute of the bundle.
    Disks []GetBundlesBundleDisk
    The disks of the bundle.
    Id string
    The ID of the bundle.
    ImageId string
    The image id attribute of the bundle.
    OsType string
    The os type attribute of the bundle.
    bundleId String
    The bundle id of the bundle.
    bundleName String
    The name of the bundle.
    bundleType String
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    description String
    The description of the bundle.
    desktopType String
    The desktop type of the bundle.
    desktopTypeAttributes List<GetBundlesBundleDesktopTypeAttribute>
    The desktop type attribute of the bundle.
    disks List<GetBundlesBundleDisk>
    The disks of the bundle.
    id String
    The ID of the bundle.
    imageId String
    The image id attribute of the bundle.
    osType String
    The os type attribute of the bundle.
    bundleId string
    The bundle id of the bundle.
    bundleName string
    The name of the bundle.
    bundleType string
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    description string
    The description of the bundle.
    desktopType string
    The desktop type of the bundle.
    desktopTypeAttributes GetBundlesBundleDesktopTypeAttribute[]
    The desktop type attribute of the bundle.
    disks GetBundlesBundleDisk[]
    The disks of the bundle.
    id string
    The ID of the bundle.
    imageId string
    The image id attribute of the bundle.
    osType string
    The os type attribute of the bundle.
    bundle_id str
    The bundle id of the bundle.
    bundle_name str
    The name of the bundle.
    bundle_type str
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    description str
    The description of the bundle.
    desktop_type str
    The desktop type of the bundle.
    desktop_type_attributes Sequence[GetBundlesBundleDesktopTypeAttribute]
    The desktop type attribute of the bundle.
    disks Sequence[GetBundlesBundleDisk]
    The disks of the bundle.
    id str
    The ID of the bundle.
    image_id str
    The image id attribute of the bundle.
    os_type str
    The os type attribute of the bundle.
    bundleId String
    The bundle id of the bundle.
    bundleName String
    The name of the bundle.
    bundleType String
    The bundle type of the bundle. Valid values: SYSTEM,CUSTOM.
    description String
    The description of the bundle.
    desktopType String
    The desktop type of the bundle.
    desktopTypeAttributes List<Property Map>
    The desktop type attribute of the bundle.
    disks List<Property Map>
    The disks of the bundle.
    id String
    The ID of the bundle.
    imageId String
    The image id attribute of the bundle.
    osType String
    The os type attribute of the bundle.

    GetBundlesBundleDesktopTypeAttribute

    CpuCount int
    The cpu count attribute of the bundle.
    GpuCount string
    The gpu count attribute of the bundle.
    GpuSpec string
    The gpu spec attribute of the bundle.
    MemorySize string
    The memory size attribute of the bundle.
    CpuCount int
    The cpu count attribute of the bundle.
    GpuCount string
    The gpu count attribute of the bundle.
    GpuSpec string
    The gpu spec attribute of the bundle.
    MemorySize string
    The memory size attribute of the bundle.
    cpuCount Integer
    The cpu count attribute of the bundle.
    gpuCount String
    The gpu count attribute of the bundle.
    gpuSpec String
    The gpu spec attribute of the bundle.
    memorySize String
    The memory size attribute of the bundle.
    cpuCount number
    The cpu count attribute of the bundle.
    gpuCount string
    The gpu count attribute of the bundle.
    gpuSpec string
    The gpu spec attribute of the bundle.
    memorySize string
    The memory size attribute of the bundle.
    cpu_count int
    The cpu count attribute of the bundle.
    gpu_count str
    The gpu count attribute of the bundle.
    gpu_spec str
    The gpu spec attribute of the bundle.
    memory_size str
    The memory size attribute of the bundle.
    cpuCount Number
    The cpu count attribute of the bundle.
    gpuCount String
    The gpu count attribute of the bundle.
    gpuSpec String
    The gpu spec attribute of the bundle.
    memorySize String
    The memory size attribute of the bundle.

    GetBundlesBundleDisk

    DiskSize string
    The disk size attribute of the bundle.
    DiskType string
    The disk type attribute of the bundle.
    DiskSize string
    The disk size attribute of the bundle.
    DiskType string
    The disk type attribute of the bundle.
    diskSize String
    The disk size attribute of the bundle.
    diskType String
    The disk type attribute of the bundle.
    diskSize string
    The disk size attribute of the bundle.
    diskType string
    The disk type attribute of the bundle.
    disk_size str
    The disk size attribute of the bundle.
    disk_type str
    The disk type attribute of the bundle.
    diskSize String
    The disk size attribute of the bundle.
    diskType String
    The disk type attribute of the bundle.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi