changeBlockStorageVolumeSize

Prev Next

Available in VPC

Change the volume size of block storage. For block storage that is assigned to a server, changes can only be made while the server instance is stopped.

Note

KVM-based block storage is not supported.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET | POST /vserver/v2/changeBlockStorageVolumeSize
Note

This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.

Request headers

For information about the headers common to all Server APIs, see Server request headers.

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
regionCode String Optional Region code
blockStorageInstanceNo String Required Block storage instance number
blockStorageSize Integer Required Block storage size (GB)
  • 10-2000
  • Enter in 10 GB increments.
  • Can only be changed beyond the existing size.
  • Changes take effect after the server expands the file storage size.
  • See Change storage size.
responseFormatType String Optional Format of the response data
  • xml (default) | json

Request example

The request example is as follows:

curl --location --request GET 'https://ncloud.apigw.ntruss.com/vserver/v2/changeBlockStorageVolumeSize
?regionCode=KR
&blockStorageInstanceNo=*****7212
&blockStorageSize=30
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
changeBlockStorageVolumeSizeResponse Object - Response result
changeBlockStorageVolumeSizeResponse.requestId String - ID for the request
  • UUID format
changeBlockStorageVolumeSizeResponse.returnCode String - Response code
changeBlockStorageVolumeSizeResponse.returnMessage String - Response message

Response status codes

For information about the response status codes common to all Server APIs, see Server response status codes.

Response example

The response example is as follows:

{
    "changeBlockStorageVolumeSizeResponse": {
        "totalRows": 1,
        "blockStorageInstanceList": [
            {
                "blockStorageInstanceNo": "*****7212",
                "serverInstanceNo": "*****6535",
                "blockStorageName": "test-***",
                "blockStorageType": {
                    "code": "SVRBS",
                    "codeName": "Server BS"
                },
                "blockStorageSize": 32212254720,
                "deviceName": "/dev/xvdb",
                "blockStorageProductCode": "SPBSTBSTAD000006",
                "blockStorageInstanceStatus": {
                    "code": "ATTAC",
                    "codeName": "Block storage ATTACHED status"
                },
                "blockStorageInstanceOperation": {
                    "code": "CHNG",
                    "codeName": "Block storage RESIZE OP"
                },
                "blockStorageInstanceStatusName": "changingSpec",
                "createDate": "2025-07-04T09:16:43+0900",
                "blockStorageDiskType": {
                    "code": "NET",
                    "codeName": "Network storage"
                },
                "blockStorageDiskDetailType": {
                    "code": "SSD",
                    "codeName": "SSD"
                },
                "maxIopsThroughput": 4000,
                "isEncryptedVolume": false,
                "zoneCode": "KR-1",
                "regionCode": "KR",
                "isReturnProtection": false,
                "blockStorageVolumeType": {
                    "code": "SSD",
                    "codeName": "SSD"
                },
                "hypervisorType": {
                    "code": "XEN",
                    "codeName": "XEN"
                }
            }
        ],
        "requestId": "4308daf4-6e20-46bc-a373-10dcb408f42b",
        "returnCode": "0",
        "returnMessage": "success"
    }
}