Documentation
¶
Index ¶
- Constants
- type Apis
- type EbsApplyPolicyEbsSnapApi
- type EbsApplyPolicyEbsSnapRequest
- type EbsApplyPolicyEbsSnapResponse
- type EbsApplyPolicyEbsSnapReturnObjResponse
- type EbsAttachEbsApi
- type EbsAttachEbsErrorDetailResponse
- type EbsAttachEbsRequest
- type EbsAttachEbsResponse
- type EbsAttachEbsReturnObjResponse
- type EbsBatchRollbackEbsSnapApi
- type EbsBatchRollbackEbsSnapRequest
- type EbsBatchRollbackEbsSnapResponse
- type EbsBatchRollbackEbsSnapReturnObjResponse
- type EbsCancelPolicyEbsSnapApi
- type EbsCancelPolicyEbsSnapRequest
- type EbsCancelPolicyEbsSnapResponse
- type EbsCancelPolicyEbsSnapReturnObjResponse
- type EbsCreateEbsSnapApi
- type EbsCreateEbsSnapErrorDetailResponse
- type EbsCreateEbsSnapRequest
- type EbsCreateEbsSnapResponse
- type EbsCreateEbsSnapReturnObjResponse
- type EbsCreateOrderEbsSnapApi
- type EbsCreateOrderEbsSnapErrorDetailResponse
- type EbsCreateOrderEbsSnapRequest
- type EbsCreateOrderEbsSnapResponse
- type EbsCreateOrderEbsSnapReturnObjResponse
- type EbsCreatePolicyEbsSnapApi
- type EbsCreatePolicyEbsSnapRequest
- type EbsCreatePolicyEbsSnapResponse
- type EbsCreatePolicyEbsSnapReturnObjResponse
- type EbsDeleteEbsSnapApi
- type EbsDeleteEbsSnapRequest
- type EbsDeleteEbsSnapResponse
- type EbsDeleteEbsSnapReturnObjResponse
- type EbsDeletePolicyEbsSnapApi
- type EbsDeletePolicyEbsSnapRequest
- type EbsDeletePolicyEbsSnapResponse
- type EbsDeletePolicyEbsSnapReturnObjResponse
- type EbsDetachEbsApi
- type EbsDetachEbsErrorDetailResponse
- type EbsDetachEbsRequest
- type EbsDetachEbsResponse
- type EbsDetachEbsReturnObjResponse
- type EbsListEbsSnapApi
- type EbsListEbsSnapRequest
- type EbsListEbsSnapResponse
- type EbsListEbsSnapReturnObjResponse
- type EbsListEbsSnapReturnObjSnapshotListResponse
- type EbsModifyPolicyEbsSnapApi
- type EbsModifyPolicyEbsSnapRequest
- type EbsModifyPolicyEbsSnapResponse
- type EbsModifyPolicyEbsSnapReturnObjResponse
- type EbsModifyPolicyStatusEbsSnapApi
- type EbsModifyPolicyStatusEbsSnapRequest
- type EbsModifyPolicyStatusEbsSnapResponse
- type EbsModifyPolicyStatusEbsSnapReturnObjResponse
- type EbsNewEbsApi
- type EbsNewEbsErrorDetailResponse
- type EbsNewEbsLabelsRequest
- type EbsNewEbsRequest
- type EbsNewEbsResponse
- type EbsNewEbsReturnObjResourcesResponse
- type EbsNewEbsReturnObjResponse
- type EbsNewEbsSnapshotReturnObjResourcesResponse
- type EbsNewFromSnapshotEbsSnapApi
- type EbsNewFromSnapshotEbsSnapErrorDetailResponse
- type EbsNewFromSnapshotEbsSnapRequest
- type EbsNewFromSnapshotEbsSnapResponse
- type EbsNewFromSnapshotEbsSnapReturnObjResourcesResponse
- type EbsNewFromSnapshotEbsSnapReturnObjResponse
- type EbsQueryEbsByIDApi
- type EbsQueryEbsByIDRequest
- type EbsQueryEbsByIDResponse
- type EbsQueryEbsByIDReturnObjAttachmentsResponse
- type EbsQueryEbsByIDReturnObjResponse
- type EbsQueryEbsByNameApi
- type EbsQueryEbsByNameRequest
- type EbsQueryEbsByNameResponse
- type EbsQueryEbsByNameReturnObjAttachmentsResponse
- type EbsQueryEbsByNameReturnObjResponse
- type EbsQueryEbsListApi
- type EbsQueryEbsListRequest
- type EbsQueryEbsListResponse
- type EbsQueryEbsListReturnObjDiskListAttachmentsResponse
- type EbsQueryEbsListReturnObjDiskListResponse
- type EbsQueryEbsListReturnObjResponse
- type EbsQueryPolicyEbsSnapApi
- type EbsQueryPolicyEbsSnapRequest
- type EbsQueryPolicyEbsSnapResponse
- type EbsQueryPolicyEbsSnapReturnObjResponse
- type EbsQueryPolicyEbsSnapReturnObjSnapshotPolicyListResponse
- type EbsQuerySizeEbsSnapApi
- type EbsQuerySizeEbsSnapRequest
- type EbsQuerySizeEbsSnapResponse
- type EbsQuerySizeEbsSnapReturnObjDetailsResponse
- type EbsQuerySizeEbsSnapReturnObjResponse
- type EbsRefundEbsApi
- type EbsRefundEbsErrorDetailResponse
- type EbsRefundEbsRequest
- type EbsRefundEbsResponse
- type EbsRefundEbsReturnObjResponse
- type EbsRenewEbsApi
- type EbsRenewEbsErrorDetailResponse
- type EbsRenewEbsRequest
- type EbsRenewEbsResponse
- type EbsRenewEbsReturnObjResponse
- type EbsResizeEbsApi
- type EbsResizeEbsErrorDetailResponse
- type EbsResizeEbsRequest
- type EbsResizeEbsResponse
- type EbsResizeEbsReturnObjResponse
- type EbsRollbackEbsSnapApi
- type EbsRollbackEbsSnapRequest
- type EbsRollbackEbsSnapResponse
- type EbsRollbackEbsSnapReturnObjResponse
- type EbsSetDeletePolicyEbsApi
- type EbsSetDeletePolicyEbsRequest
- type EbsSetDeletePolicyEbsResponse
- type EbsSetDeletePolicyEbsReturnObjResponse
- type EbsUpdateEbsNameApi
- type EbsUpdateEbsNameRequest
- type EbsUpdateEbsNameResponse
- type EbsUpdateIopsEbsApi
- type EbsUpdateIopsEbsRequest
- type EbsUpdateIopsEbsResponse
Constants ¶
View Source
const EndpointName = "ebs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apis ¶
type Apis struct {
EbsUpdateIopsEbsApi *EbsUpdateIopsEbsApi
EbsSetDeletePolicyEbsApi *EbsSetDeletePolicyEbsApi
EbsCreateOrderEbsSnapApi *EbsCreateOrderEbsSnapApi
EbsModifyPolicyStatusEbsSnapApi *EbsModifyPolicyStatusEbsSnapApi
EbsQueryPolicyEbsSnapApi *EbsQueryPolicyEbsSnapApi
EbsDeletePolicyEbsSnapApi *EbsDeletePolicyEbsSnapApi
EbsCancelPolicyEbsSnapApi *EbsCancelPolicyEbsSnapApi
EbsApplyPolicyEbsSnapApi *EbsApplyPolicyEbsSnapApi
EbsModifyPolicyEbsSnapApi *EbsModifyPolicyEbsSnapApi
EbsCreatePolicyEbsSnapApi *EbsCreatePolicyEbsSnapApi
EbsNewFromSnapshotEbsSnapApi *EbsNewFromSnapshotEbsSnapApi
EbsBatchRollbackEbsSnapApi *EbsBatchRollbackEbsSnapApi
EbsRollbackEbsSnapApi *EbsRollbackEbsSnapApi
EbsQuerySizeEbsSnapApi *EbsQuerySizeEbsSnapApi
EbsListEbsSnapApi *EbsListEbsSnapApi
EbsDeleteEbsSnapApi *EbsDeleteEbsSnapApi
EbsCreateEbsSnapApi *EbsCreateEbsSnapApi
EbsDetachEbsApi *EbsDetachEbsApi
EbsAttachEbsApi *EbsAttachEbsApi
EbsUpdateEbsNameApi *EbsUpdateEbsNameApi
EbsQueryEbsListApi *EbsQueryEbsListApi
EbsQueryEbsByNameApi *EbsQueryEbsByNameApi
EbsQueryEbsByIDApi *EbsQueryEbsByIDApi
EbsRenewEbsApi *EbsRenewEbsApi
EbsResizeEbsApi *EbsResizeEbsApi
EbsRefundEbsApi *EbsRefundEbsApi
EbsNewEbsApi *EbsNewEbsApi
}
type EbsApplyPolicyEbsSnapApi ¶
type EbsApplyPolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsApplyPolicyEbsSnapApi ¶
func NewEbsApplyPolicyEbsSnapApi(client *core.CtyunClient) *EbsApplyPolicyEbsSnapApi
func (*EbsApplyPolicyEbsSnapApi) Do ¶
func (a *EbsApplyPolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsApplyPolicyEbsSnapRequest) (*EbsApplyPolicyEbsSnapResponse, error)
type EbsApplyPolicyEbsSnapResponse ¶
type EbsApplyPolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsApplyPolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsApplyPolicyEbsSnapReturnObjResponse ¶
type EbsApplyPolicyEbsSnapReturnObjResponse struct {
SnapshotPolicyJobResult *string `json:"snapshotPolicyJobResult,omitempty"` /* 任务执行状态。 */
}
type EbsAttachEbsApi ¶
type EbsAttachEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsAttachEbsApi ¶
func NewEbsAttachEbsApi(client *core.CtyunClient) *EbsAttachEbsApi
func (*EbsAttachEbsApi) Do ¶
func (a *EbsAttachEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsAttachEbsRequest) (*EbsAttachEbsResponse, error)
type EbsAttachEbsErrorDetailResponse ¶
type EbsAttachEbsErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsAttachEbsRequest ¶
type EbsAttachEbsResponse ¶
type EbsAttachEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsAttachEbsReturnObjResponse `json:"returnObj"` /* 返回结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsAttachEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsBatchRollbackEbsSnapApi ¶
type EbsBatchRollbackEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsBatchRollbackEbsSnapApi ¶
func NewEbsBatchRollbackEbsSnapApi(client *core.CtyunClient) *EbsBatchRollbackEbsSnapApi
func (*EbsBatchRollbackEbsSnapApi) Do ¶
func (a *EbsBatchRollbackEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsBatchRollbackEbsSnapRequest) (*EbsBatchRollbackEbsSnapResponse, error)
type EbsBatchRollbackEbsSnapResponse ¶
type EbsBatchRollbackEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败/处理中)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsBatchRollbackEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsBatchRollbackEbsSnapReturnObjResponse ¶
type EbsBatchRollbackEbsSnapReturnObjResponse struct{}
type EbsCancelPolicyEbsSnapApi ¶
type EbsCancelPolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsCancelPolicyEbsSnapApi ¶
func NewEbsCancelPolicyEbsSnapApi(client *core.CtyunClient) *EbsCancelPolicyEbsSnapApi
func (*EbsCancelPolicyEbsSnapApi) Do ¶
func (a *EbsCancelPolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsCancelPolicyEbsSnapRequest) (*EbsCancelPolicyEbsSnapResponse, error)
type EbsCancelPolicyEbsSnapResponse ¶
type EbsCancelPolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsCancelPolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsCancelPolicyEbsSnapReturnObjResponse ¶
type EbsCancelPolicyEbsSnapReturnObjResponse struct {
SnapshotPolicyJobResult *string `json:"snapshotPolicyJobResult,omitempty"` /* 任务执行状态。 */
}
type EbsCreateEbsSnapApi ¶
type EbsCreateEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsCreateEbsSnapApi ¶
func NewEbsCreateEbsSnapApi(client *core.CtyunClient) *EbsCreateEbsSnapApi
func (*EbsCreateEbsSnapApi) Do ¶
func (a *EbsCreateEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsCreateEbsSnapRequest) (*EbsCreateEbsSnapResponse, error)
type EbsCreateEbsSnapErrorDetailResponse ¶
type EbsCreateEbsSnapErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsCreateEbsSnapRequest ¶
type EbsCreateEbsSnapRequest struct {
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一。只有通过订单流程创建快照时,clientToken才会保证幂等性。订单流程创建快照场景说明参考接口功能介绍。 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID。 */
SnapshotName string `json:"snapshotName,omitempty"` /* 快照名称。仅允许英文字母、数字及_或者-,只能以英文字母开头,且长度为2-63字符。 */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID。 */
RetentionPolicy string `json:"retentionPolicy,omitempty"` /* 快照保留策略,取值范围:
●custom:自定义保留天数。
●forever:永久保留。 */
RetentionTime int64 `json:"retentionTime"` /* 自定义快照保留天数。取值范围:1-65535。当快照保留策略为custom时该参数为必填,当快照保留策略为forever时,自动设置为65535。 */
}
type EbsCreateEbsSnapResponse ¶
type EbsCreateEbsSnapResponse struct {
StatusCode int64 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj EbsCreateEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsCreateEbsSnapErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。 其他订单侧(bss)的错误,以ebs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsCreateEbsSnapReturnObjResponse ¶
type EbsCreateEbsSnapReturnObjResponse struct {
MasterOrderID string `json:"masterOrderID,omitempty"` /* 主订单ID。 */
MasterOrderNO string `json:"sasterOrderNO,omitempty"`
ClientToken string `json:"clientToken,omitempty"`
Resources []EbsNewEbsSnapshotReturnObjResourcesResponse `json:"resources,omitempty"`
SnapshotJobID string `json:"snapshotJobID,omitempty"`
}
type EbsCreateOrderEbsSnapApi ¶
type EbsCreateOrderEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsCreateOrderEbsSnapApi ¶
func NewEbsCreateOrderEbsSnapApi(client *core.CtyunClient) *EbsCreateOrderEbsSnapApi
func (*EbsCreateOrderEbsSnapApi) Do ¶
func (a *EbsCreateOrderEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsCreateOrderEbsSnapRequest) (*EbsCreateOrderEbsSnapResponse, error)
type EbsCreateOrderEbsSnapErrorDetailResponse ¶
type EbsCreateOrderEbsSnapErrorDetailResponse struct{}
type EbsCreateOrderEbsSnapResponse ¶
type EbsCreateOrderEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsCreateOrderEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。参考错误码。 */
ErrorDetail *EbsCreateOrderEbsSnapErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,以ebs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
}
type EbsCreateOrderEbsSnapReturnObjResponse ¶
type EbsCreateOrderEbsSnapReturnObjResponse struct {
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 订单号。 */
RegionID *string `json:"regionID,omitempty"` /* 资源所属资源池ID。 */
MasterOrderStatus *string `json:"masterOrderStatus,omitempty"` /* 快照服务开通状态(成功/失败)。 */
}
type EbsCreatePolicyEbsSnapApi ¶
type EbsCreatePolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsCreatePolicyEbsSnapApi ¶
func NewEbsCreatePolicyEbsSnapApi(client *core.CtyunClient) *EbsCreatePolicyEbsSnapApi
func (*EbsCreatePolicyEbsSnapApi) Do ¶
func (a *EbsCreatePolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsCreatePolicyEbsSnapRequest) (*EbsCreatePolicyEbsSnapResponse, error)
type EbsCreatePolicyEbsSnapRequest ¶
type EbsCreatePolicyEbsSnapRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID。 */
SnapshotPolicyName string `json:"snapshotPolicyName,omitempty"` /* 快照策略名称,只能由英文字母、数字、下划线、中划线组成,只能以英文字母开头,长度2-63字符。 */
RepeatWeekdays string `json:"repeatWeekdays,omitempty"` /* 创建快照的重复日期,0-6分别代表周日-周六,多个日期用英文逗号隔开。 */
RepeatTimes string `json:"repeatTimes,omitempty"` /* 创建快照的重复时间,0-23分别代表零点-23点,多个时间用英文逗号隔开。 */
RetentionTime int32 `json:"retentionTime"` /* 创建快照的保留时间,输入范围为[-1,1-65535],-1代表永久保留。单位为天。 */
IsEnabled *bool `json:"isEnabled"` /* 是否启用策略,取值范围:
●true:启用。
●false:不启用。
默认为true。 */
ProjectID string `json:"projectID,omitempty"` /* 企业项目,默认为“0”。 */
}
type EbsCreatePolicyEbsSnapResponse ¶
type EbsCreatePolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsCreatePolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsDeleteEbsSnapApi ¶
type EbsDeleteEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsDeleteEbsSnapApi ¶
func NewEbsDeleteEbsSnapApi(client *core.CtyunClient) *EbsDeleteEbsSnapApi
func (*EbsDeleteEbsSnapApi) Do ¶
func (a *EbsDeleteEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsDeleteEbsSnapRequest) (*EbsDeleteEbsSnapResponse, error)
type EbsDeleteEbsSnapRequest ¶
type EbsDeleteEbsSnapRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数。 */
SnapshotIDs []string `json:"snapshotIDs"` /* 云硬盘快照ID列表,请根据“查询快照列表接口”,获取snapshotID参数的返回值并进行传参。当refundOrder为true时不校验该字段,将删除所有的快照,该字段传[ ]即可。 */
RefundOrder bool `json:"refundOrder"` /* 是否退订该硬盘下的所有的快照,取值范围:
●true:将删除所有的快照并删除订单
●false:只删除快照不删除订单
默认值为false。 */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID。 */
}
type EbsDeleteEbsSnapResponse ¶
type EbsDeleteEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败)。 */
Message string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsDeleteEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsDeleteEbsSnapReturnObjResponse ¶
type EbsDeleteEbsSnapReturnObjResponse struct {
SnapshotJobID *string `json:"snapshotJobID,omitempty"` /* 删除快照任务ID,仅删除不退订时返回该字段。 */
NotAllowedList []*string `json:"notAllowedList"` /* 状态不允许删除的快照ID列表,仅删除不退订时返回该字段。 */
NotFoundList []*string `json:"notFoundList"` /* 不存在的快照ID列表,仅删除不退订时返回该字段。 */
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 主订单ID,退订时返回该参数,普通删除无该字段。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 主订单号,退订时返回该参数,普通删除无该字段。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID,退订时返回该参数,普通删除无该字段。 */
}
type EbsDeletePolicyEbsSnapApi ¶
type EbsDeletePolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsDeletePolicyEbsSnapApi ¶
func NewEbsDeletePolicyEbsSnapApi(client *core.CtyunClient) *EbsDeletePolicyEbsSnapApi
func (*EbsDeletePolicyEbsSnapApi) Do ¶
func (a *EbsDeletePolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsDeletePolicyEbsSnapRequest) (*EbsDeletePolicyEbsSnapResponse, error)
type EbsDeletePolicyEbsSnapResponse ¶
type EbsDeletePolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsDeletePolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsDeletePolicyEbsSnapReturnObjResponse ¶
type EbsDeletePolicyEbsSnapReturnObjResponse struct {
SnapshotPolicyJobResult *string `json:"snapshotPolicyJobResult,omitempty"` /* 任务执行状态。 */
}
type EbsDetachEbsApi ¶
type EbsDetachEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsDetachEbsApi ¶
func NewEbsDetachEbsApi(client *core.CtyunClient) *EbsDetachEbsApi
func (*EbsDetachEbsApi) Do ¶
func (a *EbsDetachEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsDetachEbsRequest) (*EbsDetachEbsResponse, error)
type EbsDetachEbsErrorDetailResponse ¶
type EbsDetachEbsErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsDetachEbsRequest ¶
type EbsDetachEbsResponse ¶
type EbsDetachEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsDetachEbsReturnObjResponse `json:"returnObj"` /* 返回结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码. 请参考错误码 */
ErrorDetail *EbsDetachEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsListEbsSnapApi ¶
type EbsListEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsListEbsSnapApi ¶
func NewEbsListEbsSnapApi(client *core.CtyunClient) *EbsListEbsSnapApi
func (*EbsListEbsSnapApi) Do ¶
func (a *EbsListEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsListEbsSnapRequest) (*EbsListEbsSnapResponse, error)
type EbsListEbsSnapRequest ¶
type EbsListEbsSnapRequest struct {
RegionID string /* 资源池ID,请根据查询资源池列表接口返回值进行传参,获取“regionId”参数。 */
DiskID *string /* 云硬盘ID。 */
SnapshotID *string /* 云硬盘快照ID。 */
SnapshotName *string /* 云硬盘快照名称。支持输入名称的一部分做模糊匹配。 */
SnapshotStatus *string /* 云硬盘快照状态。取值为:<br>●available:可用。<br>●freezing:冻结。<br>●creating:创建中。<br>●deleting:删除中。<br>●rollbacking:回滚中。<br>●cloning:从快照创建云硬盘中。<br>●error:错误。 */
SnapshotType *string /* 云硬盘快照创建类型。取值为:<br>●manu:手动。<br>●timer:自动。 */
VolumeAttr *string /* 云硬盘属性。取值为:<br>●data:数据盘。<br>●system:系统盘。 */
RetentionPolicy *string /* 云硬盘快照保留策略。取值为:<br>●forever:永久保留。<br>●custom:自定义保留天数。 */
}
type EbsListEbsSnapResponse ¶
type EbsListEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsListEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsListEbsSnapReturnObjResponse ¶
type EbsListEbsSnapReturnObjResponse struct {
SnapshotSize int32 `json:"snapshotSize"` /* 云硬盘快照使用量,单位为B。 */
SnapshotTotal int32 `json:"snapshotTotal"` /* 云硬盘快照总个数。 */
SnapshotList []*EbsListEbsSnapReturnObjSnapshotListResponse `json:"snapshotList"` /* 云硬盘快照列表。 */
SnapshotManuTotal int32 `json:"snapshotManuTotal"` /* 云硬盘手动快照总个数,只有传diskID时返回此字段。 */
}
type EbsListEbsSnapReturnObjSnapshotListResponse ¶
type EbsListEbsSnapReturnObjSnapshotListResponse struct {
AvailabilityZone *string `json:"availabilityZone,omitempty"` /* 可用区名称。 */
SnapshotName *string `json:"snapshotName,omitempty"` /* 云硬盘快照名称。 */
SnapshotStatus *string `json:"snapshotStatus,omitempty"` /* 云硬盘快照状态,<br />creating/deleting/rollbacking<br />/cloning/available/error,<br />分别对应创建中/<br />删除中/回滚中<br />/从快照创建云硬盘中/<br />可用/错误 */
CreateTime *string `json:"createTime,omitempty"` /* 创建时间。 */
AzName *string `json:"azName,omitempty"` /* 可用区名称。 */
DeleteTime *string `json:"deleteTime,omitempty"` /* 删除时间。 */
Description *string `json:"description,omitempty"` /* 描述信息。 */
ExpireTime *string `json:"expireTime,omitempty"` /* 过期时间。 */
Freezing *bool `json:"freezing"` /* 是否被冻结。 */
IsEncryted *bool `json:"isEncryted"` /* 是否是加密盘。 */
IsMaz *bool `json:"isMaz"` /* 是否跨AZ。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。 */
IsTalkOrder *bool `json:"isTalkOrder"` /* 是否是按需计费资源。 */
RetentionPolicy *string `json:"retentionPolicy,omitempty"` /* 快照保留策略,取值为:
●custom:自定义保留天数。
●forever:永久保留。 */
RetentionTime int64 `json:"retentionTime,omitempty"` /* 快照保留时间。 */
SnapshotID *string `json:"snapshotID,omitempty"` /* 快照ID。 */
SnapshotType *string `json:"snapshotType,omitempty"` /* 快照类型,取值为:
●manu:手动。
●timer:自动。 */
UpdateTime *string `json:"updateTime,omitempty"` /* 更新时间。 */
VolumeAttr *string `json:"volumeAttr,omitempty"` /* 云硬盘属性,取值为:
●data:数据盘。
●system:系统盘。 */
VolumeName *string `json:"volumeName,omitempty"` /* 云硬盘名称。 */
VolumeSize int64 `json:"volumeSize"` /* 云硬盘大小。 */
VolumeSource *string `json:"volumeSource,omitempty"` /* 云硬盘来源,如果为空,<br />则是普通云硬盘,<br />如果不为空,<br />则是由快照创建而来,<br />显示来源快照ID */
VolumeStatus *string `json:"volumeStatus,omitempty"` /* 云硬盘的状态,请参考<a href="https://www.ctyun.cn/document/10027696/10168629">云硬盘使用状态</a> */
DiskID *string `json:"diskID,omitempty"` /* 云硬盘ID。 */
VolumeType *string `json:"volumeType,omitempty"` /* 云硬盘类型,取值为:
●SATA:普通IO。
●SAS:高IO。
●SSD:超高IO。
●FAST-SSD:极速型SSD。
●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘。 */
}
type EbsModifyPolicyEbsSnapApi ¶
type EbsModifyPolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsModifyPolicyEbsSnapApi ¶
func NewEbsModifyPolicyEbsSnapApi(client *core.CtyunClient) *EbsModifyPolicyEbsSnapApi
func (*EbsModifyPolicyEbsSnapApi) Do ¶
func (a *EbsModifyPolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsModifyPolicyEbsSnapRequest) (*EbsModifyPolicyEbsSnapResponse, error)
type EbsModifyPolicyEbsSnapRequest ¶
type EbsModifyPolicyEbsSnapRequest struct {
RegionID string `json:"regionID,omitempty"` /* 资源池ID。 */
SnapshotPolicyID string `json:"snapshotPolicyID,omitempty"` /* 要修改的快照策略ID。 */
SnapshotPolicyName *string `json:"snapshotPolicyName,omitempty"` /* 修改后的快照策略名称,只能由英文字母、数字、下划线、中划线组成,不能以特殊字符、数字开头,长度2-63字符。 */
RepeatWeekdays *string `json:"repeatWeekdays,omitempty"` /* 修改后的创建快照的重复日期,0-6分别代表周日-周六,多个日期用英文逗号隔开。 */
RepeatTimes *string `json:"repeatTimes,omitempty"` /* 修改后的创建快照的重复时间,0-23分别代表零点-23点,多个时间用英文逗号隔开。 */
RetentionTime int32 `json:"retentionTime"` /* 修改后的创建快照的保留时间,输入范围为[ -1,1-65535], -1代表永久保留。单位为天。 */
}
type EbsModifyPolicyEbsSnapResponse ¶
type EbsModifyPolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsModifyPolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsModifyPolicyEbsSnapReturnObjResponse ¶
type EbsModifyPolicyEbsSnapReturnObjResponse struct {
SnapshotPolicyJobResult *string `json:"snapshotPolicyJobResult,omitempty"` /* 任务执行状态。 */
}
type EbsModifyPolicyStatusEbsSnapApi ¶
type EbsModifyPolicyStatusEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsModifyPolicyStatusEbsSnapApi ¶
func NewEbsModifyPolicyStatusEbsSnapApi(client *core.CtyunClient) *EbsModifyPolicyStatusEbsSnapApi
func (*EbsModifyPolicyStatusEbsSnapApi) Do ¶
func (a *EbsModifyPolicyStatusEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsModifyPolicyStatusEbsSnapRequest) (*EbsModifyPolicyStatusEbsSnapResponse, error)
type EbsModifyPolicyStatusEbsSnapResponse ¶
type EbsModifyPolicyStatusEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsModifyPolicyStatusEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsNewEbsApi ¶
type EbsNewEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsNewEbsApi ¶
func NewEbsNewEbsApi(client *core.CtyunClient) *EbsNewEbsApi
func (*EbsNewEbsApi) Do ¶
func (a *EbsNewEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsNewEbsRequest) (*EbsNewEbsResponse, error)
type EbsNewEbsErrorDetailResponse ¶
type EbsNewEbsErrorDetailResponse struct{}
type EbsNewEbsLabelsRequest ¶
type EbsNewEbsRequest ¶
type EbsNewEbsRequest struct {
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一。 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID。 */
MultiAttach *bool `json:"multiAttach"` /* 是否多云主机挂载,取值范围:
●true:是
●false:否
默认值:false */
IsEncrypt *bool `json:"isEncrypt"` /* 是否加密盘,取值范围:
●true:是
●false:否
默认值:false
共享盘、ISCSI模式磁盘、极速型SSD类型盘、XSSD系列盘不支持加密。 */
KmsUUID *string `json:"kmsUUID,omitempty"` /* 如果是加密盘,需要提供kms的uuid。 */
ProjectID *string `json:"projectID,omitempty"` /* 企业项目ID,默认为0。 */
DiskMode string `json:"diskMode,omitempty"` /* 云硬盘磁盘模式,分为:
●VBD(Virtual Block Device):虚拟块存储设备。
●ISCSI (Internet Small Computer System Interface):小型计算机系统接口。
●FCSAN(Fibre Channel SAN):光纤通道协议的SAN网络。 */
DiskType string `json:"diskType,omitempty"` /* 云硬盘类型及相关限制:
●SATA:普通IO
●SAS:高IO,只有该类型支持FCSAN模式
●SSD:超高IO
●FAST-SSD:极速型SSD,不支持ISCSI模式
●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘,不支持加密,不支持ISCSI模式或FCSAN模式 */
DiskName string `json:"diskName,omitempty"` /* 磁盘命名,单账户单资源池下,命名需唯一。
仅允许英文字母、数字及_或者-,长度为2-63字符,不能以特殊字符开头。 */
DiskSize int32 `json:"diskSize"` /* 云硬盘大小,单位GB。数据盘的取值范围:
●超高IO/高IO/极速型SSD/普通IO:10GB~32768GB
●XSSD-0:10GB-65536GB
●XSSD-1:20GB-65536GB
●XSSD-2:512GB-65536GB */
OnDemand *bool `json:"onDemand"` /* 是否按需下单,取值范围:
●true:是
●false:否
默认值:true */
CycleType *string `json:"cycleType,omitempty"` /* 包周期类型,year:年,month:月。
onDemand为false时,必须指定year和month的值。 */
CycleCount int32 `json:"cycleCount"` /* 包周期数。onDemand为false时必须指定。
周期为年(year)时,周期最大长度不能超过5年。
周期为月(month)时,周期最大长度不能超过60月。 */
ImageID *string `json:"imageID,omitempty"` /* 镜像ID,如果用镜像创建,只支持数据盘的私有镜像,所创建的数据盘的所在地域要与镜像源一致,容量不可小于镜像对应的磁盘容量。
不支持批量创建操作,从镜像创建的数据盘不支持加密、ISCSI和FCSAN高级配置。 */
AzName *string `json:"azName,omitempty"` /* 多可用区资源池下,必须指定可用区。 */
ProvisionedIops int32 `json:"provisionedIops"` /* XSSD类型盘的预配置iops值,最小值为1,其他类型的盘不支持设置。具体取值范围如下:
●XSSD-0:(基础IOPS(min{1800+12×容量, 10,000}) + 预配置IOPS) ≤ min{500×容量,50,000}
●XSSD-1:(基础IOPS(min{1800+50×容量, 50000}) + 预配置IOPS) ≤ min{500×容量,100000}
●XSSD-2:(基础IOPS(min{3000+50×容量, 100000}) + 预配置IOPS) ≤ min{500×容量,1000000} */
DeleteSnapWithEbs *bool `json:"deleteSnapWithEbs"` /* 设置全部快照是否随盘删除,取值范围:
●true:是
●false:否
默认值:false
*/
Labels []*EbsNewEbsLabelsRequest `json:"labels"` /* 设置云硬盘标签,实际绑定标签的结果请查询云硬盘详情的labels返回值是否如预期。 */
BackupID *string `json:"backupID,omitempty"` /* 云硬盘备份ID参数,有以下限制:
●从备份创建盘仅支持VBD模式。
●新盘容量不能小于备份源盘容量。
●不支持配置加密属性(自动与备份源盘保持一致)。
●备份状态必须是可用。 */
}
type EbsNewEbsResponse ¶
type EbsNewEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsNewEbsReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为Product.Module.Code三段式码.请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为Product.Module.Code三段式大驼峰码. 请参考错误码。 */
ErrorDetail *EbsNewEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsNewEbsReturnObjResourcesResponse ¶
type EbsNewEbsReturnObjResourcesResponse struct {
DiskID *string `json:"diskID,omitempty"` /* 资源底层ID,即云硬盘ID。 */
OrderID *string `json:"orderID,omitempty"` /* 订单ID。 */
StartTime int64 `json:"startTime"` /* 启动时刻,epoch时戳,毫秒精度。 */
CreateTime int64 `json:"createTime"` /* 创建时刻,epoch时戳,毫秒精度。 */
UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch时戳,毫秒精度。 */
Status int32 `json:"status"` /* 资源状态。 */
IsMaster *bool `json:"isMaster"` /* 是否是主资源项。 */
ItemValue int32 `json:"itemValue"` /* 资源规格,即为磁盘大小,单位为GB。 */
ResourceType *string `json:"resourceType,omitempty"` /* 资源类型,云硬盘为EBS。 */
DiskName *string `json:"diskName,omitempty"` /* 云硬盘名称。 */
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态。 */
MasterResourceID *string `json:"masterResourceID,omitempty"` /* 主资源ID。 */
}
type EbsNewEbsReturnObjResponse ¶
type EbsNewEbsReturnObjResponse struct {
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态。参考错误码。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 订单号。 */
MasterResourceID *string `json:"masterResourceID,omitempty"` /* 主资源ID。 */
MasterResourceStatus *string `json:"masterResourceStatus,omitempty"` /* 主资源状态。只有主订单资源会返回。 */
RegionID *string `json:"regionID,omitempty"` /* 资源所属资源池ID。 */
Resources []*EbsNewEbsReturnObjResourcesResponse `json:"resources"` /* 资源明细列表,参考表resources。 */
}
type EbsNewFromSnapshotEbsSnapApi ¶
type EbsNewFromSnapshotEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsNewFromSnapshotEbsSnapApi ¶
func NewEbsNewFromSnapshotEbsSnapApi(client *core.CtyunClient) *EbsNewFromSnapshotEbsSnapApi
func (*EbsNewFromSnapshotEbsSnapApi) Do ¶
func (a *EbsNewFromSnapshotEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsNewFromSnapshotEbsSnapRequest) (*EbsNewFromSnapshotEbsSnapResponse, error)
type EbsNewFromSnapshotEbsSnapErrorDetailResponse ¶
type EbsNewFromSnapshotEbsSnapErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsNewFromSnapshotEbsSnapRequest ¶
type EbsNewFromSnapshotEbsSnapRequest struct {
SnapshotID string `json:"snapshotID,omitempty"` /* 快照ID。 */
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一。 */
RegionID string `json:"regionID,omitempty"` /* 资源池ID。 */
MultiAttach *bool `json:"multiAttach"` /* 是否多云主机挂载,取值范围:
●true:是
●false:否
默认值:false */
ProjectID *string `json:"projectID,omitempty"` /* 企业项目ID,默认为”0” */
DiskMode string `json:"diskMode,omitempty"` /* 磁盘模式。当前仅支持VBD。
●VBD(Virtual Block Device):虚拟块存储设备。 */
DiskName string `json:"diskName,omitempty"` /* 磁盘命名,单账户单资源池下,命名需唯一。
仅允许英文字母、数字及_或者-,长度为2-63字符,不能以特殊字符开头。 */
DiskSize int32 `json:"diskSize"` /* 磁盘大小,单位GB。数据盘的取值范围为:
●超高IO/高IO/极速型SSD/普通IO:10GB~32768GB
●XSSD-0:10GB-65536GB
●XSSD-1:20GB-65536GB
●XSSD-2:512GB-65536GB */
OnDemand *bool `json:"onDemand"` /* 是否按需下单,取值范围:
●true:是
●false:否
默认值:true */
CycleType *string `json:"cycleType,omitempty"` /* 包周期类型,取值范围:
●year:包年。
●month:包月。
onDemand为false时,必须指定该参数。 */
CycleCount int32 `json:"cycleCount"` /* 包周期数。onDemand为false时必须指定。
周期为年(year)时,周期最大长度不能超过5年。
周期为月(month)时,周期最大长度不能超过60月。 */
}
type EbsNewFromSnapshotEbsSnapResponse ¶
type EbsNewFromSnapshotEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsNewFromSnapshotEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsNewFromSnapshotEbsSnapErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。 其他订单侧(bss)的错误,以ebs.order.procFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsNewFromSnapshotEbsSnapReturnObjResourcesResponse ¶
type EbsNewFromSnapshotEbsSnapReturnObjResourcesResponse struct {
DiskID *string `json:"diskID,omitempty"` /* 云硬盘ID。 */
OrderID *string `json:"orderID,omitempty"` /* 订单ID。 */
StartTime int32 `json:"startTime"` /* 启动时刻,epoch时戳,毫秒精度。 */
CreateTime int32 `json:"createTime"` /* 创建时刻,epoch时戳,毫秒精度。 */
UpdateTime int32 `json:"updateTime"` /* 更新时刻,epoch时戳,毫秒精度。 */
Status int32 `json:"status"` /* 资源状态。 */
IsMaster *bool `json:"isMaster"` /* 是否是主资源。 */
ItemValue int32 `json:"itemValue"` /* 资源规格,即为磁盘大小,单位为GB。 */
DiskName *string `json:"diskName,omitempty"` /* 云硬盘名称。 */
ResourceType *string `json:"resourceType,omitempty"` /* 云硬盘资源类型EBS(只有一种)。 */
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。 */
MasterResourceID *string `json:"masterResourceID,omitempty"` /* 主资源ID。 */
}
type EbsNewFromSnapshotEbsSnapReturnObjResponse ¶
type EbsNewFromSnapshotEbsSnapReturnObjResponse struct {
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,在若干错误情况下,可以使用materOrderID进一步确认订单状态及资源状态。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 订单号。 */
MasterResourceID *string `json:"masterResourceID,omitempty"` /* 主资源ID。 */
MasterResourceStatus *string `json:"masterResourceStatus,omitempty"` /* 主资源状态。只有主订单资源会返回。 */
RegionID *string `json:"regionID,omitempty"` /* 资源所属的资源池ID。 */
Resources []*EbsNewFromSnapshotEbsSnapReturnObjResourcesResponse `json:"resources"` /* 资源明细列表,参考表resources。 */
}
type EbsQueryEbsByIDApi ¶
type EbsQueryEbsByIDApi struct {
// contains filtered or unexported fields
}
func NewEbsQueryEbsByIDApi ¶
func NewEbsQueryEbsByIDApi(client *core.CtyunClient) *EbsQueryEbsByIDApi
func (*EbsQueryEbsByIDApi) Do ¶
func (a *EbsQueryEbsByIDApi) Do(ctx context.Context, credential core.Credential, req *EbsQueryEbsByIDRequest) (*EbsQueryEbsByIDResponse, error)
type EbsQueryEbsByIDRequest ¶
type EbsQueryEbsByIDResponse ¶
type EbsQueryEbsByIDResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsQueryEbsByIDReturnObjResponse `json:"returnObj"` /* 云硬盘详情对象。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
}
type EbsQueryEbsByIDReturnObjResponse ¶
type EbsQueryEbsByIDReturnObjResponse struct {
DiskName *string `json:"diskName,omitempty"` /* 云硬盘名称。 */
DiskID *string `json:"diskID,omitempty"` /* 云硬盘ID。 */
DiskSize int32 `json:"diskSize"` /* 磁盘大小,单位为GB。 */
DiskType *string `json:"diskType,omitempty"` /* 磁盘规格类型,取值为:
●SATA:普通IO。
●SAS:高IO。
●SSD:超高IO。
●FAST-SSD:极速型SSD。
●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘。 */
DiskMode *string `json:"diskMode,omitempty"` /* 云硬盘磁盘模式,取值为:
●VBD(Virtual Block Device):虚拟块存储设备。
●ISCSI (Internet Small Computer System Interface):小型计算机系统接口。
●FCSAN(Fibre Channel SAN):光纤通道协议的SAN网络。 */
DiskStatus *string `json:"diskStatus,omitempty"` /* 参考 <a href='https://www.ctyun.cn/document/10027696/10168629'>云硬盘使用状态</a> */
CreateTime int64 `json:"createTime"` /* 创建时刻,epoch时戳,精度毫秒。 */
UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch时戳,精度毫秒。 */
ExpireTime int64 `json:"expireTime"` /* 过期时刻,epoch时戳,精度毫秒。 */
IsSystemVolume *bool `json:"isSystemVolume"` /* 只有为系统盘时才返回该字段。 */
IsPackaged *bool `json:"isPackaged"` /* 是否随云主机一起订购。 */
InstanceName *string `json:"instanceName,omitempty"` /* 绑定的云主机名称,有挂载时才返回。 */
InstanceID *string `json:"instanceID,omitempty"` /* 绑定的云主机ID,有挂载时才返回。 */
InstanceStatus *string `json:"instanceStatus,omitempty"` /* 云主机状态,参考<a href='https://www.ctyun.cn/document/10027696/10168629'>云主机使用状态</a> */
MultiAttach *bool `json:"multiAttach"` /* 是否是共享云硬盘。 */
Attachments []*EbsQueryEbsByIDReturnObjAttachmentsResponse `json:"attachments"` /* 挂载信息。如果是共享挂载云硬盘,则返回多项;无挂载时不返回该字段。 */
ProjectID *string `json:"projectID,omitempty"` /* 资源所属的企业项目ID。 */
IsEncrypt *bool `json:"isEncrypt"` /* 是否是加密盘。 */
KmsUUID *string `json:"kmsUUID,omitempty"` /* 加密盘密钥UUID,是加密盘时才返回。 */
OnDemand *bool `json:"onDemand"` /* 是否按需订购,按需时才返回该字段。 */
CycleType *string `json:"cycleType,omitempty"` /* 包周期类型,year:年,month:月。非按需时才返回。 */
CycleCount int32 `json:"cycleCount"` /* 包周期数,非按需时才返回。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。 */
AzName *string `json:"azName,omitempty"` /* 多可用区下的可用区名称。 */
DiskFreeze *bool `json:"diskFreeze,omitempty"` /* 云硬盘是否已冻结。 */
ProvisionedIops int32 `json:"provisionedIops"` /* XSSD类型盘的预配置iops,未配置返回0,其他类型盘不返回。 */
VolumeSource *string `json:"volumeSource,omitempty"` /* 云硬盘源快照ID,若不是从快照创建的则返回null。 */
SnapshotPolicyID *string `json:"snapshotPolicyID,omitempty"` /* 云硬盘绑定的快照策略ID,若没有绑定则返回null。 */
}
type EbsQueryEbsByNameApi ¶
type EbsQueryEbsByNameApi struct {
// contains filtered or unexported fields
}
func NewEbsQueryEbsByNameApi ¶
func NewEbsQueryEbsByNameApi(client *core.CtyunClient) *EbsQueryEbsByNameApi
func (*EbsQueryEbsByNameApi) Do ¶
func (a *EbsQueryEbsByNameApi) Do(ctx context.Context, credential core.Credential, req *EbsQueryEbsByNameRequest) (*EbsQueryEbsByNameResponse, error)
type EbsQueryEbsByNameResponse ¶
type EbsQueryEbsByNameResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsQueryEbsByNameReturnObjResponse `json:"returnObj"` /* 云硬盘信息查询结果。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
}
type EbsQueryEbsByNameReturnObjResponse ¶
type EbsQueryEbsByNameReturnObjResponse struct {
DiskName *string `json:"diskName,omitempty"` /* 云硬盘名称。 */
DiskID *string `json:"diskID,omitempty"` /* 云硬盘ID。 */
DiskSize int32 `json:"diskSize"` /* 磁盘大小,单位为GB。 */
DiskType *string `json:"diskType,omitempty"` /* 磁盘规格类型,取值为:
●SATA:普通IO。
●SAS:高IO。
●SSD:超高IO。
●FAST-SSD:极速型SSD。
●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘。 */
DiskMode *string `json:"diskMode,omitempty"` /* 云硬盘磁盘模式,取值为:
●VBD(Virtual Block Device):虚拟块存储设备。
●ISCSI (Internet Small Computer System Interface):小型计算机系统接口。
●FCSAN(Fibre Channel SAN):光纤通道协议的SAN网络。 */
DiskStatus *string `json:"diskStatus,omitempty"` /* 参考 <a href='https://www.ctyun.cn/document/10027696/10168629'>云硬盘使用状态</a> */
CreateTime int64 `json:"createTime"` /* 创建时刻,epoch时戳,精度毫秒。 */
UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch时戳,精度毫秒。 */
ExpireTime int64 `json:"expireTime"` /* 过期时刻,epoch时戳,精度毫秒。 */
IsSystemVolume *bool `json:"isSystemVolume"` /* 只有为系统盘时才返回该字段。 */
IsPackaged *bool `json:"isPackaged"` /* 是否随云主机一起订购。 */
InstanceName *string `json:"instanceName,omitempty"` /* 绑定的云主机名称,有挂载时才返回 */
InstanceID *string `json:"instanceID,omitempty"` /* 绑定的云主机ID,有挂载时才返回。 */
InstanceStatus *string `json:"instanceStatus,omitempty"` /* 云主机状态,参考<a href='https://www.ctyun.cn/document/10027696/10168629'>云主机使用状态</a> */
MultiAttach *bool `json:"multiAttach"` /* 是否是共享云硬盘。 */
Attachments []*EbsQueryEbsByNameReturnObjAttachmentsResponse `json:"attachments"` /* 挂载信息。如果是共享挂载云硬盘,则返回多项;无挂载时不返回该字段。 */
ProjectID *string `json:"projectID,omitempty"` /* 云硬盘所属的企业项目ID。 */
IsEncrypt *bool `json:"isEncrypt"` /* 是否是加密盘。 */
KmsUUID *string `json:"kmsUUID,omitempty"` /* 加密盘密钥UUID,是加密盘时才返回。 */
OnDemand *bool `json:"onDemand"` /* 是否按需订购,按需时才返回该字段。 */
CycleType *string `json:"cycleType,omitempty"` /* 包周期类型,year:年,month:月。非按需时才返回。 */
CycleCount int32 `json:"cycleCount"` /* 包周期数,非按需时才返回。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。 */
AzName *string `json:"azName,omitempty"` /* 多可用区下的可用区名称。 */
DiskFreeze *bool `json:"diskFreeze,omitempty"` /* 云硬盘是否已冻结。 */
ProvisionedIops int32 `json:"provisionedIops"` /* XSSD类型盘的预配置iops,未配置返回0,其他类型盘不返回。 */
VolumeSource *string `json:"volumeSource,omitempty"` /* 云硬盘源快照ID,若不是从快照创建的则返回null。 */
SnapshotPolicyID *string `json:"snapshotPolicyID,omitempty"` /* 云硬盘绑定的快照策略ID,若没有绑定则返回null。 */
}
type EbsQueryEbsListApi ¶
type EbsQueryEbsListApi struct {
// contains filtered or unexported fields
}
func NewEbsQueryEbsListApi ¶
func NewEbsQueryEbsListApi(client *core.CtyunClient) *EbsQueryEbsListApi
func (*EbsQueryEbsListApi) Do ¶
func (a *EbsQueryEbsListApi) Do(ctx context.Context, credential core.Credential, req *EbsQueryEbsListRequest) (*EbsQueryEbsListResponse, error)
type EbsQueryEbsListRequest ¶
type EbsQueryEbsListRequest struct {
RegionID string /* 资源池ID。 */
PageNo int32 /* 默认为1。 */
PageSize int32 /* 默认为10,最大值为300。 */
DiskStatus *string /* 云硬盘状态。取值为:<br>●attached:已挂载。<br>●unattached:未挂载。<br>●detaching:卸载中。<br>●creating:创建中。<br>●expired:已过期。<br>●freezing:已冻结。 */
AzName *string /* 可用区。 */
ProjectID *string /* 企业项目。 */
DiskType *string /* 云硬盘类型。取值为:<br>●SATA:普通IO。<br>●SAS:高IO。<br>●SSD:超高IO。<br>●FAST-SSD:极速型SSD、<br>●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘。 */
DiskMode *string /* 云硬盘模式。取值为:<br>●VBD:虚拟块存储设备。<br>●ISCSI:小型计算机系统接口。<br>●FCSAN:光纤通道协议的SAN网络。 */
MultiAttach *string /* 是否共享盘。取值为:<br>●true:共享盘。<br>●false:非共享盘。 */
IsSystemVolume *string /* 是否为系统盘。取值为:<br>●true:系统盘。<br>●false:数据盘。 */
IsEncrypt *string /* 是否加密盘。取值为:<br>●true:加密盘。<br>●false:非加密盘。 */
QueryContent *string /* 模糊匹配盘的信息,包括盘ID、盘名称、挂载主机ID、挂载主机名称等信息。 */
}
type EbsQueryEbsListResponse ¶
type EbsQueryEbsListResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsQueryEbsListReturnObjResponse `json:"returnObj"` /* 返回数据体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
}
type EbsQueryEbsListReturnObjDiskListResponse ¶
type EbsQueryEbsListReturnObjDiskListResponse struct {
DiskName *string `json:"diskName,omitempty"` /* 云硬盘名称。 */
DiskID *string `json:"diskID,omitempty"` /* 云硬盘ID。 */
DiskSize int32 `json:"diskSize"` /* 磁盘大小,单位为GB。 */
DiskType *string `json:"diskType,omitempty"` /* 磁盘规格类型,取值为:
●SATA:普通IO。
●SAS:高IO。
●SSD:超高IO。
●FAST-SSD:极速型SSD。
●XSSD-0、XSSD-1、XSSD-2:X系列云硬盘。 */
DiskMode *string `json:"diskMode,omitempty"` /* 云硬盘磁盘模式,取值为:
●VBD(Virtual Block Device):虚拟块存储设备。
●ISCSI (Internet Small Computer System Interface):小型计算机系统接口。
●FCSAN(Fibre Channel SAN):光纤通道协议的SAN网络。 */
DiskStatus *string `json:"diskStatus,omitempty"` /* 参考 <a href='https://www.ctyun.cn/document/10027696/10168629'>云硬盘使用状态</a> */
CreateTime int64 `json:"createTime"` /* 创建时刻,epoch时戳,精度为毫秒。 */
UpdateTime int64 `json:"updateTime"` /* 更新时刻,epoch时戳,精度为毫秒。 */
ExpireTime int64 `json:"expireTime"` /* 过期时刻,epoch时戳,精度为毫秒。 */
IsSystemVolume *bool `json:"isSystemVolume"` /* 只有为系统盘时才返回该字段。 */
IsPackaged *bool `json:"isPackaged"` /* 是否随云主机一起订购。 */
InstanceName *string `json:"instanceName,omitempty"` /* 绑定的云主机名称,有挂载时才返回。 */
InstanceID *string `json:"instanceID,omitempty"` /* 绑定的云主机ID,有挂载时才返回。 */
InstanceStatus *string `json:"instanceStatus,omitempty"` /* 云主机状态,参考<a href='https://www.ctyun.cn/document/10027696/10168629'>云主机使用状态</a> */
MultiAttach *bool `json:"multiAttach"` /* 是否是共享云硬盘。 */
Attachments []*EbsQueryEbsListReturnObjDiskListAttachmentsResponse `json:"attachments"` /* 挂载信息。如果是共享挂载云硬盘,则返回多项;无挂载时不返回该字段。 */
ProjectID *string `json:"projectID,omitempty"` /* 云硬盘所属的企业项目ID。 */
IsEncrypt *bool `json:"isEncrypt"` /* 是否是加密盘。 */
KmsUUID *string `json:"kmsUUID,omitempty"` /* 加密盘密钥UUID,是加密盘时才返回。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。 */
AzName *string `json:"azName,omitempty"` /* 多可用区下的可用区名字,非多可用区不返回该字段。 */
DiskFreeze *bool `json:"diskFreeze,omitempty"` /* 云硬盘是否已冻结。 */
ProvisionedIops int32 `json:"provisionedIops"` /* XSSD类型盘的预配置iops,未配置返回0,其他类型云硬盘不返回。 */
}
type EbsQueryEbsListReturnObjResponse ¶
type EbsQueryEbsListReturnObjResponse struct {
DiskList []*EbsQueryEbsListReturnObjDiskListResponse `json:"diskList"` /* 返回数据集合。 */
DiskTotal int32 `json:"diskTotal"` /* 总数。 */
CurrentCount int32 `json:"currentCount"` /* 当前页记录数目。 */
TotalCount int32 `json:"totalCount"` /* 总记录数。 */
TotalPage int32 `json:"totalPage"` /* 总页数。 */
}
type EbsQueryPolicyEbsSnapApi ¶
type EbsQueryPolicyEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsQueryPolicyEbsSnapApi ¶
func NewEbsQueryPolicyEbsSnapApi(client *core.CtyunClient) *EbsQueryPolicyEbsSnapApi
func (*EbsQueryPolicyEbsSnapApi) Do ¶
func (a *EbsQueryPolicyEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsQueryPolicyEbsSnapRequest) (*EbsQueryPolicyEbsSnapResponse, error)
type EbsQueryPolicyEbsSnapResponse ¶
type EbsQueryPolicyEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsQueryPolicyEbsSnapReturnObjResponse `json:"returnObj"` /* 参考响应示例。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsQueryPolicyEbsSnapReturnObjResponse ¶
type EbsQueryPolicyEbsSnapReturnObjResponse struct {
SnapshotPolicyTotalCount int32 `json:"snapshotPolicyTotalCount"` /* 自动快照策略总数量。 */
SnapshotPolicyList []*EbsQueryPolicyEbsSnapReturnObjSnapshotPolicyListResponse `json:"snapshotPolicyList"` /* 自动快照策略列表。 */
}
type EbsQueryPolicyEbsSnapReturnObjSnapshotPolicyListResponse ¶
type EbsQueryPolicyEbsSnapReturnObjSnapshotPolicyListResponse struct {
SnapshotPolicyID *string `json:"snapshotPolicyID,omitempty"` /* 自动快照策略ID。 */
SnapshotPolicyName *string `json:"snapshotPolicyName,omitempty"` /* 自动快照策略名称。 */
SnapshotPolicyStatus *string `json:"snapshotPolicyStatus,omitempty"` /* 自动快照策略状态,取值范围:
●activated:启用。
●deactivated:停用。 */
RepeatWeekdays *string `json:"repeatWeekdays,omitempty"` /* 创建快照的重复日期,0-6分别代表周日-周六,多个日期用英文逗号隔开。 */
RepeatTimes *string `json:"repeatTimes,omitempty"` /* 创建快照的重复时间,0-23分别代表零点-23点,多个时间用英文逗号隔开。 */
RetentionTime int32 `json:"retentionTime"` /* 创建快照的保留时间,-1代表永久保留。 */
ProjectID *string `json:"projectID,omitempty"` /* 企业项目。 */
BoundDiskNum int32 `json:"boundDiskNum"` /* 关联云硬盘的数量。 */
SnapshotPolicyCreateTime *string `json:"snapshotPolicyCreateTime,omitempty"` /* 策略创建时间。 */
}
type EbsQuerySizeEbsSnapApi ¶
type EbsQuerySizeEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsQuerySizeEbsSnapApi ¶
func NewEbsQuerySizeEbsSnapApi(client *core.CtyunClient) *EbsQuerySizeEbsSnapApi
func (*EbsQuerySizeEbsSnapApi) Do ¶
func (a *EbsQuerySizeEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsQuerySizeEbsSnapRequest) (*EbsQuerySizeEbsSnapResponse, error)
type EbsQuerySizeEbsSnapRequest ¶
type EbsQuerySizeEbsSnapRequest struct {
RegionID string /* 资源池ID。 */
}
type EbsQuerySizeEbsSnapResponse ¶
type EbsQuerySizeEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败/处理中)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsQuerySizeEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsQuerySizeEbsSnapReturnObjResponse ¶
type EbsQuerySizeEbsSnapReturnObjResponse struct {
SnapshotTotalSize int32 `json:"snapshotTotalSize"` /* region下的所有云硬盘快照的使用量,单位为B。 */
SnapshotTotalCount int32 `json:"snapshotTotalCount"` /* 云硬盘快照数量。 */
AzDisplayName *string `json:"azDisplayName,omitempty"` /* 可用区名称。 */
Details []*EbsQuerySizeEbsSnapReturnObjDetailsResponse `json:"details"` /* 不同类型的快照占用的使用量详情。 */
}
type EbsRefundEbsApi ¶
type EbsRefundEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsRefundEbsApi ¶
func NewEbsRefundEbsApi(client *core.CtyunClient) *EbsRefundEbsApi
func (*EbsRefundEbsApi) Do ¶
func (a *EbsRefundEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsRefundEbsRequest) (*EbsRefundEbsResponse, error)
type EbsRefundEbsErrorDetailResponse ¶
type EbsRefundEbsErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsRefundEbsRequest ¶
type EbsRefundEbsRequest struct {
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一。 */
DiskID string `json:"diskID,omitempty"` /* 需要退订的云硬盘ID。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。如本地语境支持保存regionID,那么建议传递。 */
DeleteSnapWithEbs *bool `json:"deleteSnapWithEbs"` /* 设置快照是否随盘删除,只能设置为true。 */
}
type EbsRefundEbsResponse ¶
type EbsRefundEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsRefundEbsReturnObjResponse `json:"returnObj"` /* 返回结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsRefundEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsRenewEbsApi ¶
type EbsRenewEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsRenewEbsApi ¶
func NewEbsRenewEbsApi(client *core.CtyunClient) *EbsRenewEbsApi
func (*EbsRenewEbsApi) Do ¶
func (a *EbsRenewEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsRenewEbsRequest) (*EbsRenewEbsResponse, error)
type EbsRenewEbsErrorDetailResponse ¶
type EbsRenewEbsErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsRenewEbsRequest ¶
type EbsRenewEbsRequest struct {
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。如本地语境支持保存regionID,那么建议传递。 */
CycleType string `json:"cycleType,omitempty"` /* 包周期类型,取值范围:
●year:包年。
●month:包月。 */
CycleCount int32 `json:"cycleCount"` /* 包周期数。
周期为年(year)时,最大支持续订3年。
周期为月(month)时,最大支持续订36个月。 */
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。要求单个云平台账户内唯一。 */
}
type EbsRenewEbsResponse ¶
type EbsRenewEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsRenewEbsReturnObjResponse `json:"returnObj"` /* 返回结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsRenewEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsRenewEbsReturnObjResponse ¶
type EbsRenewEbsReturnObjResponse struct {
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,<br/>在若干错误情况下,可以使用masterOrderID进一步确认订单状态及资源状态。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 订单号。 */
RegionID *string `json:"regionID,omitempty"` /* 资源池ID。 */
}
type EbsResizeEbsApi ¶
type EbsResizeEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsResizeEbsApi ¶
func NewEbsResizeEbsApi(client *core.CtyunClient) *EbsResizeEbsApi
func (*EbsResizeEbsApi) Do ¶
func (a *EbsResizeEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsResizeEbsRequest) (*EbsResizeEbsResponse, error)
type EbsResizeEbsErrorDetailResponse ¶
type EbsResizeEbsErrorDetailResponse struct {
BssErrCode *string `json:"bssErrCode,omitempty"` /* bss错误明细码,包含于bss格式化JSON错误信息中。 */
BssErrMsg *string `json:"bssErrMsg,omitempty"` /* bss错误信息,包含于bss格式化JSON错误信息中。 */
BssOrigErr *string `json:"bssOrigErr,omitempty"` /* 无法明确解码bss错误信息时,原样透出的bss错误信息。 */
BssErrPrefixHint *string `json:"bssErrPrefixHint,omitempty"` /* bss格式化JSON错误信息的前置提示信息。 */
}
type EbsResizeEbsRequest ¶
type EbsResizeEbsRequest struct {
DiskSize int32 `json:"diskSize"` /* 变配后的云硬盘大小,数据盘的取值范围为:
●超高IO/高IO/极速型SSD/普通IO:10GB~32768GB
●XSSD-0:10GB-65536GB
●XSSD-1:20GB-65536GB
●XSSD-2:512GB-65536GB
系统盘的取值范围为:
●超高IO/高IO/极速型SSD/普通IO:40GB~2048GB
●XSSD-0:40GB-2048GB
●XSSD-1:40GB-2048GB
●XSSD-2:512GB-2048GB */
DiskID string `json:"diskID,omitempty"` /* 待扩容的云硬盘ID。 */
RegionID *string `json:"regionID,omitempty"` /* 如本地语境支持保存regionID,那么建议传递。 */
ClientToken *string `json:"clientToken,omitempty"` /* 客户端存根,用于保证订单幂等性。<br/>要求单个云平台账户内唯一。 */
}
type EbsResizeEbsResponse ¶
type EbsResizeEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsResizeEbsReturnObjResponse `json:"returnObj"` /* 返回结构体。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码,请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码,请参考错误码。 */
ErrorDetail *EbsResizeEbsErrorDetailResponse `json:"errorDetail"` /* 错误明细。一般情况下,会对订单侧(bss)的云硬盘订单业务相关的错误做明确的错误映射和提升,有唯一对应的errorCode。<br> 其他订单侧(bss)的错误,以Ebs.Order.ProcFailed的errorCode统一映射返回,并在errorDetail中返回订单侧的详细错误信息。 */
}
type EbsResizeEbsReturnObjResponse ¶
type EbsResizeEbsReturnObjResponse struct {
MasterOrderID *string `json:"masterOrderID,omitempty"` /* 订单ID。调用方在拿到masterOrderID之后,<br/>在若干错误情况下,可以使用masterOrderID进一步确认订单状态及资源状态。 */
MasterOrderNO *string `json:"masterOrderNO,omitempty"` /* 订单号。 */
MasterResourceID *string `json:"masterResourceID,omitempty"` /* 主资源ID。 */
MasterResourceStatus *string `json:"masterResourceStatus,omitempty"` /* 主资源状态。只有主订单资源会返回。 */
}
type EbsRollbackEbsSnapApi ¶
type EbsRollbackEbsSnapApi struct {
// contains filtered or unexported fields
}
func NewEbsRollbackEbsSnapApi ¶
func NewEbsRollbackEbsSnapApi(client *core.CtyunClient) *EbsRollbackEbsSnapApi
func (*EbsRollbackEbsSnapApi) Do ¶
func (a *EbsRollbackEbsSnapApi) Do(ctx context.Context, credential core.Credential, req *EbsRollbackEbsSnapRequest) (*EbsRollbackEbsSnapResponse, error)
type EbsRollbackEbsSnapResponse ¶
type EbsRollbackEbsSnapResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败/处理中)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsRollbackEbsSnapReturnObjResponse `json:"returnObj"` /* 返回数据结构体。 */
Details *string `json:"details,omitempty"` /* 可忽略。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsRollbackEbsSnapReturnObjResponse ¶
type EbsRollbackEbsSnapReturnObjResponse struct {
SnapshotJobID *string `json:"snapshotJobID,omitempty"` /* 异步任务ID,可通过公共接口/v4/job/info查询该jobID来查看异步任务最终执行结果。 */
}
type EbsSetDeletePolicyEbsApi ¶
type EbsSetDeletePolicyEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsSetDeletePolicyEbsApi ¶
func NewEbsSetDeletePolicyEbsApi(client *core.CtyunClient) *EbsSetDeletePolicyEbsApi
func (*EbsSetDeletePolicyEbsApi) Do ¶
func (a *EbsSetDeletePolicyEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsSetDeletePolicyEbsRequest) (*EbsSetDeletePolicyEbsResponse, error)
type EbsSetDeletePolicyEbsResponse ¶
type EbsSetDeletePolicyEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为处理中/失败,详见errorCode)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ReturnObj *EbsSetDeletePolicyEbsReturnObjResponse `json:"returnObj"` /* 返回数据信息。 */
Details *string `json:"details,omitempty"` /* 详情描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsSetDeletePolicyEbsReturnObjResponse ¶
type EbsSetDeletePolicyEbsReturnObjResponse struct {
SetDeletePolicyJobResult *string `json:"setDeletePolicyJobResult,omitempty"` /* 任务执行状态。 */
}
type EbsUpdateEbsNameApi ¶
type EbsUpdateEbsNameApi struct {
// contains filtered or unexported fields
}
func NewEbsUpdateEbsNameApi ¶
func NewEbsUpdateEbsNameApi(client *core.CtyunClient) *EbsUpdateEbsNameApi
func (*EbsUpdateEbsNameApi) Do ¶
func (a *EbsUpdateEbsNameApi) Do(ctx context.Context, credential core.Credential, req *EbsUpdateEbsNameRequest) (*EbsUpdateEbsNameResponse, error)
type EbsUpdateEbsNameRequest ¶
type EbsUpdateEbsNameResponse ¶
type EbsUpdateEbsNameResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码。请参考错误码。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码。请参考错误码。 */
}
type EbsUpdateIopsEbsApi ¶
type EbsUpdateIopsEbsApi struct {
// contains filtered or unexported fields
}
func NewEbsUpdateIopsEbsApi ¶
func NewEbsUpdateIopsEbsApi(client *core.CtyunClient) *EbsUpdateIopsEbsApi
func (*EbsUpdateIopsEbsApi) Do ¶
func (a *EbsUpdateIopsEbsApi) Do(ctx context.Context, credential core.Credential, req *EbsUpdateIopsEbsRequest) (*EbsUpdateIopsEbsResponse, error)
type EbsUpdateIopsEbsRequest ¶
type EbsUpdateIopsEbsRequest struct {
ProvisionedIops int32 `json:"provisionedIops"` /* XSSD类型云硬盘的预配置IOPS值,最小值为1,其他类型的盘不支持设置。具体取值范围如下:
●XSSD-0:(基础IOPS(min{1800+12×容量, 10000}) + 预配置IOPS) ≤ min{500×容量,100000}
●XSSD-1:(基础IOPS(min{1800+50×容量, 50000}) + 预配置IOPS) ≤ min{500×容量,100000}
●XSSD-2:(基础IOPS(min{3000+50×容量, 100000}) + 预配置IOPS) ≤ min{500×容量,1000000} */
DiskID string `json:"diskID,omitempty"` /* 云硬盘ID。 */
RegionID *string `json:"regionID,omitempty"` /* 如本地语境支持保存regionID,那么建议传递。 */
}
type EbsUpdateIopsEbsResponse ¶
type EbsUpdateIopsEbsResponse struct {
StatusCode int32 `json:"statusCode"` /* 返回状态码(800为成功,900为失败)。 */
Message *string `json:"message,omitempty"` /* 成功或失败时的描述,一般为英文描述。 */
Description *string `json:"description,omitempty"` /* 成功或失败时的描述,一般为中文描述。 */
ErrorCode *string `json:"errorCode,omitempty"` /* 业务细分码,为product.module.code三段式码.<br/>参考结果码(#通用结果码)。 */
Error *string `json:"error,omitempty"` /* 业务细分码,为product.module.code三段式大驼峰码. 请参考结果码(#通用结果码(大驼峰格式))。 */
}
Source Files
¶
- apis.go
- ebs_apply_policy_ebs_snap_api.go
- ebs_attach_ebs_api.go
- ebs_batch_rollback_ebs_snap_api.go
- ebs_cancel_policy_ebs_snap_api.go
- ebs_create_ebs_snap_api.go
- ebs_create_order_ebs_snap_api.go
- ebs_create_policy_ebs_snap_api.go
- ebs_delete_ebs_snap_api.go
- ebs_delete_policy_ebs_snap_api.go
- ebs_detach_ebs_api.go
- ebs_list_ebs_snap_api.go
- ebs_modify_policy_ebs_snap_api.go
- ebs_modify_policy_status_ebs_snap_api.go
- ebs_new_ebs_api.go
- ebs_new_from_snapshot_ebs_snap_api.go
- ebs_query_ebs_by_i_d_api.go
- ebs_query_ebs_by_name_api.go
- ebs_query_ebs_list_api.go
- ebs_query_policy_ebs_snap_api.go
- ebs_query_size_ebs_snap_api.go
- ebs_refund_ebs_api.go
- ebs_renew_ebs_api.go
- ebs_resize_ebs_api.go
- ebs_rollback_ebs_snap_api.go
- ebs_set_delete_policy_ebs_api.go
- ebs_update_ebs_name_api.go
- ebs_update_iops_ebs_api.go
Click to show internal directories.
Click to hide internal directories.