{"_id":"572059aa5be73c17009601da","version":{"_id":"55af2569826d210d00041df1","project":"55af2569826d210d00041dee","__v":24,"createdAt":"2015-07-22T05:08:57.777Z","releaseDate":"2015-07-22T05:08:57.777Z","categories":["55af256a826d210d00041df2","55af6a25826d210d00041e6e","55af6a29555b900d0036d2b9","55b0adaaf202b12100cda284","55b1c4574311490d0092916b","55b8ab85dec1c9210013cf7e","55b8ab94dec1c9210013cf7f","55c1aafd1230af1700d78d3e","55c409f8afefb00d00727f49","55c452448b45eb0d004cfa74","55c9ab71e4927a0d0004a6dc","55d191593ea9882100ec86bc","55dd4a91bfbc6417007a1232","55ecdeafb2714d2100f227c6","565d5457d18ae50d0071845d","565d64a165242f0d00d93199","5665199cc8981f0d0039a87b","56764e49baf6721700cf18ae","57202f98a0acd42000af9679","57204c40c669e80e00c34f80","575357a54d4f120e0096b115","5754e14222cb8d1900a97659","5754e14949a0bf0e004b6f3a","5754e2a849a0bf0e004b6f3d"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"editedParams2":true,"editedParams":true,"user":"5588ba6b1163180d00b646a2","parentDoc":null,"githubsync":"","category":{"_id":"57202f98a0acd42000af9679","project":"55af2569826d210d00041dee","version":"55af2569826d210d00041df1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-27T03:18:48.402Z","from_sync":false,"order":2,"slug":"node","title":"node"},"project":"55af2569826d210d00041dee","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-27T06:18:18.870Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"code":"''","language":"text","status":200,"name":""},{"status":401,"code":"{\n  \"code\":401,\n  \"error\":\"invalid_token\",\n  \"error_description\":\"The access token provided is invalid.\"\n}","language":"json"},{"language":"json","status":401,"code":"{\n  \"code\":401,\n  \"error\":\"require_administrator_token\",\n  \"error_description\":\"Requires administrator privileges,The access token provided is invalid.\"\n}"},{"code":"{\n  \"code\":409,\n  \"error\":\"ip_not_exist\",\n  \"error_description\":\"ip not exist.\"\n}","language":"json","status":409},{"code":"{\n  \"code\":409,\n  \"error\":\"minicloud_not_running\",\n  \"error_description\":\"minicloud not running.\"\n}","language":"json","status":409},{"code":"{\n  \"code\":409,\n  \"error\":\"path_invalid\",\n  \"error_description\":\"path invalid.\"\n}","language":"json","status":409}]},"settings":"","examples":{"codes":[{"language":"curl","code":"curl -X POST \thttps://app.minicloud.io/api/v1/node/disk/create \\\n    --header \"Content-Type: application/json\" \\ \n    --data \"{\\\"token\\\":\\\"xxxxxx\\\",\\\"ip\\\":\\\"192.168.0.112\\\",\\\"port\\\":6090,\\\"path\\\":\\\"c:\\xxxx\\yyyy\\\",\\\"size\\\":0}\"","name":""}]},"auth":"never","params":[{"_id":"5720353ad9baf12900c62b38","ref":"","in":"body","required":true,"desc":"minicloud ip or host","default":"","type":"string","name":"ip"},{"_id":"5720353ad9baf12900c62b37","ref":"","in":"body","required":true,"desc":"minicloud port","default":"6090","type":"int","name":"port"},{"_id":"572059aa5be73c17009601dc","ref":"","in":"body","required":true,"desc":"disk path,support network folder","default":"","type":"string","name":"path"},{"_id":"572059aa5be73c17009601db","ref":"","in":"body","required":true,"desc":"disk size,Set no limit to 0","default":"","type":"int","name":"size"}],"url":"/node/disk/create"},"isReference":false,"order":11,"body":"","excerpt":"add disk to minicloud","slug":"node_disk_create","type":"endpoint","title":"node/disk/create"}

postnode/disk/create

add disk to minicloud

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

ip:
required
string
minicloud ip or host
port:
required
integer6090
minicloud port
path:
required
string
disk path,support network folder
size:
required
integer
disk size,Set no limit to 0

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}