Reconnect PXE Server

PUT/zstack/v1/baremetal/pxeservers/{uuid}/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "reconnectBaremetalPxeServer": {},
  "systemTags": [],
  "userTags": []
}

In the example above, systemTags and userTags fields can be omitted. They are listed to indicate that these fields can be included in the body.

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"reconnectBaremetalPxeServer":{}}' \
http://localhost:8080/zstack/v1/baremetal/pxeservers/65273a162ba83a4d99abc6ede60e6eeb/actions

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the resource, uniquely identifying the resource 3.1.1
systemTags (Optional)ListbodySystem Tag 3.1.1
userTags (Optional)ListbodyUser Tag 3.1.1

API Response

Response Example

{
  "inventory": {
    "uuid": "95c83db8181c31ea84f2ed95b3800501",
    "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": "Connected"
  }
}
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

ReconnectBaremetalPxeServerAction action = new ReconnectBaremetalPxeServerAction();
action.uuid = "65273a162ba83a4d99abc6ede60e6eeb";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
ReconnectBaremetalPxeServerAction.Result res = action.call();

Python SDK

action = ReconnectBaremetalPxeServerAction()
action.uuid = "65273a162ba83a4d99abc6ede60e6eeb"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()