最近中文字幕mv2018在线高清,伊人久久综合色,一区二区亚洲精品国产精华液,又粗又爽高潮午夜免费视频,中文字幕亚洲码在线

最新活動 新春特惠

產(chǎn)品

硅云幫助文檔中心

搜索文檔

熱門搜索詞:

創(chuàng)建實例

更新時間:2020-07-14?14:32 ?版本:v1.2
分享到: ? ?
我要反饋?
收藏 我的收藏

簡要描述:


    創(chuàng)建實例,此接口會自動從用戶余額中扣除創(chuàng)建實例所需的費用


請求url:


/ncs-server/api/v1/host/create


請求方式:


POST


請求參數(shù):


字段
類型最大長度參數(shù)位置默認(rèn)必填
描述
areaMark
string32RequestBody
地區(qū)標(biāo)識
hostProductIdstring32RequestBody
服務(wù)器規(guī)格id
hostPassstring
RequestBody
需要加密,加密規(guī)則參考通用說明,密碼規(guī)則:10到30 個字符,必須包含(大寫字母、小寫字母、數(shù)字、特殊字符),其中特殊字符為 ()`~!@#$%^&*_-+=|{}[]:;’<>,.? 中的特殊符號
imageIdstring64RequestBody
鏡像id
bootDiskdisk
RequestBody
系統(tǒng)盤信息
dataDiskListdisk數(shù)組
RequestBody選填數(shù)據(jù)盤信息
bandwidthProductIdstring32RequestBody選填帶寬id,不購買帶寬沒有公網(wǎng)ip
bandwidthSizeint10RequestBody選填當(dāng)bandwidthProductId不為空時,必填
month
int10RequestBody
購買月份數(shù),一年傳12
securityGroupId
string64RequestBody選填可以填官方安全組和自己的安全組 官方安全組有  guiyun-system-template-open-all   開放所有端口 和  guiyun-system-template-open-commonly-used  放開常用TCP端口和ICMP協(xié)議
networkNamestring32RequestBody選填vpc,默認(rèn)vpc-default,基礎(chǔ)網(wǎng)絡(luò)傳basic
idempotentstring64RequestBody選填冪等Id,防止創(chuàng)建成功但超時的情況,當(dāng)傳遞相同的idempotent時,無論調(diào)用多少次,只會創(chuàng)建成功一次



disk 結(jié)構(gòu):


字段類型描述
productIdstring磁盤規(guī)格id
diskSizeint磁盤容量


請求示例:


POST /ncs-server/api/v1/host/create HTTP/1.1
Content-Type: application/json
request_id: 2942183558593ffc9d75fb8e16793ff
api_key: 1706006863049654272
signature: 6c3d41ac0e7439898e750c337413dbe7660ba95bcfc1dc73f3eca8a4b3328735
Content-Type: application/json

{
    "areaMark": "test",
    "hostProductId": "cvm.g1.c1m1.large",
    "hostPass": "MfurT2tADq3kt5h8fUAdUQ==",
    "bootDisk": {
        "productId": "standard_cloud_disk",
        "diskSize": 20
    },
    "dataDiskList": [
        {
            "productId": "standard_cloud_disk",
            "diskSize": 20
        }
    ],
    "bandwidthProductId": "default",
    "bandwidthSize": 1,
    "imageId": "CentOS-6-x86_64-6.8",
    "month": 1,
    "securityGroupId": "guiyun-system-template-open-all",
    "idempotent": "123456"
}


返回示例:


data返回服務(wù)器實例,實際以真實返回結(jié)果為準(zhǔn)


{
    "status": 2000,
    "message": "success",
    "data": {
        "userAccount": "z8z87878",
        "productId": "cvm.g1.c1m1.large",
        "projectId": "0",
        "projectName": "默認(rèn)",
        "latestOrderId": "1712303052106235907",
        "cpuNum": 1,
        "memSize": 1024,
        "systemDiskInfo": "{\"productId\":\"standard_cloud_disk\",\"productName\":\"高效云盤\",\"diskSize\":20,\"id\":\"disk-3hiukjr2bs222\"}",
        "areaMark": "test",
        "areaName": "測試環(huán)境",
        "hostType": "g1",
        "hostTypeName": "通用型",
        "bandwidthStatus": "OPENING",
        "bandwidthProductId": "default",
        "bandwidthTypeName": "默認(rèn)",
        "bandwidth": 1,
        "imageId": "CentOS-6-x86_64-6.8",
        "imageName": "CentOS 6.8 64位",
        "imageType": "public",
        "securityGroupStatus": "setting",
        "securityGroupInfo": "guiyun-system-template-open-all",
        "beginTime": 1594706487313,
        "endTime": 1597384887313,
        "status": "OPENING",
        "remoteHostStatus": "BUILD",
        "buildStatus": "will_build_volume",
        "bindDiskCount": 2,
        "hasBoot": true,
        "supportNoReasonRefund": true,
        "refundStatus": "NONE",
        "configuration": "",
        "tempPass": "lQsNJKmqAOYFmGhoquNv1bAjo3lzqC3WMTIzNDU2X3FXMQ==lXgTjStr",
        "createTime": 1594706487316,
        "updateTime": 1594706487316,
        "id": "cvm-3hiukjr2bs225"
    }
}


實例數(shù)據(jù)結(jié)構(gòu):


字段類型
描述
idstring實例id
userAccount
string用戶名
projectId
string實例所屬項目id  0為默認(rèn)項目
projectNamestring實例項目名
systemDiskInfostringjson字符串,系統(tǒng)盤信息
status
string實例狀態(tài)
remoteHostStatusstring實例運行狀態(tài)
buildStatusint實例創(chuàng)建狀態(tài)
bandwidthStatus
string帶寬設(shè)置狀態(tài)
securityGroupStatusstring安全組設(shè)置狀態(tài)
endTimelong到期時間時間戳,精確到毫秒
createTimelong創(chuàng)建時間時間戳,精確到毫秒









您對該文檔有什么建議?

您對該文檔的評分:

本文導(dǎo)航

簡要描述:

請求url:

請求方式:

請求參數(shù):

請求示例:

返回示例:

搜索文檔