Available in VPC
Edit the box infrastructure. This is an infrastructure change that takes some time, so it will be processed asynchronously.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v1/box/change-box-infra |
Request headers
For information about the headers common to all Datafence APIs, see Datafence request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
fenceId |
Integer | Required | Datafence number
|
updateBoxInfo |
Object | Required | Box modification information |
updateBoxInfo.boxId |
Integer | Required | Box number
|
updateBoxInfo.description |
String | Optional | Box description |
updateBoxInfo.connectServerList |
Array | Optional | Connect server list
|
updateBoxInfo.linuxServerList |
Array | Optional | Linux server list
|
updateBoxInfo.windowsServerList |
Array | Optional | Windows Server list
|
updateBoxInfo.boxNasList |
Array | Optional | NAS list
|
updateBoxInfo.hadoopList |
Array | Optional | Hadoop cluster list
|
updateBoxInfo.tensorFlowCpuServerList |
Array | Optional | TensorFlow CPU server list
|
updateBoxInfo.tensorFlowGpuServerList |
Array | Optional | TensorFlow GPU server list
|
connectServerList
The following describes connectServerList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
serverInstanceNo |
String | Conditional | Connect server instance number
|
blockStorageInstanceNo |
String | Conditional | Connect server block storage instance number
|
specCode |
String | Conditional | Connect server spec code
|
storageSize |
Integer | Conditional | Connect server block storage size (GB)
|
userPassword1 |
String | Conditional | Connect server ncp1 account password
|
userPassword2 |
String | Conditional | Connect server ncp2 account password
|
linuxServerList
The following describes linuxServerList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
serverInstanceNo |
String | Conditional | Linux server instance number
|
blockStorageInstanceNo |
String | Conditional | Linux server block storage instance number
|
specCode |
String | Conditional | Linux server spec code
|
softwareCode |
String | Conditional | Linux server software code
|
storageSize |
Integer | Conditional | Linux server block storage size (GB)
|
userPassword |
String | Conditional | Linux server account password
|
windowsServerList
The following describes windowsServerList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
serverInstanceNo |
String | Conditional | Windows server instance number
|
blockStorageInstanceNo |
String | Conditional | Windows server block storage instance number
|
specCode |
String | Conditional | Windows server spec code
|
softwareCode |
String | Conditional | Windows server software code
|
storageSize |
Integer | Conditional | Windows server block storage size (GB)
|
userPassword |
String | Conditional | Windows server account password
|
boxNasList
The following describes boxNasList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
nasInstanceNo |
String | Conditional | NAS instance number
|
nasSize |
Integer | Conditional | NAS volume size (GB)
|
count |
Integer | Conditional | NAS count
|
hadoopList
The following describes hadoopList
.
When changing the hardware specifications or the number of worker (data) nodes in a Hadoop cluster, you must enter both the existing cluster information and the information to be changed. For more information, see the comments in Request example.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
hadoopClusterNo |
String | Conditional | Hadoop cluster number
|
edgeNodeSpecCode |
String | Conditional | Edge node spec code
|
masterNodeSpecCode |
String | Conditional | Master node spec code
|
masterNodeStorageSize |
Integer | Conditional | Master node block storage size (GB)
|
workerNodeSpecCode |
String | Conditional | Worker node spec code
|
workerNodeStorageSize |
Integer | Conditional | Worker node block storage size (GB)
|
workerNodeCount |
Integer | Conditional | Worker node count
|
userPassword |
String | Conditional | Hadoop cluster account password
|
tensorFlowCpuServerList
The following describes tensorFlowCpuServerList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
serverInstanceNo |
String | Conditional | TensorFlow CPU server instance number
|
blockStorageInstanceNo |
String | Conditional | TensorFlow CPU server block storage instance number
|
specCode |
String | Conditional | TensorFlow CPU server spec code
|
softwareCode |
String | Conditional | TensorFlow CPU server software code
|
storageSize |
Integer | Conditional | TensorFlow CPU server block storage size (GB)
|
userPassword |
String | Conditional | TensorFlow CPU server account password
|
tensorFlowGpuServerList
The following describes tensorFlowGpuServerList
.
Field | Type | Required | Description |
---|---|---|---|
actionType |
String | Required | Processing type
|
serverInstanceNo |
String | Conditional | TensorFlow GPU server instance number
|
blockStorageInstanceNo |
String | Conditional | TensorFlow GPU server block storage instance number
|
specCode |
String | Conditional | TensorFlow GPU server spec code
|
softwareCode |
String | Conditional | TensorFlow GPU server software code
|
storageSize |
Integer | Conditional | TensorFlow GPU server block storage size (GB)
|
userPassword |
String | Conditional | TensorFlow GPU server account password
|
Request example
The request example is as follows:
curl --location --request POST 'https://datafence.apigw.ntruss.com/api/v1/box/change-box-infra' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--data '{
"fenceId": 1,
"boxId": 1,
"connectServerList": [
{
"actionType": "UPDATE",
"serverInstanceNo": *********,
"specCode": "SVR.VSVR.STAND.C004.M016.NET.SSD.B100.G002",
"storageSize": 500
}
],
"hadoopList": [
{
"actionType": "UPDATE",
"hadoopClusterNo": *********,
"edgeNodeSpecCode": "SVR.VCHDP.EDGND.HICPU.C008.M016.NET.HDD.B050.G002", // Enter the spec code to change to.
"masterNodeSpecCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002", // Enter the existing spec code.
"dataNodeSpecCode": "SVR.VCHDP.MSTDT.STAND.C004.M016.NET.HDD.B050.G002", // Enter the existing spec code.
"dataNodeCount": 2 // Enter the existing count.
}
]
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
message |
String | - | API processing result message |
Response status codes
For information about the HTTP status codes common to all Datafence APIs, see Datafence API response status codes.
Response example
The response example is as follows:
{
"message": "Box modification requested."
}