1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. getEcsKeyPairs
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

alicloud.ecs.getEcsKeyPairs

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

    This data source provides the Ecs Key Pairs of the current Alibaba Cloud user.

    NOTE: Available since v1.121.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.resourcemanager.getResourceGroups({});
    const defaultEcsKeyPair = new alicloud.ecs.EcsKeyPair("default", {
        keyPairName: name,
        publicKey: "ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
        resourceGroupId: _default.then(_default => _default.ids?.[1]),
        tags: {
            Created: "TF",
            For: "KeyPair",
        },
    });
    const ids = alicloud.ecs.getEcsKeyPairsOutput({
        ids: [defaultEcsKeyPair.id],
    });
    export const ecsKeyPairId0 = ids.apply(ids => ids.pairs?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.resourcemanager.get_resource_groups()
    default_ecs_key_pair = alicloud.ecs.EcsKeyPair("default",
        key_pair_name=name,
        public_key="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
        resource_group_id=default.ids[1],
        tags={
            "Created": "TF",
            "For": "KeyPair",
        })
    ids = alicloud.ecs.get_ecs_key_pairs_output(ids=[default_ecs_key_pair.id])
    pulumi.export("ecsKeyPairId0", ids.pairs[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"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, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultEcsKeyPair, err := ecs.NewEcsKeyPair(ctx, "default", &ecs.EcsKeyPairArgs{
    			KeyPairName:     pulumi.String(name),
    			PublicKey:       pulumi.String("ssh-rsa AAAAB3Nza12345678qwertyuudsfsg"),
    			ResourceGroupId: pulumi.String(_default.Ids[1]),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    				"For":     pulumi.String("KeyPair"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ids := ecs.GetEcsKeyPairsOutput(ctx, ecs.GetEcsKeyPairsOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultEcsKeyPair.ID(),
    			},
    		}, nil)
    		ctx.Export("ecsKeyPairId0", ids.ApplyT(func(ids ecs.GetEcsKeyPairsResult) (*string, error) {
    			return &ids.Pairs[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultEcsKeyPair = new AliCloud.Ecs.EcsKeyPair("default", new()
        {
            KeyPairName = name,
            PublicKey = "ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
            ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[1])),
            Tags = 
            {
                { "Created", "TF" },
                { "For", "KeyPair" },
            },
        });
    
        var ids = AliCloud.Ecs.GetEcsKeyPairs.Invoke(new()
        {
            Ids = new[]
            {
                defaultEcsKeyPair.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["ecsKeyPairId0"] = ids.Apply(getEcsKeyPairsResult => getEcsKeyPairsResult.Pairs[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.ecs.EcsKeyPair;
    import com.pulumi.alicloud.ecs.EcsKeyPairArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetEcsKeyPairsArgs;
    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 name = config.get("name").orElse("terraform-example");
            final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .build());
    
            var defaultEcsKeyPair = new EcsKeyPair("defaultEcsKeyPair", EcsKeyPairArgs.builder()
                .keyPairName(name)
                .publicKey("ssh-rsa AAAAB3Nza12345678qwertyuudsfsg")
                .resourceGroupId(default_.ids()[1])
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "KeyPair")
                ))
                .build());
    
            final var ids = EcsFunctions.getEcsKeyPairs(GetEcsKeyPairsArgs.builder()
                .ids(defaultEcsKeyPair.id())
                .build());
    
            ctx.export("ecsKeyPairId0", ids.applyValue(_ids -> _ids.pairs()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultEcsKeyPair:
        type: alicloud:ecs:EcsKeyPair
        name: default
        properties:
          keyPairName: ${name}
          publicKey: ssh-rsa AAAAB3Nza12345678qwertyuudsfsg
          resourceGroupId: ${default.ids[1]}
          tags:
            Created: TF
            For: KeyPair
    variables:
      default:
        fn::invoke:
          function: alicloud:resourcemanager:getResourceGroups
          arguments: {}
      ids:
        fn::invoke:
          function: alicloud:ecs:getEcsKeyPairs
          arguments:
            ids:
              - ${defaultEcsKeyPair.id}
    outputs:
      ecsKeyPairId0: ${ids.pairs[0].id}
    

    Using getEcsKeyPairs

    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 getEcsKeyPairs(args: GetEcsKeyPairsArgs, opts?: InvokeOptions): Promise<GetEcsKeyPairsResult>
    function getEcsKeyPairsOutput(args: GetEcsKeyPairsOutputArgs, opts?: InvokeOptions): Output<GetEcsKeyPairsResult>
    def get_ecs_key_pairs(finger_print: Optional[str] = None,
                          ids: Optional[Sequence[str]] = None,
                          name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          resource_group_id: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetEcsKeyPairsResult
    def get_ecs_key_pairs_output(finger_print: 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,
                          resource_group_id: Optional[pulumi.Input[str]] = None,
                          tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetEcsKeyPairsResult]
    func GetEcsKeyPairs(ctx *Context, args *GetEcsKeyPairsArgs, opts ...InvokeOption) (*GetEcsKeyPairsResult, error)
    func GetEcsKeyPairsOutput(ctx *Context, args *GetEcsKeyPairsOutputArgs, opts ...InvokeOption) GetEcsKeyPairsResultOutput

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

    public static class GetEcsKeyPairs 
    {
        public static Task<GetEcsKeyPairsResult> InvokeAsync(GetEcsKeyPairsArgs args, InvokeOptions? opts = null)
        public static Output<GetEcsKeyPairsResult> Invoke(GetEcsKeyPairsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEcsKeyPairsResult> getEcsKeyPairs(GetEcsKeyPairsArgs args, InvokeOptions options)
    public static Output<GetEcsKeyPairsResult> getEcsKeyPairs(GetEcsKeyPairsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: alicloud:ecs/getEcsKeyPairs:getEcsKeyPairs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FingerPrint string
    The fingerprint of the key pair.
    Ids List<string>
    A list of Key Pair IDs.
    NameRegex string
    A regex string to filter results by Key Pair name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    FingerPrint string
    The fingerprint of the key pair.
    Ids []string
    A list of Key Pair IDs.
    NameRegex string
    A regex string to filter results by Key Pair name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    ids List<String>
    A list of Key Pair IDs.
    nameRegex String
    A regex string to filter results by Key Pair name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    fingerPrint string
    The fingerprint of the key pair.
    ids string[]
    A list of Key Pair IDs.
    nameRegex string
    A regex string to filter results by Key Pair name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceGroupId string
    The ID of the resource group.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    finger_print str
    The fingerprint of the key pair.
    ids Sequence[str]
    A list of Key Pair IDs.
    name_regex str
    A regex string to filter results by Key Pair name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    resource_group_id str
    The ID of the resource group.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    ids List<String>
    A list of Key Pair IDs.
    nameRegex String
    A regex string to filter results by Key Pair name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group.
    tags Map<String>
    A mapping of tags to assign to the resource.

    getEcsKeyPairs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    KeyPairs List<Pulumi.AliCloud.Ecs.Outputs.GetEcsKeyPairsKeyPair>
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    Names List<string>
    A list of Key Pair names.
    Pairs List<Pulumi.AliCloud.Ecs.Outputs.GetEcsKeyPairsPair>
    A list of Ecs Key Pairs. Each element contains the following attributes:
    FingerPrint string
    The fingerprint of the Key Pair.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    Tags Dictionary<string, string>
    The tags of the Key Pair.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    KeyPairs []GetEcsKeyPairsKeyPair
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    Names []string
    A list of Key Pair names.
    Pairs []GetEcsKeyPairsPair
    A list of Ecs Key Pairs. Each element contains the following attributes:
    FingerPrint string
    The fingerprint of the Key Pair.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    Tags map[string]string
    The tags of the Key Pair.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    keyPairs List<GetEcsKeyPairsKeyPair>
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    names List<String>
    A list of Key Pair names.
    pairs List<GetEcsKeyPairsPair>
    A list of Ecs Key Pairs. Each element contains the following attributes:
    fingerPrint String
    The fingerprint of the Key Pair.
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    tags Map<String,String>
    The tags of the Key Pair.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    keyPairs GetEcsKeyPairsKeyPair[]
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    names string[]
    A list of Key Pair names.
    pairs GetEcsKeyPairsPair[]
    A list of Ecs Key Pairs. Each element contains the following attributes:
    fingerPrint string
    The fingerprint of the Key Pair.
    nameRegex string
    outputFile string
    resourceGroupId string
    The ID of the resource group.
    tags {[key: string]: string}
    The tags of the Key Pair.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    key_pairs Sequence[GetEcsKeyPairsKeyPair]
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    names Sequence[str]
    A list of Key Pair names.
    pairs Sequence[GetEcsKeyPairsPair]
    A list of Ecs Key Pairs. Each element contains the following attributes:
    finger_print str
    The fingerprint of the Key Pair.
    name_regex str
    output_file str
    resource_group_id str
    The ID of the resource group.
    tags Mapping[str, str]
    The tags of the Key Pair.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    keyPairs List<Property Map>
    (Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:

    Deprecated: Field key_pairs has been deprecated from provider version 1.121.0. New field pairs instead.

    names List<String>
    A list of Key Pair names.
    pairs List<Property Map>
    A list of Ecs Key Pairs. Each element contains the following attributes:
    fingerPrint String
    The fingerprint of the Key Pair.
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    tags Map<String>
    The tags of the Key Pair.

    Supporting Types

    GetEcsKeyPairsKeyPair

    FingerPrint string
    The fingerprint of the key pair.
    Id string
    The ID of the Key Pair.
    Instances List<Pulumi.AliCloud.Ecs.Inputs.GetEcsKeyPairsKeyPairInstance>
    A list of ECS instances that has been bound this Key Pair.
    KeyName string
    The name of the key pair.
    KeyPairName string
    The name of the Key Pair.
    ResourceGroupId string
    The ID of the resource group.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    FingerPrint string
    The fingerprint of the key pair.
    Id string
    The ID of the Key Pair.
    Instances []GetEcsKeyPairsKeyPairInstance
    A list of ECS instances that has been bound this Key Pair.
    KeyName string
    The name of the key pair.
    KeyPairName string
    The name of the Key Pair.
    ResourceGroupId string
    The ID of the resource group.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    id String
    The ID of the Key Pair.
    instances List<GetEcsKeyPairsKeyPairInstance>
    A list of ECS instances that has been bound this Key Pair.
    keyName String
    The name of the key pair.
    keyPairName String
    The name of the Key Pair.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    fingerPrint string
    The fingerprint of the key pair.
    id string
    The ID of the Key Pair.
    instances GetEcsKeyPairsKeyPairInstance[]
    A list of ECS instances that has been bound this Key Pair.
    keyName string
    The name of the key pair.
    keyPairName string
    The name of the Key Pair.
    resourceGroupId string
    The ID of the resource group.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    finger_print str
    The fingerprint of the key pair.
    id str
    The ID of the Key Pair.
    instances Sequence[GetEcsKeyPairsKeyPairInstance]
    A list of ECS instances that has been bound this Key Pair.
    key_name str
    The name of the key pair.
    key_pair_name str
    The name of the Key Pair.
    resource_group_id str
    The ID of the resource group.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    id String
    The ID of the Key Pair.
    instances List<Property Map>
    A list of ECS instances that has been bound this Key Pair.
    keyName String
    The name of the key pair.
    keyPairName String
    The name of the Key Pair.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String>
    A mapping of tags to assign to the resource.

    GetEcsKeyPairsKeyPairInstance

    AvailabilityZone string
    The zone ID of the instance.
    Description string
    The description of the ECS instance.
    ImageId string
    The image ID of the instance.
    InstanceId string
    The ID of the ECS instance.
    InstanceName string
    The name of the ECS instance.
    InstanceType string
    The instance type of the instance.
    KeyName string
    The name of the key pair.
    PrivateIp string
    The private IP address of the ECS instance.
    PublicIp string
    The public IP address or EIP of the ECS instance.
    RegionId string
    The region ID of the instance.
    Status string
    The status of the instance.
    VswitchId string
    The ID of the vSwitch.
    AvailabilityZone string
    The zone ID of the instance.
    Description string
    The description of the ECS instance.
    ImageId string
    The image ID of the instance.
    InstanceId string
    The ID of the ECS instance.
    InstanceName string
    The name of the ECS instance.
    InstanceType string
    The instance type of the instance.
    KeyName string
    The name of the key pair.
    PrivateIp string
    The private IP address of the ECS instance.
    PublicIp string
    The public IP address or EIP of the ECS instance.
    RegionId string
    The region ID of the instance.
    Status string
    The status of the instance.
    VswitchId string
    The ID of the vSwitch.
    availabilityZone String
    The zone ID of the instance.
    description String
    The description of the ECS instance.
    imageId String
    The image ID of the instance.
    instanceId String
    The ID of the ECS instance.
    instanceName String
    The name of the ECS instance.
    instanceType String
    The instance type of the instance.
    keyName String
    The name of the key pair.
    privateIp String
    The private IP address of the ECS instance.
    publicIp String
    The public IP address or EIP of the ECS instance.
    regionId String
    The region ID of the instance.
    status String
    The status of the instance.
    vswitchId String
    The ID of the vSwitch.
    availabilityZone string
    The zone ID of the instance.
    description string
    The description of the ECS instance.
    imageId string
    The image ID of the instance.
    instanceId string
    The ID of the ECS instance.
    instanceName string
    The name of the ECS instance.
    instanceType string
    The instance type of the instance.
    keyName string
    The name of the key pair.
    privateIp string
    The private IP address of the ECS instance.
    publicIp string
    The public IP address or EIP of the ECS instance.
    regionId string
    The region ID of the instance.
    status string
    The status of the instance.
    vswitchId string
    The ID of the vSwitch.
    availability_zone str
    The zone ID of the instance.
    description str
    The description of the ECS instance.
    image_id str
    The image ID of the instance.
    instance_id str
    The ID of the ECS instance.
    instance_name str
    The name of the ECS instance.
    instance_type str
    The instance type of the instance.
    key_name str
    The name of the key pair.
    private_ip str
    The private IP address of the ECS instance.
    public_ip str
    The public IP address or EIP of the ECS instance.
    region_id str
    The region ID of the instance.
    status str
    The status of the instance.
    vswitch_id str
    The ID of the vSwitch.
    availabilityZone String
    The zone ID of the instance.
    description String
    The description of the ECS instance.
    imageId String
    The image ID of the instance.
    instanceId String
    The ID of the ECS instance.
    instanceName String
    The name of the ECS instance.
    instanceType String
    The instance type of the instance.
    keyName String
    The name of the key pair.
    privateIp String
    The private IP address of the ECS instance.
    publicIp String
    The public IP address or EIP of the ECS instance.
    regionId String
    The region ID of the instance.
    status String
    The status of the instance.
    vswitchId String
    The ID of the vSwitch.

    GetEcsKeyPairsPair

    FingerPrint string
    The fingerprint of the key pair.
    Id string
    The ID of the Key Pair.
    Instances List<Pulumi.AliCloud.Ecs.Inputs.GetEcsKeyPairsPairInstance>
    A list of ECS instances that has been bound this Key Pair.
    KeyName string
    The name of the key pair.
    KeyPairName string
    The name of the Key Pair.
    ResourceGroupId string
    The ID of the resource group.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    FingerPrint string
    The fingerprint of the key pair.
    Id string
    The ID of the Key Pair.
    Instances []GetEcsKeyPairsPairInstance
    A list of ECS instances that has been bound this Key Pair.
    KeyName string
    The name of the key pair.
    KeyPairName string
    The name of the Key Pair.
    ResourceGroupId string
    The ID of the resource group.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    id String
    The ID of the Key Pair.
    instances List<GetEcsKeyPairsPairInstance>
    A list of ECS instances that has been bound this Key Pair.
    keyName String
    The name of the key pair.
    keyPairName String
    The name of the Key Pair.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    fingerPrint string
    The fingerprint of the key pair.
    id string
    The ID of the Key Pair.
    instances GetEcsKeyPairsPairInstance[]
    A list of ECS instances that has been bound this Key Pair.
    keyName string
    The name of the key pair.
    keyPairName string
    The name of the Key Pair.
    resourceGroupId string
    The ID of the resource group.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    finger_print str
    The fingerprint of the key pair.
    id str
    The ID of the Key Pair.
    instances Sequence[GetEcsKeyPairsPairInstance]
    A list of ECS instances that has been bound this Key Pair.
    key_name str
    The name of the key pair.
    key_pair_name str
    The name of the Key Pair.
    resource_group_id str
    The ID of the resource group.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    fingerPrint String
    The fingerprint of the key pair.
    id String
    The ID of the Key Pair.
    instances List<Property Map>
    A list of ECS instances that has been bound this Key Pair.
    keyName String
    The name of the key pair.
    keyPairName String
    The name of the Key Pair.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String>
    A mapping of tags to assign to the resource.

    GetEcsKeyPairsPairInstance

    AvailabilityZone string
    The zone ID of the instance.
    Description string
    The description of the ECS instance.
    ImageId string
    The image ID of the instance.
    InstanceId string
    The ID of the ECS instance.
    InstanceName string
    The name of the ECS instance.
    InstanceType string
    The instance type of the instance.
    KeyName string
    The name of the key pair.
    PrivateIp string
    The private IP address of the ECS instance.
    PublicIp string
    The public IP address or EIP of the ECS instance.
    RegionId string
    The region ID of the instance.
    Status string
    The status of the instance.
    VswitchId string
    The ID of the vSwitch.
    AvailabilityZone string
    The zone ID of the instance.
    Description string
    The description of the ECS instance.
    ImageId string
    The image ID of the instance.
    InstanceId string
    The ID of the ECS instance.
    InstanceName string
    The name of the ECS instance.
    InstanceType string
    The instance type of the instance.
    KeyName string
    The name of the key pair.
    PrivateIp string
    The private IP address of the ECS instance.
    PublicIp string
    The public IP address or EIP of the ECS instance.
    RegionId string
    The region ID of the instance.
    Status string
    The status of the instance.
    VswitchId string
    The ID of the vSwitch.
    availabilityZone String
    The zone ID of the instance.
    description String
    The description of the ECS instance.
    imageId String
    The image ID of the instance.
    instanceId String
    The ID of the ECS instance.
    instanceName String
    The name of the ECS instance.
    instanceType String
    The instance type of the instance.
    keyName String
    The name of the key pair.
    privateIp String
    The private IP address of the ECS instance.
    publicIp String
    The public IP address or EIP of the ECS instance.
    regionId String
    The region ID of the instance.
    status String
    The status of the instance.
    vswitchId String
    The ID of the vSwitch.
    availabilityZone string
    The zone ID of the instance.
    description string
    The description of the ECS instance.
    imageId string
    The image ID of the instance.
    instanceId string
    The ID of the ECS instance.
    instanceName string
    The name of the ECS instance.
    instanceType string
    The instance type of the instance.
    keyName string
    The name of the key pair.
    privateIp string
    The private IP address of the ECS instance.
    publicIp string
    The public IP address or EIP of the ECS instance.
    regionId string
    The region ID of the instance.
    status string
    The status of the instance.
    vswitchId string
    The ID of the vSwitch.
    availability_zone str
    The zone ID of the instance.
    description str
    The description of the ECS instance.
    image_id str
    The image ID of the instance.
    instance_id str
    The ID of the ECS instance.
    instance_name str
    The name of the ECS instance.
    instance_type str
    The instance type of the instance.
    key_name str
    The name of the key pair.
    private_ip str
    The private IP address of the ECS instance.
    public_ip str
    The public IP address or EIP of the ECS instance.
    region_id str
    The region ID of the instance.
    status str
    The status of the instance.
    vswitch_id str
    The ID of the vSwitch.
    availabilityZone String
    The zone ID of the instance.
    description String
    The description of the ECS instance.
    imageId String
    The image ID of the instance.
    instanceId String
    The ID of the ECS instance.
    instanceName String
    The name of the ECS instance.
    instanceType String
    The instance type of the instance.
    keyName String
    The name of the key pair.
    privateIp String
    The private IP address of the ECS instance.
    publicIp String
    The public IP address or EIP of the ECS instance.
    regionId String
    The region ID of the instance.
    status String
    The status of the instance.
    vswitchId String
    The ID of the vSwitch.

    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.83.0 published on Monday, Jul 21, 2025 by Pulumi