Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Voulme]APICreateDataVolumeMsg #97

Open
xuexuemiao opened this issue Dec 26, 2016 · 0 comments
Open

[Voulme]APICreateDataVolumeMsg #97

xuexuemiao opened this issue Dec 26, 2016 · 0 comments
Assignees

Comments

@xuexuemiao
Copy link

描述

创建数据云盘。在第一次挂载之前不会被实例化。

API

org.zstack.header.volume.APICreateDataVolumeMsg

举例(Example)

可以使用CreateDataVolume来创建一个数据云盘. 例如:

CreateDataVolume diskOfferingUuid=f995b4e3593c45fabeabd92185d33f91 name=volume-name 

返回结果:

{
    "inventory": {
        "actualSize": 0,
        "createDate": "Dec 26, 2016 1:47:42 PM",
        "diskOfferingUuid": "f995b4e3593c45fabeabd92185d33f91",
        "isShareable": false,
        "lastOpDate": "Dec 26, 2016 1:47:42 PM",
        "name": "volume-name",
        "size": 2199023255552,
        "state": "Enabled",
        "status": "NotInstantiated",
        "type": "Data",
        "uuid": "7bcd722820d84bdd9536bae82a21be8c"
    },
    "success": true
}

可以使用CreateDataVolume,以及相应的systemTag来创建一个共享数据云盘. 例如:

CreateDataVolume diskOfferingUuid=f995b4e3593c45fabeabd92185d33f91 name=volume-name systemTags=ephemeral::shareable,capability::virtio-scsi

返回结果:

{
    "inventory": {
        "actualSize": 0,
        "createDate": "Dec 26, 2016 1:47:42 PM",
        "diskOfferingUuid": "f995b4e3593c45fabeabd92185d33f91",
        "isShareable": false,
        "lastOpDate": "Dec 26, 2016 1:47:42 PM",
        "name": "volume-name",
        "size": 2199023255552,
        "state": "Enabled",
        "status": "NotInstantiated",
        "type": "Data",
        "uuid": "7bcd722820d84bdd9536bae82a21be8c"
    },
    "success": true
}

参数(Parameters)

名字 描述 可选的参数 起始支持版本
name
uuid
name
description
primaryStorageUuid
vmInstanceUuid
diskOfferingUuid
rootImageUuid
installPath
type
status
size
actualSize
deviceId
format
state
createDate
lastOpDate
isShareable

备注

Feature_link

@xuexuemiao xuexuemiao self-assigned this Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant