iwinv IaaS(Infrastructure as a Service) API
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
  1. Block Storages
  • Introduction
  • API Request
  • API Response
  • Zones
    • Zone List
      GET
  • Flavors
    • Flavor List
      GET
    • Flavor Detail
      GET
  • Images
    • Image List
      GET
    • Image Detail
      GET
  • Instances
    • Instance List
      GET
    • Instance Detail
      GET
    • Create Instance
      POST
    • Edit Instance Info
      PUT
    • Delete Instance
      DELETE
    • Start(ON) Instance
      POST
    • Shutdown(OFF) Instance
      POST
    • Reboot Instance
      POST
    • Rebuild(Image) Instance
      POST
    • Resize(Flavor) Instance
      POST
    • Remote Console
      GET
    • User Script List
      GET
  • Block Storages
    • Block Storage Types
      GET
    • Block Storage List
      GET
    • Block Storage Detail
      GET
    • Create Block Storage
      POST
    • Delete Block Storage
      DELETE
    • Attach Block Storage
      POST
    • Detach Block Storage
      POST
  • Bill
    • Live Bill
    • Billing and Payment List
    • Billing and Payment Detail
  • Authentication
    • SSH Key List
  • Usage Example
    • Zone List
  • Firewall
    • Firewall List
    • Firewall Detail
    • Create Firewall
    • Edit Firewall
    • Delete Firewall
    • Attach Firewall
    • Detach Firewall
  1. Block Storages

Create Block Storage

POST
https://api-kr.iwinv.kr/v1/block-storages

Request

Header Params
X-iwinv-Timestamp
integer 
required
Refer to [API Request]
Example:
{{timestamp}}
X-iwinv-Credential
string 
required
Refer to [API Request]
Example:
{{accesskey}}
X-iwinv-Signature
string 
required
Refer to [API Request]
Example:
{{signature}}
Body Params multipart/form-data
instance_id
string 
required
Instance ID from [Instances]
type
enum<string> 
required
Disk Type returned from [Block Storages > Block Storage Types]
Allowed values:
ssdsata
size
integer 
required
Unit: GB
For maximum and minimum size refer to [Block Storages > Block Storage Types]
name
string 
optional
Block Storage Name
Default Value is "iwinv Block Storage"
URL encode the string when requesting
Min Length: 4, Max Length: 32(Allowed Characters: English, Korean, Numbers, Special Characters Below)
Allowed Special Characters: ! @ # $ % ^ & * - _ = + ( ) [ ] { } ; : ‘ “ , . < > / ?
description
string 
optional
Block Storage Description
Max Length: 50
URL encode the string when requesting

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-kr.iwinv.kr/v1/block-storages' \
--header 'X-iwinv-Timestamp: {{timestamp}}' \
--header 'X-iwinv-Credential: {{accesskey}}' \
--header 'X-iwinv-Signature: {{signature}}' \
--form 'instance_id=""' \
--form 'type=""' \
--form 'size=""' \
--form 'name=""' \
--form 'description=""'

Responses

🟢202Accepted
application/json
Body
code
string 
required
Status code
error_code
string 
required
Error message
message
string 
required
Status message
result
array [object {7}] 
required
Result
block_storage_id
string 
optional
Block storage ID
name
string 
optional
Block storage name
description
null 
optional
Block storage description
status
string 
optional
Block storage status
type
string 
optional
Block storage type
size
string 
optional
Block storage size(Unit: GB)
instance_id
string 
optional
Instance ID of instance attached to
count
integer 
required
Example
{
  "code": "0x00",
  "error_code": "SUCCESS",
  "message": "",
  "result": [
    {
      "block_storage_id": "BLOCK-7Y9Pd3D13qHQrM8WnoFCJu",
      "name": "iwinv Block Storage",
      "description": null,
      "status": "building",
      "type": "ssd",
      "size": "20",
      "instance_id": "INSTANCE-2IZyamjZEKllbeUSTZPsl3"
    }
  ],
  "count": 1
}
Previous
Block Storage Detail
Next
Delete Block Storage
Built with