仮想マシングループの共有設定をします。
PUT /api/1.0/vmgroup/{vmgroupId}/share
※ vmgroupId :共有設定をしたい仮想マシングループのID
Request parameters |
Name |
Description |
Type |
Data type |
Required |
Authorization |
Bearer [APIキー] |
header |
string |
True |
shares |
設定する共有情報 |
body |
array |
True |
body parameters |
Name |
Description |
Example |
Data type |
Required |
shares |
共有情報配列 |
|
array |
True |
share |
共有情報 |
|
object |
|
shareUserId |
共有ユーザID |
d92825b96a964bc5a4641b022e2b5e48 |
string |
True |
Successful Response |
Response Code |
200 OK |
Response Headers |
Content-type: application/json |
Response parameters |
Name |
Description |
Example |
Data type |
vmgroupId |
仮想マシングループID |
2973fgh4vbcccccccaafascccda5873d |
string |
実行例) 仮想マシングループに2ユーザ共有設定する場合
|
# Execute request
curl -i -X PUT -H "Authorization:$token" -H "Content-Type:application/json" ¥
-d '{
"shares": [
{
"shareUserId": "8302910d334a4754b24fc4e5a59dfcfc"
},
{
"shareUserId": "d92825b96a964bc5a4641b022e2b5e48"
}
]
}' ¥
'https://eastapi.aspire.gcf.whitecloud.jp/api/1.0/vmgroup/2973fgh4vb…c…da5873d/share'
|
レスポンス例
|
{"vmgroupId":"2973fgh4vbn74e39a57b59d95da5873d"}
|