1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. ecs
  5. Keypair
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

volcenginecc.ecs.Keypair

Deploy with Pulumi
volcenginecc logo
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

    ECS 密钥对(Keypair)默认采用 RSA 2048 位加密算法生成一对关联密钥,包含公钥(public key)和私钥(private key)。其中,公钥用于对数据进行加密处理,可将明文转换为不可直接读取的密文;私钥则作为解密的唯一凭证,能将密文还原为原始明文,实现安全的身份验证与数据传输。

    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,
                private_key: Optional[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",
        },
        PrivateKey = "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"),
    	},
    	PrivateKey:  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")
        .privateKey("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"],
        private_key="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"],
        privateKey: "string",
        projectName: "string",
        publicKey: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcenginecc:ecs:Keypair
    properties:
        description: string
        instanceIds:
            - string
        keyPairName: string
        privateKey: 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
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    Description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    InstanceIds List<string>
    操作的实例ID。
    PrivateKey string
    密钥对私钥信息。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    PublicKey string
    密钥对的公钥信息。
    Tags List<Volcengine.KeypairTag>
    KeyPairName string
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    Description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    InstanceIds []string
    操作的实例ID。
    PrivateKey string
    密钥对私钥信息。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    PublicKey string
    密钥对的公钥信息。
    Tags []KeypairTagArgs
    keyPairName String
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    description String
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    instanceIds List<String>
    操作的实例ID。
    privateKey String
    密钥对私钥信息。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey String
    密钥对的公钥信息。
    tags List<KeypairTag>
    keyPairName string
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    instanceIds string[]
    操作的实例ID。
    privateKey string
    密钥对私钥信息。
    projectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey string
    密钥对的公钥信息。
    tags KeypairTag[]
    key_pair_name str
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    description str
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    instance_ids Sequence[str]
    操作的实例ID。
    private_key str
    密钥对私钥信息。
    project_name str
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    public_key str
    密钥对的公钥信息。
    tags Sequence[KeypairTagArgs]
    keyPairName String
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    description String
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    instanceIds List<String>
    操作的实例ID。
    privateKey String
    密钥对私钥信息。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey String
    密钥对的公钥信息。
    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
    密钥对创建时间。
    FingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyPairId string
    密钥对唯一ID。
    UpdatedTime string
    密钥对更新时间。
    CreatedTime string
    密钥对创建时间。
    FingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyPairId string
    密钥对唯一ID。
    UpdatedTime string
    密钥对更新时间。
    createdTime String
    密钥对创建时间。
    fingerPrint String
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    id String
    The provider-assigned unique ID for this managed resource.
    keyPairId String
    密钥对唯一ID。
    updatedTime String
    密钥对更新时间。
    createdTime string
    密钥对创建时间。
    fingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    id string
    The provider-assigned unique ID for this managed resource.
    keyPairId string
    密钥对唯一ID。
    updatedTime string
    密钥对更新时间。
    created_time str
    密钥对创建时间。
    finger_print str
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    id str
    The provider-assigned unique ID for this managed resource.
    key_pair_id str
    密钥对唯一ID。
    updated_time str
    密钥对更新时间。
    createdTime String
    密钥对创建时间。
    fingerPrint String
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    id String
    The provider-assigned unique ID for this managed resource.
    keyPairId String
    密钥对唯一ID。
    updatedTime String
    密钥对更新时间。

    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,
            private_key: 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
    密钥对创建时间。
    Description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    FingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    InstanceIds List<string>
    操作的实例ID。
    KeyPairId string
    密钥对唯一ID。
    KeyPairName string
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    PrivateKey string
    密钥对私钥信息。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    PublicKey string
    密钥对的公钥信息。
    Tags List<Volcengine.KeypairTag>
    UpdatedTime string
    密钥对更新时间。
    CreatedTime string
    密钥对创建时间。
    Description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    FingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    InstanceIds []string
    操作的实例ID。
    KeyPairId string
    密钥对唯一ID。
    KeyPairName string
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    PrivateKey string
    密钥对私钥信息。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    PublicKey string
    密钥对的公钥信息。
    Tags []KeypairTagArgs
    UpdatedTime string
    密钥对更新时间。
    createdTime String
    密钥对创建时间。
    description String
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    fingerPrint String
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    instanceIds List<String>
    操作的实例ID。
    keyPairId String
    密钥对唯一ID。
    keyPairName String
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    privateKey String
    密钥对私钥信息。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey String
    密钥对的公钥信息。
    tags List<KeypairTag>
    updatedTime String
    密钥对更新时间。
    createdTime string
    密钥对创建时间。
    description string
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    fingerPrint string
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    instanceIds string[]
    操作的实例ID。
    keyPairId string
    密钥对唯一ID。
    keyPairName string
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    privateKey string
    密钥对私钥信息。
    projectName string
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey string
    密钥对的公钥信息。
    tags KeypairTag[]
    updatedTime string
    密钥对更新时间。
    created_time str
    密钥对创建时间。
    description str
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    finger_print str
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    instance_ids Sequence[str]
    操作的实例ID。
    key_pair_id str
    密钥对唯一ID。
    key_pair_name str
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    private_key str
    密钥对私钥信息。
    project_name str
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    public_key str
    密钥对的公钥信息。
    tags Sequence[KeypairTagArgs]
    updated_time str
    密钥对更新时间。
    createdTime String
    密钥对创建时间。
    description String
    密钥对的描述,默认值为空字符串。必须以字母或中文开头。只能包含中文、字母、数字、点“.”、空格、下划线“_”、中划线“-”、等号“=”、英文逗号“,”、中文逗号“,”和中文句号“。”长度限制在255个字符以内。
    fingerPrint String
    密钥对的指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。
    instanceIds List<String>
    操作的实例ID。
    keyPairId String
    密钥对唯一ID。
    keyPairName String
    密钥对名称。不可与已有名称重复。长度限制在 2~64 个字符之间。允许使用点号“.”分隔字符成多段,每段允许使用大小写字母、数字或连字符“-”。不能以“-”和“.”开头或结尾,不能连续使用“-”或者“.”。
    privateKey String
    密钥对私钥信息。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。只能包含字母、数字、下划线“_”、点“.”和中划线“-”。长度限制在64个字符以内。
    publicKey String
    密钥对的公钥信息。
    tags List<Property Map>
    updatedTime String
    密钥对更新时间。

    Supporting Types

    KeypairTag, KeypairTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    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
    volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate