Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc5f0c5b

Browse files
authored
MC-9263: API doc for ACS volume resize (#603)
* MC-9263: API doc for ACS volume resize* update disk to volume
1 parentc99256c commitc5f0c5b

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

‎source/includes/cloudstack/_volumes.md‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,71 @@ Optional |  
234234
------ | -----------
235235
`name`<br/>*string* | A***unique name*** to be given to the newly created**snapshot**. If this parameter is not provided then by default the concatenation of the*instance name*,*volume name* and the*current timestamp* is used. <br/><br/>*Eg:*<br/>&nbsp;&nbsp;&nbsp;&nbsp;*[instance.name]\_[volume.name]\_[timestamp]*<br/>&nbsp;&nbsp;&nbsp;&nbsp;***i-root-6E7_RapidVol_20190117153537***
236236
`rapid`<br/>*boolean* | Indicates the***location*** as to where the snapshot is supposed to be made. <br/><br/>Setting this to**true** will ensure that the snapshot is created in the same primary storage as where the volume is. If**false**, then the snapshot is created in a secondary storage. <br/><br/>*Note: Rapid snapshots enable much faster volume and template creation than from regular snapshots, but at a higher expense. Not all volumes support the***rapid***snapshot option.*
237+
238+
####Resize volumes
239+
240+
***To resize a data volume:***
241+
```shell
242+
243+
curl --request POST \
244+
--url'https://cloudmc_endpoint/api/v2/services/cloudstack-aaaa/acs-env-1/volumes/ed30cd74-3e83-473c-9fe3-6b1cb1652f85?operation=resize' \
245+
--header'Content-Type: application/json' \
246+
--header'mc-api-key: your_api_key' \
247+
--data'request-body'
248+
```
249+
>Request body example:
250+
251+
```json
252+
{
253+
"sizeInGb":12,
254+
"diskOfferingId":"fd78763c-f33a-43f3-b1e3-63bf59a48350"
255+
}
256+
```
257+
258+
>The above command returns a JSON structured like this:
259+
260+
```json
261+
{
262+
"taskId":"32ea1825-8291-4730-8d06-cee5f7e969f8",
263+
"taskStatus":"PENDING"
264+
}
265+
```
266+
267+
<code>POST /services/<ahref="#administration-service-connections">:service_code</a>/<ahref="#administration-environments">:environment_name</a>/volumes/:id?operation=resize</code>
268+
269+
Required |&nbsp;
270+
------- | -----------
271+
sizeInGb<br/>*int* | Size to which you want to resize the data volume to
272+
diskOfferingId<br/>*UUID* | The[disk offering](#cloudstack-disk-offerings) associated with the volume
273+
274+
***To resize a root volume:***
275+
276+
```shell
277+
curl --request POST \
278+
--url'https://cloudmc_endpoint/api/v2/services/cloudstack-aaaa/acs-env-1/volumes/68b7b465-652e-4f8d-958e-a712427a69a5?operation=resize' \
279+
--header'Content-Type: application/json' \
280+
--header'mc-api-key: your_api_key' \
281+
--data'request-body'
282+
```
283+
>Request body example:
284+
285+
```json
286+
{
287+
"sizeInGb":40,
288+
}
289+
```
290+
291+
>The above command returns a JSON structured like this:
292+
293+
```json
294+
{
295+
"taskId":"68b7b465-652e-4f8d-958e-a712427a69a5",
296+
"taskStatus":"PENDING"
297+
}
298+
```
299+
300+
<code>POST /services/<ahref="#administration-service-connections">:service_code</a>/<ahref="#administration-environments">:environment_name</a>/volumes/:id?operation=resize</code>
301+
302+
Required |&nbsp;
303+
------- | -----------
304+
sizeInGb<br/>*int* | Size to which you want to resize the root volume to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp