Documentation ¶
Index ¶
- type AssociateKeypairRequest
- type AssociateKeypairRequestBody
- type AssociateKeypairResponse
- type Auth
- type AuthType
- type AuthTypeEnum
- 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 EcsServerInfo
- type Encryption
- type EncryptionType
- type EncryptionTypeEnum
- type FailedTasks
- type FailedTasksOperateType
- type FailedTasksOperateTypeEnum
- type KeyProtection
- type Keypair
- 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 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"`
}
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"` }
绑定密钥对描述消息体
func (AssociateKeypairRequestBody) String ¶
func (o AssociateKeypairRequestBody) String() string
type AssociateKeypairResponse ¶
type AssociateKeypairResponse struct { // 任务下发成功返回的ID TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AssociateKeypairResponse) String ¶
func (o AssociateKeypairResponse) String() string
type Auth ¶
type Auth struct { // 取值为枚举类型。 Type *AuthType `json:"type,omitempty"` // - type为枚举值password时,key表示密码; - type为枚举值keypair时,key表示私钥; Key *string `json:"key,omitempty"` }
可选字段,鉴权认证类型。替换时需要该参数,重置时不需要该参数。
type AuthType ¶
type AuthType struct {
// contains filtered or unexported fields
}
func (AuthType) MarshalJSON ¶
func (*AuthType) UnmarshalJSON ¶
type AuthTypeEnum ¶
func GetAuthTypeEnum ¶
func GetAuthTypeEnum() AuthTypeEnum
type CreateKeypairAction ¶
type CreateKeypairAction struct { // SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过64个字节 Name string `json:"name"` // SSH密钥对的类型 Type *CreateKeypairActionType `json:"type,omitempty"` // 导入公钥的字符串信息。 PublicKey *string `json:"public_key,omitempty"` // 租户级或者用户级 Scope *CreateKeypairActionScope `json:"scope,omitempty"` // SSH密钥对所属的用户信息 UserId *string `json:"user_id,omitempty"` KeyProtection *KeyProtection `json:"key_protection,omitempty"` }
创建密钥对请求体请求参数
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"`
}
Request Object
func (CreateKeypairRequest) String ¶
func (o CreateKeypairRequest) String() string
type CreateKeypairRequestBody ¶
type CreateKeypairRequestBody struct {
Keypair *CreateKeypairAction `json:"keypair"`
}
创建密钥对请求体
func (CreateKeypairRequestBody) String ¶
func (o CreateKeypairRequestBody) String() string
type CreateKeypairResp ¶
type CreateKeypairResp struct { // SSH密钥对的名称 Name *string `json:"name,omitempty"` // SSH密钥对的类型 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"` }
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:"-"` }
Response Object
func (CreateKeypairResponse) String ¶
func (o CreateKeypairResponse) String() string
type DeleteAllFailedTaskRequest ¶
type DeleteAllFailedTaskRequest struct { }
Request Object
func (DeleteAllFailedTaskRequest) String ¶
func (o DeleteAllFailedTaskRequest) String() string
type DeleteAllFailedTaskResponse ¶
type DeleteAllFailedTaskResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteAllFailedTaskResponse) String ¶
func (o DeleteAllFailedTaskResponse) String() string
type DeleteFailedTaskRequest ¶
type DeleteFailedTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
Request Object
func (DeleteFailedTaskRequest) String ¶
func (o DeleteFailedTaskRequest) String() string
type DeleteFailedTaskResponse ¶
type DeleteFailedTaskResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteFailedTaskResponse) String ¶
func (o DeleteFailedTaskResponse) String() string
type DeleteKeypairRequest ¶
type DeleteKeypairRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` }
Request Object
func (DeleteKeypairRequest) String ¶
func (o DeleteKeypairRequest) String() string
type DeleteKeypairResponse ¶
type DeleteKeypairResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
需要绑定密钥对的虚拟机信息。
func (DisassociateEcsServerInfo) String ¶
func (o DisassociateEcsServerInfo) String() string
type DisassociateKeypairRequest ¶
type DisassociateKeypairRequest struct {
Body *DisassociateKeypairRequestBody `json:"body,omitempty"`
}
Request Object
func (DisassociateKeypairRequest) String ¶
func (o DisassociateKeypairRequest) String() string
type DisassociateKeypairRequestBody ¶
type DisassociateKeypairRequestBody struct {
Server *DisassociateEcsServerInfo `json:"server"`
}
解绑密钥对描述消息体
func (DisassociateKeypairRequestBody) String ¶
func (o DisassociateKeypairRequestBody) String() string
type DisassociateKeypairResponse ¶
type DisassociateKeypairResponse struct { // 任务下发成功返回的ID TaskId *string `json:"task_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DisassociateKeypairResponse) String ¶
func (o DisassociateKeypairResponse) String() string
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"` }
需要绑定密钥对的虚拟机信息。
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,omitempty"` // kms密钥的名称。 - 若“type”为“kms”,则必须填入kms服务密钥名称。 KmsKeyName *string `json:"kms_key_name,omitempty"` }
对私钥进行加密存储的方式。
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 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"` }
失败的任务详细信息。
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 KeyProtection ¶
type KeyProtection struct { // 导入SSH密钥对的私钥。 PrivateKey *string `json:"private_key,omitempty"` Encryption *Encryption `json:"encryption,omitempty"` }
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"` // 租户级或者用户级 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"` }
密钥对信息
type KeypairDetail ¶
type KeypairDetail struct { // SSH密钥对的名称 Name *string `json:"name,omitempty"` // SSH密钥对的ID Id *int64 `json:"id,omitempty"` // SSH密钥对的类型 Type *KeypairDetailType `json:"type,omitempty"` // 租户级或者用户级 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"` }
密钥对详细信息
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 { // 每页返回的个数。 默认值:50。 Limit *string `json:"limit,omitempty"` // 偏移量,表示从此偏移量开始查询, offset大于等于0 Offset *string `json:"offset,omitempty"` }
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:"-"` }
Response Object
func (ListFailedTaskResponse) String ¶
func (o ListFailedTaskResponse) String() string
type ListKeypairDetailRequest ¶
type ListKeypairDetailRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` }
Request Object
func (ListKeypairDetailRequest) String ¶
func (o ListKeypairDetailRequest) String() string
type ListKeypairDetailResponse ¶
type ListKeypairDetailResponse struct { Keypair *KeypairDetail `json:"keypair,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListKeypairDetailResponse) String ¶
func (o ListKeypairDetailResponse) String() string
type ListKeypairTaskRequest ¶
type ListKeypairTaskRequest struct { // 任务ID TaskId string `json:"task_id"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
分页信息
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"` }
正在处理的任务详细信息。
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 UpdateKeypairDescriptionReq ¶
type UpdateKeypairDescriptionReq struct { // 描述信息 Description string `json:"description"` }
更新SSH密钥对描述消息体
func (UpdateKeypairDescriptionReq) String ¶
func (o UpdateKeypairDescriptionReq) String() string
type UpdateKeypairDescriptionRequest ¶
type UpdateKeypairDescriptionRequest struct { // 密钥对名称 KeypairName string `json:"keypair_name"` Body *UpdateKeypairDescriptionRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateKeypairDescriptionRequest) String ¶
func (o UpdateKeypairDescriptionRequest) String() string
type UpdateKeypairDescriptionRequestBody ¶
type UpdateKeypairDescriptionRequestBody struct {
Keypair *UpdateKeypairDescriptionReq `json:"keypair"`
}
更新SSH密钥对描述
func (UpdateKeypairDescriptionRequestBody) String ¶
func (o UpdateKeypairDescriptionRequestBody) String() string
type UpdateKeypairDescriptionResponse ¶
type UpdateKeypairDescriptionResponse struct {
HttpStatusCode int `json:"-"`
}
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_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_failed_tasks.go
- model_key_protection.go
- model_keypair.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_update_keypair_description_req.go
- model_update_keypair_description_request.go
- model_update_keypair_description_request_body.go
- model_update_keypair_description_response.go
Click to show internal directories.
Click to hide internal directories.