1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. ecs
  6. Keypair
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    ECS key pair (Keypair) is generated by default using the RSA 2048-bit encryption algorithm, producing a pair of associated keys: a public key and a private key. The public key is used to encrypt data, converting plaintext into unreadable ciphertext. The private key is the sole credential for decryption, restoring ciphertext to its original plaintext, ensuring secure authentication and data transmission.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const eCSKeypairDemo = new volcenginecc.ecs.Keypair("ECSKeypairDemo", {
        keyPairName: "ECSKeypairDemo",
        projectName: "default",
        description: "ECSKeypairDemo Description",
        tags: [{
            key: "env",
            value: "test",
        }],
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    e_cs_keypair_demo = volcenginecc.ecs.Keypair("ECSKeypairDemo",
        key_pair_name="ECSKeypairDemo",
        project_name="default",
        description="ECSKeypairDemo Description",
        tags=[{
            "key": "env",
            "value": "test",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/ecs"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.NewKeypair(ctx, "ECSKeypairDemo", &ecs.KeypairArgs{
    			KeyPairName: pulumi.String("ECSKeypairDemo"),
    			ProjectName: pulumi.String("default"),
    			Description: pulumi.String("ECSKeypairDemo Description"),
    			Tags: ecs.KeypairTagArray{
    				&ecs.KeypairTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var eCSKeypairDemo = new Volcenginecc.Ecs.Keypair("ECSKeypairDemo", new()
        {
            KeyPairName = "ECSKeypairDemo",
            ProjectName = "default",
            Description = "ECSKeypairDemo Description",
            Tags = new[]
            {
                new Volcenginecc.Ecs.Inputs.KeypairTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.ecs.Keypair;
    import com.volcengine.volcenginecc.ecs.KeypairArgs;
    import com.pulumi.volcenginecc.ecs.inputs.KeypairTagArgs;
    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) {
            var eCSKeypairDemo = new Keypair("eCSKeypairDemo", KeypairArgs.builder()
                .keyPairName("ECSKeypairDemo")
                .projectName("default")
                .description("ECSKeypairDemo Description")
                .tags(KeypairTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .build());
    
        }
    }
    
    resources:
      eCSKeypairDemo:
        type: volcenginecc:ecs:Keypair
        name: ECSKeypairDemo
        properties:
          keyPairName: ECSKeypairDemo
          projectName: default
          description: ECSKeypairDemo Description
          tags:
            - key: env
              value: test
    

    Create Keypair Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Keypair(name: string, args: KeypairArgs, opts?: CustomResourceOptions);
    @overload
    def Keypair(resource_name: str,
                args: KeypairArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Keypair(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                key_pair_name: Optional[str] = None,
                description: Optional[str] = None,
                instance_ids: Optional[Sequence[str]] = None,
                project_name: Optional[str] = None,
                public_key: Optional[str] = None,
                tags: Optional[Sequence[KeypairTagArgs]] = None)
    func NewKeypair(ctx *Context, name string, args KeypairArgs, opts ...ResourceOption) (*Keypair, error)
    public Keypair(string name, KeypairArgs args, CustomResourceOptions? opts = null)
    public Keypair(String name, KeypairArgs args)
    public Keypair(String name, KeypairArgs args, CustomResourceOptions options)
    
    type: volcenginecc:ecs:Keypair
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KeypairArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args KeypairArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args KeypairArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KeypairArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KeypairArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var keypairResource = new Volcenginecc.Ecs.Keypair("keypairResource", new()
    {
        KeyPairName = "string",
        Description = "string",
        InstanceIds = new[]
        {
            "string",
        },
        ProjectName = "string",
        PublicKey = "string",
        Tags = new[]
        {
            new Volcenginecc.Ecs.Inputs.KeypairTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := ecs.NewKeypair(ctx, "keypairResource", &ecs.KeypairArgs{
    	KeyPairName: pulumi.String("string"),
    	Description: pulumi.String("string"),
    	InstanceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProjectName: pulumi.String("string"),
    	PublicKey:   pulumi.String("string"),
    	Tags: ecs.KeypairTagArray{
    		&ecs.KeypairTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var keypairResource = new Keypair("keypairResource", KeypairArgs.builder()
        .keyPairName("string")
        .description("string")
        .instanceIds("string")
        .projectName("string")
        .publicKey("string")
        .tags(KeypairTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    keypair_resource = volcenginecc.ecs.Keypair("keypairResource",
        key_pair_name="string",
        description="string",
        instance_ids=["string"],
        project_name="string",
        public_key="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const keypairResource = new volcenginecc.ecs.Keypair("keypairResource", {
        keyPairName: "string",
        description: "string",
        instanceIds: ["string"],
        projectName: "string",
        publicKey: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcenginecc:ecs:Keypair
    properties:
        description: string
        instanceIds:
            - string
        keyPairName: string
        projectName: string
        publicKey: string
        tags:
            - key: string
              value: string
    

    Keypair Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Keypair resource accepts the following input properties:

    KeyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    Description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    InstanceIds List<string>
    Instance ID for the operation.
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    PublicKey string
    Public key information of the key pair.
    Tags List<Volcengine.KeypairTag>
    KeyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    Description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    InstanceIds []string
    Instance ID for the operation.
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    PublicKey string
    Public key information of the key pair.
    Tags []KeypairTagArgs
    keyPairName String
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    description String
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    instanceIds List<String>
    Instance ID for the operation.
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey String
    Public key information of the key pair.
    tags List<KeypairTag>
    keyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    instanceIds string[]
    Instance ID for the operation.
    projectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey string
    Public key information of the key pair.
    tags KeypairTag[]
    key_pair_name str
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    description str
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    instance_ids Sequence[str]
    Instance ID for the operation.
    project_name str
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    public_key str
    Public key information of the key pair.
    tags Sequence[KeypairTagArgs]
    keyPairName String
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    description String
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    instanceIds List<String>
    Instance ID for the operation.
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey String
    Public key information of the key pair.
    tags List<Property Map>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Keypair resource produces the following output properties:

    CreatedTime string
    Creation time of the key pair.
    FingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyPairId string
    Unique ID of the key pair.
    UpdatedTime string
    Update time of the key pair.
    CreatedTime string
    Creation time of the key pair.
    FingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyPairId string
    Unique ID of the key pair.
    UpdatedTime string
    Update time of the key pair.
    createdTime String
    Creation time of the key pair.
    fingerPrint String
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    id String
    The provider-assigned unique ID for this managed resource.
    keyPairId String
    Unique ID of the key pair.
    updatedTime String
    Update time of the key pair.
    createdTime string
    Creation time of the key pair.
    fingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    id string
    The provider-assigned unique ID for this managed resource.
    keyPairId string
    Unique ID of the key pair.
    updatedTime string
    Update time of the key pair.
    created_time str
    Creation time of the key pair.
    finger_print str
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    id str
    The provider-assigned unique ID for this managed resource.
    key_pair_id str
    Unique ID of the key pair.
    updated_time str
    Update time of the key pair.
    createdTime String
    Creation time of the key pair.
    fingerPrint String
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    id String
    The provider-assigned unique ID for this managed resource.
    keyPairId String
    Unique ID of the key pair.
    updatedTime String
    Update time of the key pair.

    Look up Existing Keypair Resource

    Get an existing Keypair resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: KeypairState, opts?: CustomResourceOptions): Keypair
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            finger_print: Optional[str] = None,
            instance_ids: Optional[Sequence[str]] = None,
            key_pair_id: Optional[str] = None,
            key_pair_name: Optional[str] = None,
            project_name: Optional[str] = None,
            public_key: Optional[str] = None,
            tags: Optional[Sequence[KeypairTagArgs]] = None,
            updated_time: Optional[str] = None) -> Keypair
    func GetKeypair(ctx *Context, name string, id IDInput, state *KeypairState, opts ...ResourceOption) (*Keypair, error)
    public static Keypair Get(string name, Input<string> id, KeypairState? state, CustomResourceOptions? opts = null)
    public static Keypair get(String name, Output<String> id, KeypairState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:ecs:Keypair    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedTime string
    Creation time of the key pair.
    Description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    FingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    InstanceIds List<string>
    Instance ID for the operation.
    KeyPairId string
    Unique ID of the key pair.
    KeyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    PublicKey string
    Public key information of the key pair.
    Tags List<Volcengine.KeypairTag>
    UpdatedTime string
    Update time of the key pair.
    CreatedTime string
    Creation time of the key pair.
    Description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    FingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    InstanceIds []string
    Instance ID for the operation.
    KeyPairId string
    Unique ID of the key pair.
    KeyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    ProjectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    PublicKey string
    Public key information of the key pair.
    Tags []KeypairTagArgs
    UpdatedTime string
    Update time of the key pair.
    createdTime String
    Creation time of the key pair.
    description String
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    fingerPrint String
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    instanceIds List<String>
    Instance ID for the operation.
    keyPairId String
    Unique ID of the key pair.
    keyPairName String
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey String
    Public key information of the key pair.
    tags List<KeypairTag>
    updatedTime String
    Update time of the key pair.
    createdTime string
    Creation time of the key pair.
    description string
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    fingerPrint string
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    instanceIds string[]
    Instance ID for the operation.
    keyPairId string
    Unique ID of the key pair.
    keyPairName string
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    projectName string
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey string
    Public key information of the key pair.
    tags KeypairTag[]
    updatedTime string
    Update time of the key pair.
    created_time str
    Creation time of the key pair.
    description str
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    finger_print str
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    instance_ids Sequence[str]
    Instance ID for the operation.
    key_pair_id str
    Unique ID of the key pair.
    key_pair_name str
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    project_name str
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    public_key str
    Public key information of the key pair.
    tags Sequence[KeypairTagArgs]
    updated_time str
    Update time of the key pair.
    createdTime String
    Creation time of the key pair.
    description String
    Description of the key pair. The default value is an empty string. Must start with a letter or Chinese character. Can only contain Chinese characters, letters, numbers, period ('.'), space, underscore ('_'), hyphen ('-'), equals sign ('='), English comma (','), Chinese comma (','), and Chinese period ('。'). Length must not exceed 255 characters.
    fingerPrint String
    Fingerprint of the key pair. The public key fingerprint format is defined by RFC4716 and uses the MD5 hash algorithm.
    instanceIds List<String>
    Instance ID for the operation.
    keyPairId String
    Unique ID of the key pair.
    keyPairName String
    Key pair name. Must not duplicate existing names. Length must be between 2 and 64 characters. Periods ('.') can be used to separate the name into segments. Each segment can contain uppercase and lowercase letters, numbers, or hyphens ('-'). The name cannot start or end with '-' or '.', and cannot contain consecutive '-' or '.'.
    projectName String
    Project to which the resource belongs. Each resource can belong to only one project. Can only contain letters, numbers, underscore ('_'), period ('.'), and hyphen ('-'). Length must not exceed 64 characters.
    publicKey String
    Public key information of the key pair.
    tags List<Property Map>
    updatedTime String
    Update time of the key pair.

    Supporting Types

    KeypairTag, KeypairTagArgs

    Key string
    Tag key.
    Value string
    Tag value.
    Key string
    Tag key.
    Value string
    Tag value.
    key String
    Tag key.
    value String
    Tag value.
    key string
    Tag key.
    value string
    Tag value.
    key str
    Tag key.
    value str
    Tag value.
    key String
    Tag key.
    value String
    Tag value.

    Import

    $ pulumi import volcenginecc:ecs/keypair:Keypair example "key_pair_name"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.