Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bind ¶ added in v1.10.0
type Bind struct {
/* 云硬盘绑定的InstanceUuid (Optional) */
ResourceId string `json:"resourceId"`
}
type Data ¶ added in v1.10.0
type Data struct {
/* 云硬盘ID (Optional) */
ResourceId string `json:"resourceId"`
/* 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
ResourceName string `json:"resourceName"`
/* 云硬盘状态,取值为 creating、available、in-use、extending、restoring、deleting、deleted、error_create、error_delete、error_restore、error_extend 之一 (Optional) */
Status string `json:"status"`
/* 绑定资源列表 (Optional) */
Bind []Bind `json:"bind"`
}
type DelSnapshot ¶ added in v1.19.0
type Disk ¶
type Disk struct {
/* 云硬盘ID (Optional) */
DiskId string `json:"diskId"`
/* 云硬盘所属AZ (Optional) */
Az string `json:"az"`
/* 云硬盘名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
Name string `json:"name"`
/* 云硬盘描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
/* 云硬盘类型,取值为 ssd,premium-hdd,ssd.gp1,ssd.io1,hdd.std1 (Optional) */
DiskType string `json:"diskType"`
/* 云硬盘大小,单位为 GiB (Optional) */
DiskSizeGB int `json:"diskSizeGB"`
/* 该云硬盘实际应用的iops值 (Optional) */
Iops int `json:"iops"`
/* 该云硬盘实际应用的吞吐量的数值 (Optional) */
Throughput int `json:"throughput"`
/* 云硬盘状态,取值为 creating、available、in-use、extending、restoring、deleting、deleted、error_create、error_delete、error_restore、error_extend 之一 (Optional) */
Status string `json:"status"`
/* 挂载信息 (Optional) */
Attachments []DiskAttachment `json:"attachments"`
/* 创建该云硬盘的快照ID (Optional) */
SnapshotId string `json:"snapshotId"`
/* 云盘是否支持多挂载 (Optional) */
MultiAttachable bool `json:"multiAttachable"`
/* 云盘是否为加密盘 (Optional) */
Encrypted bool `json:"encrypted"`
/* 云盘是否被暂停(IOPS限制为极低) (Optional) */
Enabled bool `json:"enabled"`
/* 创建云硬盘时间 (Optional) */
CreateTime string `json:"createTime"`
/* 云硬盘计费配置信息 (Optional) */
Charge charge.Charge `json:"charge"`
/* Tag信息 (Optional) */
Tags []Tag `json:"tags"`
}
type DiskAttachment ¶
type DiskAttachment struct {
/* 挂载ID (Optional) */
AttachmentId string `json:"attachmentId"`
/* 云硬盘ID (Optional) */
DiskId string `json:"diskId"`
/* 挂载实例的类型,取值为 vm、nc (Optional) */
InstanceType string `json:"instanceType"`
/* 挂载实例的ID (Optional) */
InstanceId string `json:"instanceId"`
/* 挂载状态,取值为 "attaching", "attached", "detaching", "detached" (Optional) */
Status string `json:"status"`
/* 挂载时间 (Optional) */
AttachTime string `json:"attachTime"`
}
type DiskSpec ¶
type DiskSpec struct {
/* 云硬盘所属的可用区 */
Az string `json:"az"`
/* 云硬盘名称 */
Name string `json:"name"`
/* 云硬盘描述 (Optional) */
Description *string `json:"description"`
/* 云硬盘类型,取值为ssd、premium-hdd、ssd.gp1、ssd.io1、hdd.std1之一 */
DiskType string `json:"diskType"`
/* 云硬盘大小,单位为 GiB,ssd 类型取值范围[20,1000]GB,步长为10G,premium-hdd 类型取值范围[20,3000]GB,步长为10G, ssd.gp1, ssd.io1, hdd.std1 类型取值均是范围[20,16000]GB,步长为10G */
DiskSizeGB int `json:"diskSizeGB"`
/* 云硬盘IOPS的大小,当且仅当云盘类型是ssd.io1型的云盘有效,步长是10. (Optional) */
Iops *int `json:"iops"`
/* 用于创建云硬盘的快照ID (Optional) */
SnapshotId *string `json:"snapshotId"`
/* 计费配置;如不指定,默认计费类型是后付费-按使用时常付费 (Optional) */
Charge *charge.ChargeSpec `json:"charge"`
/* 云硬盘是否支持一盘多主机挂载,默认为false(不支持) (Optional) */
MultiAttachable *bool `json:"multiAttachable"`
/* 云硬盘是否加密,默认为false(不加密) (Optional) */
Encrypt *bool `json:"encrypt"`
}
type DiskSpecification ¶ added in v1.4.0
type DiskSpecification struct {
/* 云硬盘类型 (Optional) */
DiskType string `json:"diskType"`
/* 支持的最小尺寸,单位为 GiB (Optional) */
MinSizeGB int `json:"minSizeGB"`
/* 支持的最大尺寸,单位为 GiB (Optional) */
MaxSizeGB int `json:"maxSizeGB"`
/* 步长尺寸,单位为 GiB (Optional) */
StepSizeGB int `json:"stepSizeGB"`
/* 描述信息 (Optional) */
Description string `json:"description"`
/* 类型名称 (Optional) */
DiskTypeName string `json:"diskTypeName"`
/* 默认的iops数量(基础iops数量) (Optional) */
DefaultIOPS int `json:"defaultIOPS"`
/* iops步长增量 (Optional) */
StepIOPS float32 `json:"stepIOPS"`
/* 最大iops数量 (Optional) */
MaxIOPS int `json:"maxIOPS"`
/* 默认的吞吐量 (Optional) */
DefaultThroughput int `json:"defaultThroughput"`
/* 吞吐量步长增量 (Optional) */
StepThroughput float32 `json:"stepThroughput"`
/* 最大吞吐量 (Optional) */
MaxThroughput int `json:"maxThroughput"`
/* 是否开启IOPS可调整 (Optional) */
ScalableIOPS bool `json:"scalableIOPS"`
/* 最大iops步长 (Optional) */
MaxStepIOPS int `json:"maxStepIOPS"`
}
type Snapshot ¶
type Snapshot struct {
/* 云硬盘快照ID (Optional) */
SnapshotId string `json:"snapshotId"`
/* 快照来源 可以有self,others两种来源 (Optional) */
SnapshotSource string `json:"snapshotSource"`
/* 创建快照的云硬盘ID(snapshotSource为others时不展示) (Optional) */
DiskId string `json:"diskId"`
/* 快照大小,单位为GiB (Optional) */
SnapshotSizeGB int `json:"snapshotSizeGB"`
/* 快照关联的所有镜像ID(snapshotSource为others时不展示) (Optional) */
Images []string `json:"images"`
/* 快照名称 (Optional) */
Name string `json:"name"`
/* 快照描述 (Optional) */
Description string `json:"description"`
/* 快照状态,取值为 creating、available、in-use、deleting、error_create、error_delete 之一 (Optional) */
Status string `json:"status"`
/* 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* 共享信息 (Optional) */
SharInfo []ShareInfo `json:"sharInfo"`
/* 快照是否为加密盘的快照 (Optional) */
Encrypted bool `json:"encrypted"`
}
type SnapshotSpec ¶
Click to show internal directories.
Click to hide internal directories.