---
title: "attachBlockStorageInstance"
slug: "cli-server-attachblockstorageinstance"
tags: ["Server", "Block Storage"]
updated: 2026-09-17T10:08:35Z
published: 2026-09-17T10:08:35Z
canonical: "cli.ncloud-docs.com/cli-server-attachblockstorageinstance"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.
# attachBlockStorageInstance
## Overview
Assigning a block storage instance
## Description
This assigns a block storage instance to the server instance.
## Request Parameters
| Parameter Name | Requiredness | Type | Limitation | Description |
| --- | --- | --- | --- | --- |
| blockStorageInstanceNo | Yes | String | | Block storage instance number - This determines the block storage instance number to be assigned to the server instance. - blockStorageInstanceNo can be obtained through the getBlockStorageInstanceList action. |
| serverInstanceNo | Yes | String | | Server instance number - This determines the server instance in which a block storage will be assigned. - serverInstanceNo can be obtained through the getServerInstanceList action. |
## Response Data Type
- BlockStorageInstanceList type
| BlockStorageInstanceList extends CommonResponse |
| --- |
| private Integer totalRows; |
| private List blockStorageInstanceList = new ArrayList(); |
| BlockStorageInstance |
| --- |
| private String blockStorageInstanceNo; |
| private String serverInstanceNo; |
| private String serverName; |
| private CommonCode blockStorageType; |
| private String blockStorageName; |
| private Long blockStorageSize; |
| private String deviceName; |
| private String blockStorageProductCode; |
| private CommonCode blockStorageInstanceStatus; |
| private CommonCode blockStorageInstanceOperation; |
| private String blockStorageInstanceStatusName; |
| private Date createDate; |
| private String blockStorageInstanceDescription; |
| private CommonCode diskType; |
| private CommonCode diskDetailType; |
| private Integer maxIopsThroughput; |
| private Region region; |
| private Zone zone; |
## Examples
### Request
```
ncloud server attachBlockStorageInstance --blockStorageInstanceNo ***1004 --serverInstanceNo ***1003
```
### Response
```
{
"attachBlockStorageInstanceResponse": {
"requestId": "c8172d4a-5486-4d34-9331-dfec6a747abf",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 1,
"blockStorageInstanceList": [
{
"blockStorageInstanceNo": "***1004",
"serverInstanceNo": "***1003",
"serverName": "test-***",
"blockStorageType": {
"code": "SVRBS",
"codeName": "Server BS"
},
"blockStorageName": "test-***",
"blockStorageSize": 53687091200,
"deviceName": "",
"blockStorageProductCode": "SPBSTBSTAD000006",
"blockStorageInstanceStatus": {
"code": "CREAT",
"codeName": "Block storage CREATED state"
},
"blockStorageInstanceOperation": {
"code": "ATTAC",
"codeName": "Block Storage STOP OP"
},
"blockStorageInstanceStatusName": "attaching",
"createDate": "2018-10-22T16:19:51+0900",
"blockStorageInstanceDescription": "",
"diskType": {
"code": "NET",
"codeName": "Network Storage"
},
"diskDetailType": {
"code": "SSD",
"codeName": "SSD"
},
"maxIopsThroughput": 4000,
"region": {
"regionNo": "1",
"regionCode": "KR",
"regionName": "Korea"
},
"zone": {
"zoneNo": "3",
"zoneName": "KR-2",
"zoneCode": "KR-2",
"zoneDescription": "평촌 zone",
"regionNo": "1"
}
}
]
}
}
```
```
c8172d4a-5486-4d34-9331-dfec6a747abf
0
success
1
***1004
***1003
test-***
SVRBS
Server BS
test-***
53687091200
SPBSTBSTAD000006
CREAT
Block storage CREATED state
ATTAC
Block Storage STOP OP
attaching
2018-10-22T16:19:51+0900
NET
Network Storage
SSD
SSD
4000
1
KR
Korea
3
KR-2
KR-2
평촌 zone
1
```