Resource Center/Elastic Bare Metal Management(Plus)
POSTElastic Bare Metal Management(Plus)Since 4.0.0SynchronousAuth Required
AddBareMetal2Gateway
AddBareMetal2Gateway
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.
usernameStringRequiredThe username of the gateway.
passwordStringRequiredThe password of the gateway.
sshPortintOptional. The SSH port of the gateway.
nameStringRequiredThe name of the gateway.
descriptionStringOptional. The detailed description of the gateway.
managementIpStringRequiredThe IP address of the management node.
clusterUuidStringRequiredThe cluster UUID.
resourceUuidStringOptional. The UUID of the gateway.
tagUuidsListOptional. The tag UUIDs.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/baremetal2/gateways
/zstack/v1/baremetal2/gateways
Request Example
curl -X POST 'http://{host}/zstack/v1/baremetal2/gateways' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"username":"<username>","password":"<password>","sshPort":1,"name":"<name>","description":"<description>","managementIp":"<managementIp>","clusterUuid":"<clusterUuid>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "zoneUuid": "24b761ab09f7349684387fdf822aaee7", "name": "example", "uuid": "f893fe1c941939738a0ec271880d8e53", "clusterUuid": "4191157f33ab34d0a55b8e30444a1367", "description": "example", "managementIp": "192.168.0.1", "hypervisorType": "KVM", "state": "Enabled", "status": "Connected", "totalCpuCapacity": 4.0, "availableCpuCapacity": 2.0, "totalMemoryCapacity": 4.0, "availableMemoryCapacity": 4.0 } }Change History
This API has no change history records yet.
