Documentation
¶
Overview ¶
* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.
Index ¶
- Constants
- type Client
- func (c *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
- func (c *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
- func (c *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
- func (c *Client) ModifyKeyPairAttribute(request *ModifyKeyPairAttributeRequest) (response *ModifyKeyPairAttributeResponse, err error)
- type DeleteKeyPairsRequest
- type DeleteKeyPairsResponse
- type DescribeKeyPairsRequest
- type DescribeKeyPairsResponse
- type DescribeKeyPairsResponseParams
- type ImportKeyPairRequest
- type ImportKeyPairResponse
- type ImportKeyPairResponseParams
- type KeyPair
- type ModifyKeyPairAttributeRequest
- type ModifyKeyPairAttributeResponse
Constants ¶
View Source
const ( APIVersion = "2025-09-01" SERVICE = "ccs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClientWithSecretKey ¶
func (*Client) DeleteKeyPairs ¶
func (c *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error)
DeleteKeyPairs 删除一个或多个密钥对。
func (*Client) DescribeKeyPairs ¶
func (c *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error)
DescribeKeyPairs 查询密钥对列表。
func (*Client) ImportKeyPair ¶
func (c *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error)
ImportKeyPair 查询密钥对列表。
func (*Client) ModifyKeyPairAttribute ¶
func (c *Client) ModifyKeyPairAttribute(request *ModifyKeyPairAttributeRequest) (response *ModifyKeyPairAttributeResponse, err error)
ModifyKeyPairAttribute 修改一个密钥对的属性。
type DeleteKeyPairsRequest ¶
type DeleteKeyPairsRequest struct {
*common.BaseRequest
// KeyIds 一个或多个待操作的密钥对ID。每次请求批量密钥对的上限为100。
KeyIds []string `json:"keyIds,omitempty"`
}
DeleteKeyPairsRequest 删除一个或多个密钥对的响应结果。
func NewDeleteKeyPairsRequest ¶
func NewDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest)
type DeleteKeyPairsResponse ¶
type DeleteKeyPairsResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewDeleteKeyPairsResponse ¶
func NewDeleteKeyPairsResponse() (response *DeleteKeyPairsResponse)
type DescribeKeyPairsRequest ¶
type DescribeKeyPairsRequest struct {
*common.BaseRequest
// KeyIds 根据密钥对ID列表进行筛选。
KeyIds []string `json:"keyIds,omitempty"`
// KeyName 根据密钥对名称进行筛选。该字段支持模糊搜索。
KeyName *string `json:"keyName,omitempty"`
// PageSize 返回的分页大小。默认为20,最大为1000。
PageSize *int `json:"pageSize,omitempty"`
// PageNum 返回的分页数。默认为1。
PageNum *int `json:"pageNum,omitempty"`
}
DescribeKeyPairsRequest 查询密钥对列表的请求参数。
func NewDescribeKeyPairsRequest ¶
func NewDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest)
type DescribeKeyPairsResponse ¶
type DescribeKeyPairsResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeKeyPairsResponseParams `json:"response,omitempty"`
}
func NewDescribeKeyPairsResponse ¶
func NewDescribeKeyPairsResponse() (response *DescribeKeyPairsResponse)
type DescribeKeyPairsResponseParams ¶
type DescribeKeyPairsResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalCount 符合条件的数据总数。
TotalCount *int `json:"totalCount,omitempty"`
// DataSet 密钥对结果集。
DataSet []*KeyPair `json:"dataSet,omitempty"`
}
DescribeKeyPairsResponseParams 描述了密钥对的基本信息的响应信息。
type ImportKeyPairRequest ¶
type ImportKeyPairRequest struct {
*common.BaseRequest
// KeyName 密钥对名称。可由数字,大小写字母和-组成,长度不超过32个字符,不能和账号下其他的密钥对重名。示例值:my_key, my-key。
KeyName *string `json:"keyName,omitempty"`
// KeyDescription 密钥对描述信息。不超过255个字符。
KeyDescription *string `json:"keyDescription,omitempty"`
// PublicKey 密钥对的公钥内容,OpenSSH 格式。公钥内容至多传5个公钥,通过分隔。示例值:ssh-rsa XXXXXXXXXXXX key。
PublicKey *string `json:"publicKey,omitempty"`
}
ImportKeyPairRequest 导入密钥对的请求参数。
func NewImportKeyPairRequest ¶
func NewImportKeyPairRequest() (request *ImportKeyPairRequest)
type ImportKeyPairResponse ¶
type ImportKeyPairResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *ImportKeyPairResponseParams `json:"response,omitempty"`
}
func NewImportKeyPairResponse ¶
func NewImportKeyPairResponse() (response *ImportKeyPairResponse)
type ImportKeyPairResponseParams ¶
type ImportKeyPairResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// KeyId 密钥对ID。
KeyId *string `json:"keyId,omitempty"`
}
ImportKeyPairResponseParams 导入密钥对的响应信息。
type KeyPair ¶
type KeyPair struct {
// KeyId 密钥对ID。示例值:key-xxxxxxxx。
KeyId *string `json:"keyId,omitempty"`
// KeyName 密钥对名称。
KeyName *string `json:"keyName,omitempty"`
// PublicKey 密钥对的公钥内容。OpenSSH 格式。示例值:ssh-rsa XXXXXXXXXXXX key_xxx。
PublicKey *string `json:"publicKey,omitempty"`
// KeyDescription 密钥对描述信息。
KeyDescription *string `json:"keyDescription,omitempty"`
// CreateTime 创建时间。格式为:YYYY-MM-ddTHH:mm:ssZ。
CreateTime *string `json:"createTime,omitempty"`
}
KeyPair 描述了密钥对的基本信息。
type ModifyKeyPairAttributeRequest ¶
type ModifyKeyPairAttributeRequest struct {
*common.BaseRequest
// KeyId 密钥对ID。示例值:key-xxxxxxxx。
KeyId *string `json:"keyId,omitempty"`
// KeyDescription 密钥对描述信息。不超过255个字符。
KeyDescription *string `json:"keyDescription,omitempty"`
}
ModifyKeyPairAttributeRequest 修改一个密钥对的属性的请求参数。
func NewModifyKeyPairAttributeRequest ¶
func NewModifyKeyPairAttributeRequest() (request *ModifyKeyPairAttributeRequest)
type ModifyKeyPairAttributeResponse ¶
type ModifyKeyPairAttributeResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyKeyPairAttributeResponse ¶
func NewModifyKeyPairAttributeResponse() (response *ModifyKeyPairAttributeResponse)
Click to show internal directories.
Click to hide internal directories.