alicloud.eds.getDesktopTypes
Explore with Pulumi AI
This data source provides the Ecd Desktop Types of the current Alibaba Cloud user.
NOTE: Available in v1.170.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Eds.GetDesktopTypes.Invoke(new()
{
InstanceTypeFamily = "eds.hf",
});
return new Dictionary<string, object?>
{
["ecdDesktopTypeId1"] = ids.Apply(getDesktopTypesResult => getDesktopTypesResult.Types[0]?.Id),
};
});
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 {
ids, err := eds.GetDesktopTypes(ctx, &eds.GetDesktopTypesArgs{
InstanceTypeFamily: pulumi.StringRef("eds.hf"),
}, nil)
if err != nil {
return err
}
ctx.Export("ecdDesktopTypeId1", ids.Types[0].Id)
return nil
})
}
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.GetDesktopTypesArgs;
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 ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
.instanceTypeFamily("eds.hf")
.build());
ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id()));
}
}
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.eds.get_desktop_types(instance_type_family="eds.hf")
pulumi.export("ecdDesktopTypeId1", ids.types[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.eds.getDesktopTypes({
instanceTypeFamily: "eds.hf",
});
export const ecdDesktopTypeId1 = ids.then(ids => ids.types?.[0]?.id);
variables:
ids:
fn::invoke:
Function: alicloud:eds:getDesktopTypes
Arguments:
instanceTypeFamily: eds.hf
outputs:
ecdDesktopTypeId1: ${ids.types[0].id}
Using getDesktopTypes
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 getDesktopTypes(args: GetDesktopTypesArgs, opts?: InvokeOptions): Promise<GetDesktopTypesResult>
function getDesktopTypesOutput(args: GetDesktopTypesOutputArgs, opts?: InvokeOptions): Output<GetDesktopTypesResult>
def get_desktop_types(cpu_count: Optional[int] = None,
gpu_count: Optional[float] = None,
ids: Optional[Sequence[str]] = None,
instance_type_family: Optional[str] = None,
memory_size: Optional[int] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDesktopTypesResult
def get_desktop_types_output(cpu_count: Optional[pulumi.Input[int]] = None,
gpu_count: Optional[pulumi.Input[float]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_type_family: Optional[pulumi.Input[str]] = None,
memory_size: Optional[pulumi.Input[int]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDesktopTypesResult]
func GetDesktopTypes(ctx *Context, args *GetDesktopTypesArgs, opts ...InvokeOption) (*GetDesktopTypesResult, error)
func GetDesktopTypesOutput(ctx *Context, args *GetDesktopTypesOutputArgs, opts ...InvokeOption) GetDesktopTypesResultOutput
> Note: This function is named GetDesktopTypes
in the Go SDK.
public static class GetDesktopTypes
{
public static Task<GetDesktopTypesResult> InvokeAsync(GetDesktopTypesArgs args, InvokeOptions? opts = null)
public static Output<GetDesktopTypesResult> Invoke(GetDesktopTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDesktopTypesResult> getDesktopTypes(GetDesktopTypesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:eds/getDesktopTypes:getDesktopTypes
arguments:
# arguments dictionary
The following arguments are supported:
- Cpu
Count int The CPU cores.
- Gpu
Count double The GPU cores.
- Ids List<string>
A list of Desktop Type IDs.
- Instance
Type stringFamily The Specification family.
- Memory
Size int The Memory size. Unit: MiB.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Status string
The status of the resource.
- Cpu
Count int The CPU cores.
- Gpu
Count float64 The GPU cores.
- Ids []string
A list of Desktop Type IDs.
- Instance
Type stringFamily The Specification family.
- Memory
Size int The Memory size. Unit: MiB.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Status string
The status of the resource.
- cpu
Count Integer The CPU cores.
- gpu
Count Double The GPU cores.
- ids List<String>
A list of Desktop Type IDs.
- instance
Type StringFamily The Specification family.
- memory
Size Integer The Memory size. Unit: MiB.
- output
File String File name where to save data source results (after running
pulumi preview
).- status String
The status of the resource.
- cpu
Count number The CPU cores.
- gpu
Count number The GPU cores.
- ids string[]
A list of Desktop Type IDs.
- instance
Type stringFamily The Specification family.
- memory
Size number The Memory size. Unit: MiB.
- output
File string File name where to save data source results (after running
pulumi preview
).- status string
The status of the resource.
- cpu_
count int The CPU cores.
- gpu_
count float The GPU cores.
- ids Sequence[str]
A list of Desktop Type IDs.
- instance_
type_ strfamily The Specification family.
- memory_
size int The Memory size. Unit: MiB.
- output_
file str File name where to save data source results (after running
pulumi preview
).- status str
The status of the resource.
- cpu
Count Number The CPU cores.
- gpu
Count Number The GPU cores.
- ids List<String>
A list of Desktop Type IDs.
- instance
Type StringFamily The Specification family.
- memory
Size Number The Memory size. Unit: MiB.
- output
File String File name where to save data source results (after running
pulumi preview
).- status String
The status of the resource.
getDesktopTypes Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Types
List<Pulumi.
Ali Cloud. Eds. Outputs. Get Desktop Types Type> - Cpu
Count int - Gpu
Count double - Instance
Type stringFamily - Memory
Size int - Output
File string - Status string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Types
[]Get
Desktop Types Type - Cpu
Count int - Gpu
Count float64 - Instance
Type stringFamily - Memory
Size int - Output
File string - Status string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- types
List<Get
Desktop Types Type> - cpu
Count Integer - gpu
Count Double - instance
Type StringFamily - memory
Size Integer - output
File String - status String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- types
Get
Desktop Types Type[] - cpu
Count number - gpu
Count number - instance
Type stringFamily - memory
Size number - output
File string - status string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- types
Sequence[Get
Desktop Types Type] - cpu_
count int - gpu_
count float - instance_
type_ strfamily - memory_
size int - output_
file str - status str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- types List<Property Map>
- cpu
Count Number - gpu
Count Number - instance
Type StringFamily - memory
Size Number - output
File String - status String
Supporting Types
GetDesktopTypesType
- Cpu
Count string The CPU cores.
- Data
Disk stringSize The size of the data disk. Unit: GiB.
- Desktop
Type stringId Specification ID.
- Gpu
Count double The GPU cores.
- Gpu
Spec string The GPU video memory.
- Id string
The ID of the Desktop Type.
- Instance
Type stringFamily The Specification family.
- Memory
Size string The Memory size. Unit: MiB.
- Status string
The status of the resource.
- System
Disk stringSize The size of the system disk. Unit: GiB.
- Cpu
Count string The CPU cores.
- Data
Disk stringSize The size of the data disk. Unit: GiB.
- Desktop
Type stringId Specification ID.
- Gpu
Count float64 The GPU cores.
- Gpu
Spec string The GPU video memory.
- Id string
The ID of the Desktop Type.
- Instance
Type stringFamily The Specification family.
- Memory
Size string The Memory size. Unit: MiB.
- Status string
The status of the resource.
- System
Disk stringSize The size of the system disk. Unit: GiB.
- cpu
Count String The CPU cores.
- data
Disk StringSize The size of the data disk. Unit: GiB.
- desktop
Type StringId Specification ID.
- gpu
Count Double The GPU cores.
- gpu
Spec String The GPU video memory.
- id String
The ID of the Desktop Type.
- instance
Type StringFamily The Specification family.
- memory
Size String The Memory size. Unit: MiB.
- status String
The status of the resource.
- system
Disk StringSize The size of the system disk. Unit: GiB.
- cpu
Count string The CPU cores.
- data
Disk stringSize The size of the data disk. Unit: GiB.
- desktop
Type stringId Specification ID.
- gpu
Count number The GPU cores.
- gpu
Spec string The GPU video memory.
- id string
The ID of the Desktop Type.
- instance
Type stringFamily The Specification family.
- memory
Size string The Memory size. Unit: MiB.
- status string
The status of the resource.
- system
Disk stringSize The size of the system disk. Unit: GiB.
- cpu_
count str The CPU cores.
- data_
disk_ strsize The size of the data disk. Unit: GiB.
- desktop_
type_ strid Specification ID.
- gpu_
count float The GPU cores.
- gpu_
spec str The GPU video memory.
- id str
The ID of the Desktop Type.
- instance_
type_ strfamily The Specification family.
- memory_
size str The Memory size. Unit: MiB.
- status str
The status of the resource.
- system_
disk_ strsize The size of the system disk. Unit: GiB.
- cpu
Count String The CPU cores.
- data
Disk StringSize The size of the data disk. Unit: GiB.
- desktop
Type StringId Specification ID.
- gpu
Count Number The GPU cores.
- gpu
Spec String The GPU video memory.
- id String
The ID of the Desktop Type.
- instance
Type StringFamily The Specification family.
- memory
Size String The Memory size. Unit: MiB.
- status String
The status of the resource.
- system
Disk StringSize The size of the system disk. Unit: GiB.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.