iwinv IaaS(Infrastructure as a Service) API
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
HomeMain PageConsoleDocsError CodeFieldsAPI TEST
  1. Instances
  • 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. Instances

Rebuild(Image) Instance

POST
https://api-kr.iwinv.kr/v1/instances/{instance_id}/rebuild
It may take some time.

Request

Path Params
instance_id
string 
required
Instance ID of instance
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
image_id
string 
optional
image_id from [Images]

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/instances//rebuild' \
--header 'X-iwinv-Timestamp: {{timestamp}}' \
--header 'X-iwinv-Credential: {{accesskey}}' \
--header 'X-iwinv-Signature: {{signature}}' \
--form 'image_id="";type=false'

Responses

🟢202Accepted
application/json
Body
code
string 
required
Status code
error_code
string 
required
Error message
message
string 
required
Status message
result
array [object {13}] 
required
instance_id
string 
optional
Instance ID
name
string 
optional
Instance Name
description
null 
optional
Description
status
string 
optional
Status
provide
string 
optional
Providing type
start_date
string 
optional
Instance create datetime
stop_date
null 
optional
Instance delete datetime
default_account
object 
optional
Default account
zone
object 
optional
Zone info
flavor
object 
optional
Flavor info
image
object 
optional
Image info
monitoring
object 
optional
Monitoring info
connection_limit
object 
optional
Connection Limit
count
integer 
required
Example
{
  "code": "0x00",
  "error_code": "SUCCESS",
  "message": "",
  "result": [
    {
      "instance_id": "INSTANCE-2IZyamjZEKllbeUSTZPsl3",
      "name": "iwinv 서버",
      "description": null,
      "status": "work",
      "provide": "shared",
      "start_date": "2024-11-19 16:37:50",
      "stop_date": null,
      "default_account": {
        "username": "root",
        "password": "********"
      },
      "zone": {
        "zone_id": "kr2-z01",
        "name": "KR2-Z01 API Beta"
      },
      "flavor": {
        "flavor_id": "vgna_1_n",
        "name": "vgna_1_n",
        "type": "GENERAL",
        "vcpu": 1,
        "memory": 1024,
        "disk": 25,
        "network": 2.5,
        "gpu": null
      },
      "image": {
        "image_id": "PIMAGE-1Pos3S8VaJXq3wgC8c4BMi",
        "visibility": "public",
        "os": {
          "type": "OS",
          "name": "Rocky Linux release 9.0 (Blue Onyx)",
          "status": "available",
          "content": [
            "[NEW]*EOL 2032 05.31",
            "Kernel : 5.14.0-362.18.1.el9_3.x86_64Used Disk Size : 1.9 G IPTABLE 미적용[ 상세 정보 확인 ]",
            "[ 주의 사항 ]iproute, dhclient, initscripts 패키지 삭제 금지"
          ],
          "os_type": "ROCKYLINUX",
          "version": "9.X",
          "oid": "0e46f055-b19b-4ae2-bcdb-ca34f79058f4"
        },
        "image_type": "os_linux",
        "zone": [
          "kr2-z01"
        ]
      },
      "monitoring": {
        "port": "OFF",
        "resource": "OFF"
      },
      "connection_limit": {
        "block_storage": 3,
        "ip": 3
      }
    }
  ],
  "count": 1
}
Previous
Reboot Instance
Next
Resize(Flavor) Instance
Built with