Documentation ¶
Index ¶
- type AssociateKeypairRequest
- type AssociateKeypairRequestBody
- type AssociateKeypairResponse
- type AssociateKeypairResponseStatus
- type AssociateKeypairResponseStatusEnum
- type Auth
- type AuthType
- type AuthTypeEnum
- type BatchAssociateKeypairRequest
- type BatchAssociateKeypairRequestBody
- type BatchAssociateKeypairResponse
- type ClearPrivateKeyRequest
- type ClearPrivateKeyResponse
- type CreateKeypairAction
- type CreateKeypairActionScope
- type CreateKeypairActionScopeEnum
- type CreateKeypairActionType
- type CreateKeypairActionTypeEnum
- type CreateKeypairRequest
- type CreateKeypairRequestBody
- type CreateKeypairResp
- type CreateKeypairRespType
- type CreateKeypairRespTypeEnum
- type CreateKeypairResponse
- type DeleteAllFailedTaskRequest
- type DeleteAllFailedTaskResponse
- type DeleteFailedTaskRequest
- type DeleteFailedTaskResponse
- type DeleteKeypairRequest
- type DeleteKeypairResponse
- type DisassociateEcsServerInfo
- type DisassociateKeypairRequest
- type DisassociateKeypairRequestBody
- type DisassociateKeypairResponse
- type DisassociateKeypairResponseStatus
- type DisassociateKeypairResponseStatusEnum
- type EcsServerInfo
- type Encryption
- type EncryptionType
- type EncryptionTypeEnum
- type ExportPrivateKeyKeypairBean
- type ExportPrivateKeyRequest
- type ExportPrivateKeyRequestBody
- type ExportPrivateKeyResponse
- type FailedTasks
- type FailedTasksOperateType
- type FailedTasksOperateTypeEnum
- type ImportPrivateKeyAction
- type ImportPrivateKeyKeypairBean
- type ImportPrivateKeyProtection
- type ImportPrivateKeyRequest
- type ImportPrivateKeyRequestBody
- type ImportPrivateKeyResponse
- type KeyProtection
- type Keypair
- type KeypairBean
- type KeypairDetail
- type KeypairDetailScope
- type KeypairDetailScopeEnum
- type KeypairDetailType
- type KeypairDetailTypeEnum
- type KeypairScope
- type KeypairScopeEnum
- type KeypairType
- type KeypairTypeEnum
- type Keypairs
- type ListFailedTaskRequest
- type ListFailedTaskResponse
- type ListKeypairDetailRequest
- type ListKeypairDetailResponse
- type ListKeypairTaskRequest
- type ListKeypairTaskResponse
- type ListKeypairTaskResponseTaskStatus
- type ListKeypairTaskResponseTaskStatusEnum
- type ListKeypairsRequest
- type ListKeypairsResponse
- type ListRunningTaskRequest
- type ListRunningTaskResponse
- type PageInfo
- type RunningTasks
- type RunningTasksOperateType
- type RunningTasksOperateTypeEnum
- type TaskResponseBody
- type TaskResponseBodyStatus
- type TaskResponseBodyStatusEnum
- type UpdateKeypairDescriptionReq
- type UpdateKeypairDescriptionRequest
- type UpdateKeypairDescriptionRequestBody
- type UpdateKeypairDescriptionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateKeypairRequest ¶
type AssociateKeypairRequest struct {
Body *AssociateKeypairRequestBody `json:"body,omitempty"`
}
AssociateKeypairRequest Request Object
func (AssociateKeypairRequest) String ¶
func (o AssociateKeypairRequest) String() string
type AssociateKeypairRequestBody ¶
type AssociateKeypairRequestBody struct { // SSH密钥对的名称 KeypairName string `json:"keypair_name"` Server *EcsServerInfo `json:"server"` }
AssociateKeypairRequestBody 绑定密钥对请求体。
func (AssociateKeypairRequestBody) String ¶
func (o AssociateKeypairRequestBody) String() string
type AssociateKeypairResponse ¶
type AssociateKeypairResponse struct { // 任务下发成功返回的ID。 TaskId *string `json:"task_id,omitempty"` // 绑定的虚拟机id。 ServerId *string `json:"server_id,omitempty"` // 任务下发的状态。SUCCESS或FAILED。 Status *AssociateKeypairResponseStatus `json:"status,omitempty"` // 任务下发失败返回的错误码。 ErrorCode *string `json:"error_code,omitempty"` // 任务下发失败返回的错误信息。 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
AssociateKeypairResponse Response Object
func (AssociateKeypairResponse) String ¶
func (o AssociateKeypairResponse) String() string
type AssociateKeypairResponseStatus ¶ added in v0.1.59
type AssociateKeypairResponseStatus struct {
// contains filtered or unexported fields
}
func (AssociateKeypairResponseStatus) MarshalJSON ¶ added in v0.1.59
func (c AssociateKeypairResponseStatus) MarshalJSON() ([]byte, error)
func (*AssociateKeypairResponseStatus) UnmarshalJSON ¶ added in v0.1.59
func (c *AssociateKeypairResponseStatus) UnmarshalJSON(b []byte) error
func (AssociateKeypairResponseStatus) Value ¶ added in v0.1.59
func (c AssociateKeypairResponseStatus) Value() string
type AssociateKeypairResponseStatusEnum ¶ added in v0.1.59
type AssociateKeypairResponseStatusEnum struct { SUCCESS AssociateKeypairResponseStatus FAILED AssociateKeypairResponseStatus }
func GetAssociateKeypairResponseStatusEnum ¶ added in v0.1.59
func GetAssociateKeypairResponseStatusEnum() AssociateKeypairResponseStatusEnum
type Auth ¶
type Auth struct { // 取值为枚举类型。password或keypair。 Type *AuthType `json:"type,omitempty"` // - type为枚举值password时,key表示密码; - type为枚举值keypair时,key表示私钥; Key *string `json:"key,omitempty"` }
Auth 可选字段,鉴权认证类型。替换时需要该参数,重置时不需要该参数。
type AuthType ¶
type AuthType struct {
// contains filtered or unexported fields
}
func (AuthType) MarshalJSON ¶
func (*AuthType) UnmarshalJSON ¶
type AuthTypeEnum ¶
func GetAuthTypeEnum ¶
func GetAuthTypeEnum() AuthTypeEnum
type BatchAssociateKeypairRequest ¶ added in v0.1.59
type BatchAssociateKeypairRequest struct {
Body *BatchAssociateKeypairRequestBody `json:"body,omitempty"`
}
BatchAssociateKeypairRequest Request Object
func (BatchAssociateKeypairRequest) String ¶ added in v0.1.59
func (o BatchAssociateKeypairRequest) String() string
type BatchAssociateKeypairRequestBody ¶ added in v0.1.59
type BatchAssociateKeypairRequestBody struct { // 最多可同时选择10个弹性云服务器绑定密钥对。 约束:只支持选择相同的密钥对,弹性云服务器处于“运行中”状态,并未绑定密钥对。 BatchKeypairs []AssociateKeypairRequestBody `json:"batch_keypairs"` }
func (BatchAssociateKeypairRequestBody) String ¶ added in v0.1.59
func (o BatchAssociateKeypairRequestBody) String() string
type BatchAssociateKeypairResponse ¶ added in v0.1.59
type BatchAssociateKeypairResponse struct { // 批量绑定密钥对任务。 Tasks *[]TaskResponseBody `json:"tasks,omitempty"` HttpStatusCode int `json:"-"` }
BatchAssociateKeypairResponse Response Object
func (BatchAssociateKeypairResponse) String ¶ added in v0.1.59
func (o BatchAssociateKeypairResponse) String() string
type ClearPrivateKeyRequest ¶ added in v0.1.59
type ClearPrivateKeyRequest struct { // 密钥对名称。 KeypairName string `json:"keypair_name"` }
ClearPrivateKeyRequest Request Object
func (ClearPrivateKeyRequest) String ¶ added in v0.1.59
func (o ClearPrivateKeyRequest) String() string
type ClearPrivateKeyResponse ¶ added in v0.1.59
type ClearPrivateKeyResponse struct { Body *string `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
ClearPrivateKeyResponse Response Object
func (ClearPrivateKeyResponse) String ¶ added in v0.1.59
func (o ClearPrivateKeyResponse) String() string
type CreateKeypairAction ¶
type CreateKeypairAction struct { // SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过64个字节 Name string `json:"name"` // SSH密钥对的类型。ssh或x509。 Type *CreateKeypairActionType `json:"type,omitempty"` // 导入公钥的字符串信息。 PublicKey *string `json:"public_key,omitempty"` // 租户级或者用户级。domain或user。 Scope *CreateKeypairActionScope `json:"scope,omitempty"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` KeyProtection *KeyProtection `json:"key_protection,omitempty"` }
CreateKeypairAction 创建密钥对请求体请求参数
func (CreateKeypairAction) String ¶
func (o CreateKeypairAction) String() string
type CreateKeypairActionScope ¶
type CreateKeypairActionScope struct {
// contains filtered or unexported fields
}
func (CreateKeypairActionScope) MarshalJSON ¶
func (c CreateKeypairActionScope) MarshalJSON() ([]byte, error)
func (*CreateKeypairActionScope) UnmarshalJSON ¶
func (c *CreateKeypairActionScope) UnmarshalJSON(b []byte) error
func (CreateKeypairActionScope) Value ¶ added in v0.0.90
func (c CreateKeypairActionScope) Value() string
type CreateKeypairActionScopeEnum ¶
type CreateKeypairActionScopeEnum struct { DOMAIN CreateKeypairActionScope USER CreateKeypairActionScope }
func GetCreateKeypairActionScopeEnum ¶
func GetCreateKeypairActionScopeEnum() CreateKeypairActionScopeEnum
type CreateKeypairActionType ¶
type CreateKeypairActionType struct {
// contains filtered or unexported fields
}
func (CreateKeypairActionType) MarshalJSON ¶
func (c CreateKeypairActionType) MarshalJSON() ([]byte, error)
func (*CreateKeypairActionType) UnmarshalJSON ¶
func (c *CreateKeypairActionType) UnmarshalJSON(b []byte) error
func (CreateKeypairActionType) Value ¶ added in v0.0.90
func (c CreateKeypairActionType) Value() string
type CreateKeypairActionTypeEnum ¶
type CreateKeypairActionTypeEnum struct { SSH CreateKeypairActionType X509 CreateKeypairActionType }
func GetCreateKeypairActionTypeEnum ¶
func GetCreateKeypairActionTypeEnum() CreateKeypairActionTypeEnum
type CreateKeypairRequest ¶
type CreateKeypairRequest struct {
Body *CreateKeypairRequestBody `json:"body,omitempty"`
}
CreateKeypairRequest Request Object
func (CreateKeypairRequest) String ¶
func (o CreateKeypairRequest) String() string
type CreateKeypairRequestBody ¶
type CreateKeypairRequestBody struct {
Keypair *CreateKeypairAction `json:"keypair"`
}
CreateKeypairRequestBody 创建密钥对请求体
func (CreateKeypairRequestBody) String ¶
func (o CreateKeypairRequestBody) String() string
type CreateKeypairResp ¶
type CreateKeypairResp struct { // SSH密钥对的名称 Name *string `json:"name,omitempty"` // SSH密钥对的类型。ssh或x509。 Type *CreateKeypairRespType `json:"type,omitempty"` // SSH密钥对对应的publicKey信息 PublicKey *string `json:"public_key,omitempty"` // SSH密钥对对应的privateKey信息 - 创建SSH密钥对时,响应中包括private_key的信息。 - 导入SSH密钥对时,响应中不包括private_key的信息。 PrivateKey *string `json:"private_key,omitempty"` // SSH密钥对应指纹信息 Fingerprint *string `json:"fingerprint,omitempty"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` }
CreateKeypairResp SSH密钥对信息详情
func (CreateKeypairResp) String ¶
func (o CreateKeypairResp) String() string
type CreateKeypairRespType ¶
type CreateKeypairRespType struct {
// contains filtered or unexported fields
}
func (CreateKeypairRespType) MarshalJSON ¶
func (c CreateKeypairRespType) MarshalJSON() ([]byte, error)
func (*CreateKeypairRespType) UnmarshalJSON ¶
func (c *CreateKeypairRespType) UnmarshalJSON(b []byte) error
func (CreateKeypairRespType) Value ¶ added in v0.0.90
func (c CreateKeypairRespType) Value() string
type CreateKeypairRespTypeEnum ¶
type CreateKeypairRespTypeEnum struct { SSH CreateKeypairRespType X509 CreateKeypairRespType }
func GetCreateKeypairRespTypeEnum ¶
func GetCreateKeypairRespTypeEnum() CreateKeypairRespTypeEnum
type CreateKeypairResponse ¶
type CreateKeypairResponse struct { Keypair *CreateKeypairResp `json:"keypair,omitempty"` HttpStatusCode int `json:"-"` }
CreateKeypairResponse Response Object
func (CreateKeypairResponse) String ¶
func (o CreateKeypairResponse) String() string
type DeleteAllFailedTaskRequest ¶
type DeleteAllFailedTaskRequest struct { }
DeleteAllFailedTaskRequest Request Object
func (DeleteAllFailedTaskRequest) String ¶
func (o DeleteAllFailedTaskRequest) String() string
type DeleteAllFailedTaskResponse ¶
type DeleteAllFailedTaskResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteAllFailedTaskResponse Response Object
func (DeleteAllFailedTaskResponse) String ¶
func (o DeleteAllFailedTaskResponse) String() string
type DeleteFailedTaskRequest ¶
type DeleteFailedTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
DeleteFailedTaskRequest Request Object
func (DeleteFailedTaskRequest) String ¶
func (o DeleteFailedTaskRequest) String() string
type DeleteFailedTaskResponse ¶
type DeleteFailedTaskResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteFailedTaskResponse Response Object
func (DeleteFailedTaskResponse) String ¶
func (o DeleteFailedTaskResponse) String() string
type DeleteKeypairRequest ¶
type DeleteKeypairRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` }
DeleteKeypairRequest Request Object
func (DeleteKeypairRequest) String ¶
func (o DeleteKeypairRequest) String() string
type DeleteKeypairResponse ¶
type DeleteKeypairResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteKeypairResponse Response Object
func (DeleteKeypairResponse) String ¶
func (o DeleteKeypairResponse) String() string
type DisassociateEcsServerInfo ¶
type DisassociateEcsServerInfo struct { // 需要绑定(替换或重置)SSH密钥对的虚拟机id Id string `json:"id"` Auth *Auth `json:"auth,omitempty"` }
DisassociateEcsServerInfo 需要绑定密钥对的虚拟机信息。
func (DisassociateEcsServerInfo) String ¶
func (o DisassociateEcsServerInfo) String() string
type DisassociateKeypairRequest ¶
type DisassociateKeypairRequest struct {
Body *DisassociateKeypairRequestBody `json:"body,omitempty"`
}
DisassociateKeypairRequest Request Object
func (DisassociateKeypairRequest) String ¶
func (o DisassociateKeypairRequest) String() string
type DisassociateKeypairRequestBody ¶
type DisassociateKeypairRequestBody struct {
Server *DisassociateEcsServerInfo `json:"server"`
}
DisassociateKeypairRequestBody 解绑密钥对描述消息体
func (DisassociateKeypairRequestBody) String ¶
func (o DisassociateKeypairRequestBody) String() string
type DisassociateKeypairResponse ¶
type DisassociateKeypairResponse struct { // 任务下发成功返回的ID。 TaskId *string `json:"task_id,omitempty"` // 绑定的虚拟机id。 ServerId *string `json:"server_id,omitempty"` // 任务下发的状态。SUCCESS或FAILED。 Status *DisassociateKeypairResponseStatus `json:"status,omitempty"` // 任务下发失败返回的错误码。 ErrorCode *string `json:"error_code,omitempty"` // 任务下发失败返回的错误信息。 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
DisassociateKeypairResponse Response Object
func (DisassociateKeypairResponse) String ¶
func (o DisassociateKeypairResponse) String() string
type DisassociateKeypairResponseStatus ¶ added in v0.1.59
type DisassociateKeypairResponseStatus struct {
// contains filtered or unexported fields
}
func (DisassociateKeypairResponseStatus) MarshalJSON ¶ added in v0.1.59
func (c DisassociateKeypairResponseStatus) MarshalJSON() ([]byte, error)
func (*DisassociateKeypairResponseStatus) UnmarshalJSON ¶ added in v0.1.59
func (c *DisassociateKeypairResponseStatus) UnmarshalJSON(b []byte) error
func (DisassociateKeypairResponseStatus) Value ¶ added in v0.1.59
func (c DisassociateKeypairResponseStatus) Value() string
type DisassociateKeypairResponseStatusEnum ¶ added in v0.1.59
type DisassociateKeypairResponseStatusEnum struct { SUCCESS DisassociateKeypairResponseStatus FAILED DisassociateKeypairResponseStatus }
func GetDisassociateKeypairResponseStatusEnum ¶ added in v0.1.59
func GetDisassociateKeypairResponseStatusEnum() DisassociateKeypairResponseStatusEnum
type EcsServerInfo ¶
type EcsServerInfo struct { // 需要绑定(替换或重置)SSH密钥对的虚拟机id Id string `json:"id"` Auth *Auth `json:"auth,omitempty"` // - true:禁用虚拟机的ssh登录。 - false:不禁用虚拟机的ssh登录。 DisablePassword *bool `json:"disable_password,omitempty"` // SSH监听端口。 Port *int64 `json:"port,omitempty"` }
EcsServerInfo 需要绑定密钥对的虚拟机信息。
func (EcsServerInfo) String ¶
func (o EcsServerInfo) String() string
type Encryption ¶
type Encryption struct { // 取值范围:“kms”或“default”。 - “default”为默认加密方式,适用于没有kms服务的局点。 - “kms”为采用kms服务加密方式。 若局点没有kms服务,请填“default”。 Type EncryptionType `json:"type"` // kms密钥的名称。 - 若“type”为“kms”,则必须填入\"kms_key_name\"或\"kms_key_id\"。 KmsKeyName *string `json:"kms_key_name,omitempty"` // kms密钥的ID。 - 若“type”为“kms”,则必须填入\"kms_key_name\"或\"kms_key_id\"。 KmsKeyId *string `json:"kms_key_id,omitempty"` }
Encryption 对私钥进行加密存储的方式。
func (Encryption) String ¶
func (o Encryption) String() string
type EncryptionType ¶
type EncryptionType struct {
// contains filtered or unexported fields
}
func (EncryptionType) MarshalJSON ¶
func (c EncryptionType) MarshalJSON() ([]byte, error)
func (*EncryptionType) UnmarshalJSON ¶
func (c *EncryptionType) UnmarshalJSON(b []byte) error
func (EncryptionType) Value ¶ added in v0.0.90
func (c EncryptionType) Value() string
type EncryptionTypeEnum ¶
type EncryptionTypeEnum struct { DEFAULT EncryptionType KMS EncryptionType }
func GetEncryptionTypeEnum ¶
func GetEncryptionTypeEnum() EncryptionTypeEnum
type ExportPrivateKeyKeypairBean ¶ added in v0.1.59
type ExportPrivateKeyKeypairBean struct { // SSH密钥对的名称。 Name string `json:"name"` // SSH密钥对的私钥 PrivateKey string `json:"private_key"` }
func (ExportPrivateKeyKeypairBean) String ¶ added in v0.1.59
func (o ExportPrivateKeyKeypairBean) String() string
type ExportPrivateKeyRequest ¶ added in v0.1.59
type ExportPrivateKeyRequest struct {
Body *ExportPrivateKeyRequestBody `json:"body,omitempty"`
}
ExportPrivateKeyRequest Request Object
func (ExportPrivateKeyRequest) String ¶ added in v0.1.59
func (o ExportPrivateKeyRequest) String() string
type ExportPrivateKeyRequestBody ¶ added in v0.1.59
type ExportPrivateKeyRequestBody struct {
Keypair *KeypairBean `json:"keypair"`
}
ExportPrivateKeyRequestBody 导出私钥请求体
func (ExportPrivateKeyRequestBody) String ¶ added in v0.1.59
func (o ExportPrivateKeyRequestBody) String() string
type ExportPrivateKeyResponse ¶ added in v0.1.59
type ExportPrivateKeyResponse struct { Keypair *ExportPrivateKeyKeypairBean `json:"keypair,omitempty"` HttpStatusCode int `json:"-"` }
ExportPrivateKeyResponse Response Object
func (ExportPrivateKeyResponse) String ¶ added in v0.1.59
func (o ExportPrivateKeyResponse) String() string
type FailedTasks ¶
type FailedTasks struct { // 虚拟机ID TaskId *string `json:"task_id,omitempty"` // 任务的操作类型。 - FAILED_RESET 重置 - FAILED_REPLACE 替换 - FAILED_UNBIND 解绑 OperateType *FailedTasksOperateType `json:"operate_type,omitempty"` // 任务时间 TaskTime *string `json:"task_time,omitempty"` // 任务失败错误码 TaskErrorCode *string `json:"task_error_code,omitempty"` // 任务失败错误码 TaskErrorMsg *string `json:"task_error_msg,omitempty"` // 虚拟机名称 ServerName *string `json:"server_name,omitempty"` // 虚拟机ID ServerId *string `json:"server_id,omitempty"` // 密钥对名称 KeypairName *string `json:"keypair_name,omitempty"` }
FailedTasks 失败的任务详细信息。
func (FailedTasks) String ¶
func (o FailedTasks) String() string
type FailedTasksOperateType ¶
type FailedTasksOperateType struct {
// contains filtered or unexported fields
}
func (FailedTasksOperateType) MarshalJSON ¶
func (c FailedTasksOperateType) MarshalJSON() ([]byte, error)
func (*FailedTasksOperateType) UnmarshalJSON ¶
func (c *FailedTasksOperateType) UnmarshalJSON(b []byte) error
func (FailedTasksOperateType) Value ¶ added in v0.0.90
func (c FailedTasksOperateType) Value() string
type FailedTasksOperateTypeEnum ¶
type FailedTasksOperateTypeEnum struct { FAILED_RESET FailedTasksOperateType FAILED_REPLACE FailedTasksOperateType FAILED_UNBIND FailedTasksOperateType }
func GetFailedTasksOperateTypeEnum ¶
func GetFailedTasksOperateTypeEnum() FailedTasksOperateTypeEnum
type ImportPrivateKeyAction ¶ added in v0.1.64
type ImportPrivateKeyAction struct { // SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过64个字节。 Name string `json:"name"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` KeyProtection *KeyProtection `json:"key_protection"` }
func (ImportPrivateKeyAction) String ¶ added in v0.1.64
func (o ImportPrivateKeyAction) String() string
type ImportPrivateKeyKeypairBean ¶ added in v0.1.59
type ImportPrivateKeyKeypairBean struct { // SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过64个字节 Name string `json:"name"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` KeyProtection *ImportPrivateKeyProtection `json:"key_protection"` }
func (ImportPrivateKeyKeypairBean) String ¶ added in v0.1.59
func (o ImportPrivateKeyKeypairBean) String() string
type ImportPrivateKeyProtection ¶ added in v0.1.59
type ImportPrivateKeyProtection struct { // 导入SSH密钥对的私钥。 PrivateKey string `json:"private_key"` Encryption *Encryption `json:"encryption"` }
ImportPrivateKeyProtection SSH密钥对私钥托管与保护。
func (ImportPrivateKeyProtection) String ¶ added in v0.1.59
func (o ImportPrivateKeyProtection) String() string
type ImportPrivateKeyRequest ¶ added in v0.1.59
type ImportPrivateKeyRequest struct {
Body *ImportPrivateKeyRequestBody `json:"body,omitempty"`
}
ImportPrivateKeyRequest Request Object
func (ImportPrivateKeyRequest) String ¶ added in v0.1.59
func (o ImportPrivateKeyRequest) String() string
type ImportPrivateKeyRequestBody ¶ added in v0.1.59
type ImportPrivateKeyRequestBody struct {
Keypair *ImportPrivateKeyKeypairBean `json:"keypair"`
}
ImportPrivateKeyRequestBody 导入私钥请求体
func (ImportPrivateKeyRequestBody) String ¶ added in v0.1.59
func (o ImportPrivateKeyRequestBody) String() string
type ImportPrivateKeyResponse ¶ added in v0.1.59
type ImportPrivateKeyResponse struct { Keypair *ImportPrivateKeyAction `json:"keypair,omitempty"` HttpStatusCode int `json:"-"` }
ImportPrivateKeyResponse Response Object
func (ImportPrivateKeyResponse) String ¶ added in v0.1.59
func (o ImportPrivateKeyResponse) String() string
type KeyProtection ¶
type KeyProtection struct { // 导入SSH密钥对的私钥。 PrivateKey *string `json:"private_key,omitempty"` Encryption *Encryption `json:"encryption"` }
KeyProtection SSH密钥对私钥托管与保护。
func (KeyProtection) String ¶
func (o KeyProtection) String() string
type Keypair ¶
type Keypair struct { // SSH密钥对的名称 Name *string `json:"name,omitempty"` // SSH密钥对的类型,值为“ssh”或“x509” Type *KeypairType `json:"type,omitempty"` // 租户级或者用户级。domain或user。 Scope *KeypairScope `json:"scope,omitempty"` // SSH密钥对对应的publicKey信息 PublicKey *string `json:"public_key,omitempty"` // SSH密钥对应指纹信息 Fingerprint *string `json:"fingerprint,omitempty"` // 是否托管密钥 IsKeyProtection *bool `json:"is_key_protection,omitempty"` // 冻结状态 - 0:正常状态 - 1:普通冻结 - 2:公安冻结 - 3:普通冻结及公安冻结 - 4:违规冻结 - 5:普通冻结及违规冻结 - 6:公安冻结及违规冻结 - 7:普通冻结、公安冻结及违规冻结 - 8:未实名认证冻结 - 9:普通冻结及未实名认证冻结 - 10:公安冻结及未实名认证冻结 FrozenState *string `json:"frozen_state,omitempty"` }
Keypair 密钥对信息
type KeypairBean ¶ added in v0.1.59
type KeypairBean struct { // SSH密钥对名称。 Name string `json:"name"` }
func (KeypairBean) String ¶ added in v0.1.59
func (o KeypairBean) String() string
type KeypairDetail ¶
type KeypairDetail struct { // SSH密钥对的名称 Name *string `json:"name,omitempty"` // SSH密钥对的ID Id *int64 `json:"id,omitempty"` // SSH密钥对的类型。ssh或x509。 Type *KeypairDetailType `json:"type,omitempty"` // 租户级或者用户级。domain或user。 Scope *KeypairDetailScope `json:"scope,omitempty"` // SSH密钥对对应的publicKey信息 PublicKey *string `json:"public_key,omitempty"` // SSH密钥对应指纹信息 Fingerprint *string `json:"fingerprint,omitempty"` // 是否托管密钥 IsKeyProtection *bool `json:"is_key_protection,omitempty"` // SSH密钥对删除的标记 Deleted *bool `json:"deleted,omitempty"` // SSH密钥对的描述信息 Description *string `json:"description,omitempty"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` // SSH密钥对创建的时间,时间戳,即从1970年1月1日至该时间的总秒数 CreateTime *int64 `json:"create_time,omitempty"` // SSH密钥对删除的时间,时间戳,即从1970年1月1日至该时间的总秒数 DeleteTime *int64 `json:"delete_time,omitempty"` // SSH密钥对的更新时间,时间戳,即从1970年1月1日至该时间的总秒数 UpdateTime *int64 `json:"update_time,omitempty"` // 冻结状态 - 0:正常状态 - 1:普通冻结 - 2:公安冻结 - 3:普通冻结及公安冻结 - 4:违规冻结 - 5:普通冻结及违规冻结 - 6:公安冻结及违规冻结 - 7:普通冻结、公安冻结及违规冻结 - 8:未实名认证冻结 - 9:普通冻结及未实名认证冻结 - 10:公安冻结及未实名认证冻结 FrozenState *int32 `json:"frozen_state,omitempty"` // 密钥ID。 KeyId *string `json:"key_id,omitempty"` // 生成算法。 Algorithm *string `json:"algorithm,omitempty"` }
KeypairDetail 密钥对详细信息
func (KeypairDetail) String ¶
func (o KeypairDetail) String() string
type KeypairDetailScope ¶
type KeypairDetailScope struct {
// contains filtered or unexported fields
}
func (KeypairDetailScope) MarshalJSON ¶
func (c KeypairDetailScope) MarshalJSON() ([]byte, error)
func (*KeypairDetailScope) UnmarshalJSON ¶
func (c *KeypairDetailScope) UnmarshalJSON(b []byte) error
func (KeypairDetailScope) Value ¶ added in v0.0.90
func (c KeypairDetailScope) Value() string
type KeypairDetailScopeEnum ¶
type KeypairDetailScopeEnum struct { DOMAIN KeypairDetailScope USER KeypairDetailScope }
func GetKeypairDetailScopeEnum ¶
func GetKeypairDetailScopeEnum() KeypairDetailScopeEnum
type KeypairDetailType ¶
type KeypairDetailType struct {
// contains filtered or unexported fields
}
func (KeypairDetailType) MarshalJSON ¶
func (c KeypairDetailType) MarshalJSON() ([]byte, error)
func (*KeypairDetailType) UnmarshalJSON ¶
func (c *KeypairDetailType) UnmarshalJSON(b []byte) error
func (KeypairDetailType) Value ¶ added in v0.0.90
func (c KeypairDetailType) Value() string
type KeypairDetailTypeEnum ¶
type KeypairDetailTypeEnum struct { SSH KeypairDetailType X509 KeypairDetailType }
func GetKeypairDetailTypeEnum ¶
func GetKeypairDetailTypeEnum() KeypairDetailTypeEnum
type KeypairScope ¶
type KeypairScope struct {
// contains filtered or unexported fields
}
func (KeypairScope) MarshalJSON ¶
func (c KeypairScope) MarshalJSON() ([]byte, error)
func (*KeypairScope) UnmarshalJSON ¶
func (c *KeypairScope) UnmarshalJSON(b []byte) error
func (KeypairScope) Value ¶ added in v0.0.90
func (c KeypairScope) Value() string
type KeypairScopeEnum ¶
type KeypairScopeEnum struct { DOMAIN KeypairScope USER KeypairScope }
func GetKeypairScopeEnum ¶
func GetKeypairScopeEnum() KeypairScopeEnum
type KeypairType ¶
type KeypairType struct {
// contains filtered or unexported fields
}
func (KeypairType) MarshalJSON ¶
func (c KeypairType) MarshalJSON() ([]byte, error)
func (*KeypairType) UnmarshalJSON ¶
func (c *KeypairType) UnmarshalJSON(b []byte) error
func (KeypairType) Value ¶ added in v0.0.90
func (c KeypairType) Value() string
type KeypairTypeEnum ¶
type KeypairTypeEnum struct { SSH KeypairType X509 KeypairType }
func GetKeypairTypeEnum ¶
func GetKeypairTypeEnum() KeypairTypeEnum
type ListFailedTaskRequest ¶
type ListFailedTaskRequest struct { // 每页显示的条目数量。默认值1000。 Limit *int32 `json:"limit,omitempty"` // 失败的任务信息列表的偏移量 Offset *int32 `json:"offset,omitempty"` }
ListFailedTaskRequest Request Object
func (ListFailedTaskRequest) String ¶
func (o ListFailedTaskRequest) String() string
type ListFailedTaskResponse ¶
type ListFailedTaskResponse struct { // 失败任务总数。 Total *int32 `json:"total,omitempty"` // 失败的任务列表 Tasks *[]FailedTasks `json:"tasks,omitempty"` HttpStatusCode int `json:"-"` }
ListFailedTaskResponse Response Object
func (ListFailedTaskResponse) String ¶
func (o ListFailedTaskResponse) String() string
type ListKeypairDetailRequest ¶
type ListKeypairDetailRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` }
ListKeypairDetailRequest Request Object
func (ListKeypairDetailRequest) String ¶
func (o ListKeypairDetailRequest) String() string
type ListKeypairDetailResponse ¶
type ListKeypairDetailResponse struct { Keypair *KeypairDetail `json:"keypair,omitempty"` HttpStatusCode int `json:"-"` }
ListKeypairDetailResponse Response Object
func (ListKeypairDetailResponse) String ¶
func (o ListKeypairDetailResponse) String() string
type ListKeypairTaskRequest ¶
type ListKeypairTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
ListKeypairTaskRequest Request Object
func (ListKeypairTaskRequest) String ¶
func (o ListKeypairTaskRequest) String() string
type ListKeypairTaskResponse ¶
type ListKeypairTaskResponse struct { // 租户虚拟机ID ServerId *string `json:"server_id,omitempty"` // 任务下发成功返回的ID TaskId *string `json:"task_id,omitempty"` // 密钥对正在处理的状态。 - READY_RESET 准备重置 - RUNNING_RESET 正在重置 - FAILED_RESET 重置失败 - SUCCESS_RESET 重置成功 - READY_REPLACE 准备替换 - RUNNING_REPLACE 正在替换 - FAILED_RESET 替换失败 - SUCCESS_RESET 替换成功 - READY_UNBIND 准备解绑 - RUNNING_UNBIND 正在解绑 - FAILED_UNBIND 解绑失败 - SUCCESS_UNBIND 解绑成功 TaskStatus *ListKeypairTaskResponseTaskStatus `json:"task_status,omitempty"` HttpStatusCode int `json:"-"` }
ListKeypairTaskResponse Response Object
func (ListKeypairTaskResponse) String ¶
func (o ListKeypairTaskResponse) String() string
type ListKeypairTaskResponseTaskStatus ¶
type ListKeypairTaskResponseTaskStatus struct {
// contains filtered or unexported fields
}
func (ListKeypairTaskResponseTaskStatus) MarshalJSON ¶
func (c ListKeypairTaskResponseTaskStatus) MarshalJSON() ([]byte, error)
func (*ListKeypairTaskResponseTaskStatus) UnmarshalJSON ¶
func (c *ListKeypairTaskResponseTaskStatus) UnmarshalJSON(b []byte) error
func (ListKeypairTaskResponseTaskStatus) Value ¶ added in v0.0.90
func (c ListKeypairTaskResponseTaskStatus) Value() string
type ListKeypairTaskResponseTaskStatusEnum ¶
type ListKeypairTaskResponseTaskStatusEnum struct { READY_RESET ListKeypairTaskResponseTaskStatus RUNNING_RESET ListKeypairTaskResponseTaskStatus FAILED_RESET ListKeypairTaskResponseTaskStatus SUCCESS_RESET ListKeypairTaskResponseTaskStatus READY_REPLACE ListKeypairTaskResponseTaskStatus RUNNING_REPLACE ListKeypairTaskResponseTaskStatus READY_UNBIND ListKeypairTaskResponseTaskStatus RUNNING_UNBIND ListKeypairTaskResponseTaskStatus FAILED_UNBIND ListKeypairTaskResponseTaskStatus SUCCESS_UNBIND ListKeypairTaskResponseTaskStatus }
func GetListKeypairTaskResponseTaskStatusEnum ¶
func GetListKeypairTaskResponseTaskStatusEnum() ListKeypairTaskResponseTaskStatusEnum
type ListKeypairsRequest ¶
type ListKeypairsRequest struct { // 每页返回的个数。 默认值:50。 Limit *string `json:"limit,omitempty"` // 分页查询起始的资源id,为空时为查询第一页 Marker *string `json:"marker,omitempty"` }
ListKeypairsRequest Request Object
func (ListKeypairsRequest) String ¶
func (o ListKeypairsRequest) String() string
type ListKeypairsResponse ¶
type ListKeypairsResponse struct { // SSH密钥对信息列表 Keypairs *[]Keypairs `json:"keypairs,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListKeypairsResponse Response Object
func (ListKeypairsResponse) String ¶
func (o ListKeypairsResponse) String() string
type ListRunningTaskRequest ¶
type ListRunningTaskRequest struct { // 每页显示的条目数量。默认值1000。 Limit *int32 `json:"limit,omitempty"` // 首个展示的正在处理任务信息的偏移量 Offset *int32 `json:"offset,omitempty"` }
ListRunningTaskRequest Request Object
func (ListRunningTaskRequest) String ¶
func (o ListRunningTaskRequest) String() string
type ListRunningTaskResponse ¶
type ListRunningTaskResponse struct { // 正在处理的任务总数。 Total *int32 `json:"total,omitempty"` // 正在处理的任务列表。 Tasks *[]RunningTasks `json:"tasks,omitempty"` HttpStatusCode int `json:"-"` }
ListRunningTaskResponse Response Object
func (ListRunningTaskResponse) String ¶
func (o ListRunningTaskResponse) String() string
type PageInfo ¶ added in v0.0.74
type PageInfo struct { // 返回下一页的查询地址 NextMarker *string `json:"next_marker,omitempty"` // 返回上一页的查询地址 PreviousMarker *string `json:"previous_marker,omitempty"` // 返回条目数量 CurrentCount *int32 `json:"current_count,omitempty"` }
PageInfo 分页信息
type RunningTasks ¶
type RunningTasks struct { // 虚拟机ID TaskId *string `json:"task_id,omitempty"` // 操作类型。 - FAILED_RESET 重置 - FAILED_REPLACE 替换 - FAILED_UNBIND 解绑 OperateType *RunningTasksOperateType `json:"operate_type,omitempty"` // 任务时间 TaskTime *string `json:"task_time,omitempty"` // 虚拟机名称 ServerName *string `json:"server_name,omitempty"` // 虚拟机ID ServerId *string `json:"server_id,omitempty"` // 密钥对名称 KeypairName *string `json:"keypair_name,omitempty"` }
RunningTasks 正在处理的任务详细信息。
func (RunningTasks) String ¶
func (o RunningTasks) String() string
type RunningTasksOperateType ¶
type RunningTasksOperateType struct {
// contains filtered or unexported fields
}
func (RunningTasksOperateType) MarshalJSON ¶
func (c RunningTasksOperateType) MarshalJSON() ([]byte, error)
func (*RunningTasksOperateType) UnmarshalJSON ¶
func (c *RunningTasksOperateType) UnmarshalJSON(b []byte) error
func (RunningTasksOperateType) Value ¶ added in v0.0.90
func (c RunningTasksOperateType) Value() string
type RunningTasksOperateTypeEnum ¶
type RunningTasksOperateTypeEnum struct { FAILED_RESET RunningTasksOperateType FAILED_REPLACE RunningTasksOperateType FAILED_UNBIND RunningTasksOperateType }
func GetRunningTasksOperateTypeEnum ¶
func GetRunningTasksOperateTypeEnum() RunningTasksOperateTypeEnum
type TaskResponseBody ¶ added in v0.1.59
type TaskResponseBody struct { // 任务下发成功返回的ID。 TaskId *string `json:"task_id,omitempty"` // 绑定的虚拟机id。 ServerId *string `json:"server_id,omitempty"` // 任务下发的状态。SUCCESS或FAILED。 Status *TaskResponseBodyStatus `json:"status,omitempty"` // 任务下发失败返回的错误码。 ErrorCode *string `json:"error_code,omitempty"` // 任务下发失败返回的错误信息。 ErrorMsg *string `json:"error_msg,omitempty"` }
TaskResponseBody 任务响应。
func (TaskResponseBody) String ¶ added in v0.1.59
func (o TaskResponseBody) String() string
type TaskResponseBodyStatus ¶ added in v0.1.59
type TaskResponseBodyStatus struct {
// contains filtered or unexported fields
}
func (TaskResponseBodyStatus) MarshalJSON ¶ added in v0.1.59
func (c TaskResponseBodyStatus) MarshalJSON() ([]byte, error)
func (*TaskResponseBodyStatus) UnmarshalJSON ¶ added in v0.1.59
func (c *TaskResponseBodyStatus) UnmarshalJSON(b []byte) error
func (TaskResponseBodyStatus) Value ¶ added in v0.1.59
func (c TaskResponseBodyStatus) Value() string
type TaskResponseBodyStatusEnum ¶ added in v0.1.59
type TaskResponseBodyStatusEnum struct { SUCCESS TaskResponseBodyStatus FAILED TaskResponseBodyStatus }
func GetTaskResponseBodyStatusEnum ¶ added in v0.1.59
func GetTaskResponseBodyStatusEnum() TaskResponseBodyStatusEnum
type UpdateKeypairDescriptionReq ¶
type UpdateKeypairDescriptionReq struct { // 描述信息 Description string `json:"description"` }
UpdateKeypairDescriptionReq 更新SSH密钥对描述消息体
func (UpdateKeypairDescriptionReq) String ¶
func (o UpdateKeypairDescriptionReq) String() string
type UpdateKeypairDescriptionRequest ¶
type UpdateKeypairDescriptionRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` Body *UpdateKeypairDescriptionRequestBody `json:"body,omitempty"` }
UpdateKeypairDescriptionRequest Request Object
func (UpdateKeypairDescriptionRequest) String ¶
func (o UpdateKeypairDescriptionRequest) String() string
type UpdateKeypairDescriptionRequestBody ¶
type UpdateKeypairDescriptionRequestBody struct {
Keypair *UpdateKeypairDescriptionReq `json:"keypair"`
}
UpdateKeypairDescriptionRequestBody 更新SSH密钥对描述
func (UpdateKeypairDescriptionRequestBody) String ¶
func (o UpdateKeypairDescriptionRequestBody) String() string
type UpdateKeypairDescriptionResponse ¶
type UpdateKeypairDescriptionResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateKeypairDescriptionResponse Response Object
func (UpdateKeypairDescriptionResponse) String ¶
func (o UpdateKeypairDescriptionResponse) String() string
Source Files ¶
- model_associate_keypair_request.go
- model_associate_keypair_request_body.go
- model_associate_keypair_response.go
- model_auth.go
- model_batch_associate_keypair_request.go
- model_batch_associate_keypair_request_body.go
- model_batch_associate_keypair_response.go
- model_clear_private_key_request.go
- model_clear_private_key_response.go
- model_create_keypair_action.go
- model_create_keypair_request.go
- model_create_keypair_request_body.go
- model_create_keypair_resp.go
- model_create_keypair_response.go
- model_delete_all_failed_task_request.go
- model_delete_all_failed_task_response.go
- model_delete_failed_task_request.go
- model_delete_failed_task_response.go
- model_delete_keypair_request.go
- model_delete_keypair_response.go
- model_disassociate_ecs_server_info.go
- model_disassociate_keypair_request.go
- model_disassociate_keypair_request_body.go
- model_disassociate_keypair_response.go
- model_ecs_server_info.go
- model_encryption.go
- model_export_private_key_keypair_bean.go
- model_export_private_key_request.go
- model_export_private_key_request_body.go
- model_export_private_key_response.go
- model_failed_tasks.go
- model_import_private_key_action.go
- model_import_private_key_keypair_bean.go
- model_import_private_key_protection.go
- model_import_private_key_request.go
- model_import_private_key_request_body.go
- model_import_private_key_response.go
- model_key_protection.go
- model_keypair.go
- model_keypair_bean.go
- model_keypair_detail.go
- model_keypairs.go
- model_list_failed_task_request.go
- model_list_failed_task_response.go
- model_list_keypair_detail_request.go
- model_list_keypair_detail_response.go
- model_list_keypair_task_request.go
- model_list_keypair_task_response.go
- model_list_keypairs_request.go
- model_list_keypairs_response.go
- model_list_running_task_request.go
- model_list_running_task_response.go
- model_page_info.go
- model_running_tasks.go
- model_task_response_body.go
- model_update_keypair_description_req.go
- model_update_keypair_description_request.go
- model_update_keypair_description_request_body.go
- model_update_keypair_description_response.go