CreateBaremetalPxeServer
CreateBaremetalPxeServer
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe name of the deployment server.
descriptionStringOptional. The detailed description of the deployment server.
dhcpInterfaceStringRequiredThe DHCP NIC of the deployment server.
dhcpRangeBeginStringOptional. The starting IP address that DHCP assigns to a bare metal instance.
dhcpRangeEndStringOptional. The ending IP address that DHCP assigns to a bare metal instance.
dhcpRangeNetmaskStringOptional. The netmask of the IP range from which the DHCP server assigns an IP address to a bare metal instance.
zoneUuidStringRequiredThe zone UUID.
hostnameStringRequiredNo description provided.
sshUsernameStringRequiredSSH用户名。
sshPasswordStringRequiredSSH密码。
sshPortIntegerOptional.
storagePathStringRequired存储路径。
resourceUuidStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/baremetal/pxeservers
/zstack/v1/baremetal/pxeservers
Request Example
curl -X POST 'http://{host}/zstack/v1/baremetal/pxeservers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","dhcpInterface":"<dhcpInterface>","dhcpRangeBegin":"<dhcpRangeBegin>","dhcpRangeEnd":"<dhcpRangeEnd>","dhcpRangeNetmask":"<dhcpRangeNetmask>","zoneUuid":"<zoneUuid>","hostname":"<hostname>","sshUsername":"<sshUsername>","sshPassword":"<sshPassword>","sshPort":1,"storagePath":"<storagePath>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "e958961c7785304691d49ec5ac7df64d", "name": "test", "hostname": "127.0.0.1", "sshUsername": "root", "sshPassword": "password", "sshPort": 22.0, "storagePath": "/zstack_bm_cache", "dhcpInterface": "eth0", "dhcpRangeBegin": "10.0.0.1", "dhcpRangeEnd": "10.0.0.255", "dhcpRangeNetmask": "255.255.255.0", "state": "Enabled", "status": "Connecting" } }Change History
This API has no change history records yet.
