Detach PXE Server from Bare Metal Cluster

DELETE/zstack/v1/clusters/{clusterUuid}/pxeservers/{pxeServerUuid}

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/clusters/42ade7c792e43f138f8b693294ad9b4c/pxeservers/2e9c8220a3ea3dbf9f8c3cb66567ff52

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
pxeServerUuidStringurlDeployment server UUID 3.1.1
clusterUuidStringurlBare metal cluster UUID 3.1.1
systemTags (Optional)ListquerySystem Tag 3.1.1
userTags (Optional)ListqueryUser Tag 3.1.1

API Response

Response Example

{
  "inventory": {
    "uuid": "bcd0703a8bbb394fa4e819ad90297b48",
    "name": "test",
    "hostname": "127.0.0.1",
    "sshUsername": "root",
    "sshPassword": "password",
    "sshPort": 22,
    "storagePath": "/zstack_bm_cache",
    "dhcpInterface": "eth0",
    "dhcpRangeBegin": "10.0.0.1",
    "dhcpRangeEnd": "10.0.0.255",
    "dhcpRangeNetmask": "255.255.255.0",
    "state": "Enabled",
    "status": "Disconnected"
  }
}
NameTypeDescriptionStarting Version
successboolean 0.6
errorErrorCodeError code. If not null, the operation failed. When the operation is successful, this field is null. For details, see error3.1.1
inventoryBaremetalPxeServerInventoryFor details, see inventory3.1.1

error

NameTypeDescriptionStarting Version
codeStringError code number, globally unique identifier of the error, for example SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, default is null0.6
opaqueLinkedHashMapReserved field, default is null0.6
causeErrorCodeRoot cause: the source error that triggered the current error. If there is no original error, this field is null0.6

inventory

NameTypeDescriptionStarting Version
uuidStringUUID of the resource, uniquely identifying the resource3.1.1
zoneUuidStringData Center UUID3.1.1
nameStringResource name3.1.1
descriptionStringDetailed description of the resource3.1.1
hostnameStringDeployment server address3.1.1
sshUsernameStringDeployment server SSH account3.1.1
sshPasswordStringDeployment server SSH password3.1.1
sshPortIntegerDeployment server SSH port3.1.1
storagePathStringDeployment server storage path3.1.1
dhcpInterfaceStringDHCP request listening NIC3.1.1
dhcpInterfaceAddressStringDHCP request listening NIC IP address3.1.1
dhcpRangeBeginStringDHCP address range start3.1.1
dhcpRangeEndStringDHCP address range end3.1.1
dhcpRangeNetmaskStringDHCP subnet mask3.1.1
stateStringDeployment server running state3.1.1
statusStringDeployment server connection status3.1.1
createDateTimestampCreate time3.1.1
lastOpDateTimestampLast modification time3.1.1
totalCapacityLongStorage path total capacity3.1.1
availableCapacityLongStorage path available capacity3.1.1
attachedClusterUuidsListDeployment server attached cluster UUID list3.1.1

SDK Examples

Java SDK

DetachBaremetalPxeServerFromClusterAction action = new DetachBaremetalPxeServerFromClusterAction();
action.pxeServerUuid = "2e9c8220a3ea3dbf9f8c3cb66567ff52";
action.clusterUuid = "42ade7c792e43f138f8b693294ad9b4c";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
DetachBaremetalPxeServerFromClusterAction.Result res = action.call();

Python SDK

action = DetachBaremetalPxeServerFromClusterAction()
action.pxeServerUuid = "2e9c8220a3ea3dbf9f8c3cb66567ff52"
action.clusterUuid = "42ade7c792e43f138f8b693294ad9b4c"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()