diff --git a/v1/api/swagger/paths/hosts@{hostId}@reimage.yaml b/v1/api/swagger/paths/hosts@{hostId}@reimage.yaml index 89cae440..5c88b62e 100644 --- a/v1/api/swagger/paths/hosts@{hostId}@reimage.yaml +++ b/v1/api/swagger/paths/hosts@{hostId}@reimage.yaml @@ -5,6 +5,7 @@ post: summary: Reimage Host by ID description: >- Re-deploys a host to the same machine. + WARNING -- all drives will be erased! Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state. operationId: reimage diff --git a/v1/api/swagger/paths/hosts@{hostId}@replace.yaml b/v1/api/swagger/paths/hosts@{hostId}@replace.yaml index 376e59e4..bc87481e 100644 --- a/v1/api/swagger/paths/hosts@{hostId}@replace.yaml +++ b/v1/api/swagger/paths/hosts@{hostId}@replace.yaml @@ -5,6 +5,7 @@ post: summary: Replace Host by ID description: >- Re-deploys a host with a new machine that satisfies the current host settings. + WARNING -- all drives will be erased! Only the machine is replaced, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state or in the Failed state and in the Replace or Maintenace workflow. diff --git a/v1/html/index.html b/v1/html/index.html index 6e4ec630..0c46e772 100644 --- a/v1/html/index.html +++ b/v1/html/index.html @@ -2586,7 +2586,7 @@
{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of Host",
- "ServiceID": "20dd558b-b106-40bc-a8e7-d364ec5db710",
- "ServiceFlavor": "ubuntu",
- "ServiceVersion": "18.04-20190807",
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "MachineSizeName": "HPE Large",
- "MachineSizeID": "6e87f64f-b099-4286-9101-bee60a1afa2e",
- "MachineID": "d96dbf89-2a07-42f9-817d-2d6c42351827",
- "SSHKeyIDs": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "SSHAuthorizedKeys": [
- "'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxv1C5uOeG9BBjfQbum9GupGthTFcifS4FNYxZ2ZakN9UcpD05L2lKp4OI6mfCfciOhJ9SHduZWJFM0pYfC99hIsPAHhEwWOjh3/rHKxB/U4RYN4VFWM+ShDv92+k0Hse73HhuiHKVtmRj/fltAeCFm/mPlL+McMYFhFYMIK8b/spKpXxdEBCSowHPGIn3yi0ivPWhC4wcIa9jDIela/a0t/oDnYTeIp2WMLDbpZyQsGHmKopAAvb+83JhwytQMVTI/g5pMerbqPyxKtWaWDVDtpQ7O8G877T5U3kkl4jLLOJywxrvLrfHh1UNdNvPmvRFd+ct9Q5ugj5CIMJHqWTj Joe@Laptop.local'\n"
], - "NetworkIDs": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "91eec8b5-6460-4532-aad1-47b983edb63c"
], - "NetworkForDefaultRoute": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "NetworkUntagged": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "PreAllocatedIPs": [
- "string"
], - "ServiceNetsProviderMAC": {
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91": "a2:c8:93:15:2a:76"
}, - "UserData": "string",
- "NodeID": "Node21",
- "ISCSIConfig": {
- "InitiatorName": "string",
- "CHAPSecret": "string",
- "CHAPUser": "string",
- "ISCSIDiscoveryAddress": "string"
}, - "Connections": [
- {
- "Name": "Default",
- "Ports": [
- {
- "Name": "lan5",
- "HWAddr": "5c:b9:01:95:64:a0"
}
], - "HA": true,
- "Speed": "1Gb",
- "Networks": [
- {
- "Name": "HostConn1",
- "NetworkID": "59047804-7c6d-4fea-bf89-08c54543dccc",
- "IP": "10.5.3.4",
- "Subnet": "10.5.3.0",
- "Netmask": "/24",
- "Gateway": "10.5.3.1",
- "DNS": [
- "8.8.8.8"
], - "VLAN": 0,
- "VNI": 0,
- "Untagged": true,
- "Proxy": "http://proxy.firewall.com:8080/ or http://user:password@proxy.firewall.com:8080",
- "NoProxy": "localhost,15.10.0.10,test.com"
}
]
}
], - "Deleted": true,
- "PortalCommOkay": true,
- "PowerStatus": "ON",
- "State": "Ready",
- "Substate": "Complete",
- "StateTime": "2019-08-24T14:15:22Z",
- "SubstateTime": "2019-08-24T14:15:22Z",
- "Progress": 100,
- "Alert": true,
- "AlertInfo": [
- {
- "Alert": "op-failed",
- "State": "Ready",
- "Substate": "Complete",
- "Message": "Operation XXX completed as failed with status: YYY",
- "Time": "2019-08-24T14:15:22Z",
- "Ack": true
}
], - "Workflow": "string",
- "SummaryStatus": "OK",
- "Labels": {
- "serviceType": "BMaaS"
}
}
{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of Host",
- "ServiceID": "20dd558b-b106-40bc-a8e7-d364ec5db710",
- "ServiceFlavor": "ubuntu",
- "ServiceVersion": "18.04-20190807",
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "MachineSizeName": "HPE Large",
- "MachineSizeID": "6e87f64f-b099-4286-9101-bee60a1afa2e",
- "MachineID": "d96dbf89-2a07-42f9-817d-2d6c42351827",
- "SSHKeyIDs": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "SSHAuthorizedKeys": [
- "'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxv1C5uOeG9BBjfQbum9GupGthTFcifS4FNYxZ2ZakN9UcpD05L2lKp4OI6mfCfciOhJ9SHduZWJFM0pYfC99hIsPAHhEwWOjh3/rHKxB/U4RYN4VFWM+ShDv92+k0Hse73HhuiHKVtmRj/fltAeCFm/mPlL+McMYFhFYMIK8b/spKpXxdEBCSowHPGIn3yi0ivPWhC4wcIa9jDIela/a0t/oDnYTeIp2WMLDbpZyQsGHmKopAAvb+83JhwytQMVTI/g5pMerbqPyxKtWaWDVDtpQ7O8G877T5U3kkl4jLLOJywxrvLrfHh1UNdNvPmvRFd+ct9Q5ugj5CIMJHqWTj Joe@Laptop.local'\n"
], - "NetworkIDs": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "91eec8b5-6460-4532-aad1-47b983edb63c"
], - "NetworkForDefaultRoute": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "NetworkUntagged": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "PreAllocatedIPs": [
- "string"
], - "ServiceNetsProviderMAC": {
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91": "a2:c8:93:15:2a:76"
}, - "UserData": "string",
- "NodeID": "Node21",
- "ISCSIConfig": {
- "InitiatorName": "string",
- "CHAPSecret": "string",
- "CHAPUser": "string",
- "ISCSIDiscoveryAddress": "string"
}, - "Connections": [
- {
- "Name": "Default",
- "Ports": [
- {
- "Name": "lan5",
- "HWAddr": "5c:b9:01:95:64:a0"
}
], - "HA": true,
- "Speed": "1Gb",
- "Networks": [
- {
- "Name": "HostConn1",
- "NetworkID": "59047804-7c6d-4fea-bf89-08c54543dccc",
- "IP": "10.5.3.4",
- "Subnet": "10.5.3.0",
- "Netmask": "/24",
- "Gateway": "10.5.3.1",
- "DNS": [
- "8.8.8.8"
], - "VLAN": 0,
- "VNI": 0,
- "Untagged": true,
- "Proxy": "http://proxy.firewall.com:8080/ or http://user:password@proxy.firewall.com:8080",
- "NoProxy": "localhost,15.10.0.10,test.com"
}
]
}
], - "Deleted": true,
- "PortalCommOkay": true,
- "PowerStatus": "ON",
- "State": "Ready",
- "Substate": "Complete",
- "StateTime": "2019-08-24T14:15:22Z",
- "SubstateTime": "2019-08-24T14:15:22Z",
- "Progress": 100,
- "Alert": true,
- "AlertInfo": [
- {
- "Alert": "op-failed",
- "State": "Ready",
- "Substate": "Complete",
- "Message": "Operation XXX completed as failed with status: YYY",
- "Time": "2019-08-24T14:15:22Z",
- "Ack": true
}
], - "Workflow": "string",
- "SummaryStatus": "OK",
- "Labels": {
- "serviceType": "BMaaS"
}
}
Re-deploys a host to the same machine. WARNING -- all drives will be erased! Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state.
hostId required | string ID of Host to reimage |
{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of Host",
- "ServiceID": "20dd558b-b106-40bc-a8e7-d364ec5db710",
- "ServiceFlavor": "ubuntu",
- "ServiceVersion": "18.04-20190807",
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "MachineSizeName": "HPE Large",
- "MachineSizeID": "6e87f64f-b099-4286-9101-bee60a1afa2e",
- "MachineID": "d96dbf89-2a07-42f9-817d-2d6c42351827",
- "SSHKeyIDs": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "SSHAuthorizedKeys": [
- "'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxv1C5uOeG9BBjfQbum9GupGthTFcifS4FNYxZ2ZakN9UcpD05L2lKp4OI6mfCfciOhJ9SHduZWJFM0pYfC99hIsPAHhEwWOjh3/rHKxB/U4RYN4VFWM+ShDv92+k0Hse73HhuiHKVtmRj/fltAeCFm/mPlL+McMYFhFYMIK8b/spKpXxdEBCSowHPGIn3yi0ivPWhC4wcIa9jDIela/a0t/oDnYTeIp2WMLDbpZyQsGHmKopAAvb+83JhwytQMVTI/g5pMerbqPyxKtWaWDVDtpQ7O8G877T5U3kkl4jLLOJywxrvLrfHh1UNdNvPmvRFd+ct9Q5ugj5CIMJHqWTj Joe@Laptop.local'\n"
], - "NetworkIDs": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "91eec8b5-6460-4532-aad1-47b983edb63c"
], - "NetworkForDefaultRoute": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "NetworkUntagged": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "PreAllocatedIPs": [
- "string"
], - "ServiceNetsProviderMAC": {
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91": "a2:c8:93:15:2a:76"
}, - "UserData": "string",
- "NodeID": "Node21",
- "ISCSIConfig": {
- "InitiatorName": "string",
- "CHAPSecret": "string",
- "CHAPUser": "string",
- "ISCSIDiscoveryAddress": "string"
}, - "Connections": [
- {
- "Name": "Default",
- "Ports": [
- {
- "Name": "lan5",
- "HWAddr": "5c:b9:01:95:64:a0"
}
], - "HA": true,
- "Speed": "1Gb",
- "Networks": [
- {
- "Name": "HostConn1",
- "NetworkID": "59047804-7c6d-4fea-bf89-08c54543dccc",
- "IP": "10.5.3.4",
- "Subnet": "10.5.3.0",
- "Netmask": "/24",
- "Gateway": "10.5.3.1",
- "DNS": [
- "8.8.8.8"
], - "VLAN": 0,
- "VNI": 0,
- "Untagged": true,
- "Proxy": "http://proxy.firewall.com:8080/ or http://user:password@proxy.firewall.com:8080",
- "NoProxy": "localhost,15.10.0.10,test.com"
}
]
}
], - "Deleted": true,
- "PortalCommOkay": true,
- "PowerStatus": "ON",
- "State": "Ready",
- "Substate": "Complete",
- "StateTime": "2019-08-24T14:15:22Z",
- "SubstateTime": "2019-08-24T14:15:22Z",
- "Progress": 100,
- "Alert": true,
- "AlertInfo": [
- {
- "Alert": "op-failed",
- "State": "Ready",
- "Substate": "Complete",
- "Message": "Operation XXX completed as failed with status: YYY",
- "Time": "2019-08-24T14:15:22Z",
- "Ack": true
}
], - "Workflow": "string",
- "SummaryStatus": "OK",
- "Labels": {
- "serviceType": "BMaaS"
}
}
Re-deploys a host with a new machine that satisfies the current host settings. Only the machine is replaced, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state or in the Failed state and in the Replace or Maintenace workflow.
+{- "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
- "ETag": "a8a0a8d9-d35b-45c6-840f-2b3694efc394",
- "Name": "My Object Name",
- "Created": "2019-06-27T22:59:01.661Z",
- "Modified": "2020-02-27T18:28:02.863Z",
- "Description": "Description of Host",
- "ServiceID": "20dd558b-b106-40bc-a8e7-d364ec5db710",
- "ServiceFlavor": "ubuntu",
- "ServiceVersion": "18.04-20190807",
- "LocationID": "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1",
- "MachineSizeName": "HPE Large",
- "MachineSizeID": "6e87f64f-b099-4286-9101-bee60a1afa2e",
- "MachineID": "d96dbf89-2a07-42f9-817d-2d6c42351827",
- "SSHKeyIDs": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "SSHAuthorizedKeys": [
- "'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxv1C5uOeG9BBjfQbum9GupGthTFcifS4FNYxZ2ZakN9UcpD05L2lKp4OI6mfCfciOhJ9SHduZWJFM0pYfC99hIsPAHhEwWOjh3/rHKxB/U4RYN4VFWM+ShDv92+k0Hse73HhuiHKVtmRj/fltAeCFm/mPlL+McMYFhFYMIK8b/spKpXxdEBCSowHPGIn3yi0ivPWhC4wcIa9jDIela/a0t/oDnYTeIp2WMLDbpZyQsGHmKopAAvb+83JhwytQMVTI/g5pMerbqPyxKtWaWDVDtpQ7O8G877T5U3kkl4jLLOJywxrvLrfHh1UNdNvPmvRFd+ct9Q5ugj5CIMJHqWTj Joe@Laptop.local'\n"
], - "NetworkIDs": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "91eec8b5-6460-4532-aad1-47b983edb63c"
], - "NetworkForDefaultRoute": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "NetworkUntagged": "046b6c7f-0b8a-43b9-b35d-6489e6daee92",
- "PreAllocatedIPs": [
- "string"
], - "ServiceNetsProviderMAC": {
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91": "a2:c8:93:15:2a:76"
}, - "UserData": "string",
- "NodeID": "Node21",
- "ISCSIConfig": {
- "InitiatorName": "string",
- "CHAPSecret": "string",
- "CHAPUser": "string",
- "ISCSIDiscoveryAddress": "string"
}, - "Connections": [
- {
- "Name": "Default",
- "Ports": [
- {
- "Name": "lan5",
- "HWAddr": "5c:b9:01:95:64:a0"
}
], - "HA": true,
- "Speed": "1Gb",
- "Networks": [
- {
- "Name": "HostConn1",
- "NetworkID": "59047804-7c6d-4fea-bf89-08c54543dccc",
- "IP": "10.5.3.4",
- "Subnet": "10.5.3.0",
- "Netmask": "/24",
- "Gateway": "10.5.3.1",
- "DNS": [
- "8.8.8.8"
], - "VLAN": 0,
- "VNI": 0,
- "Untagged": true,
- "Proxy": "http://proxy.firewall.com:8080/ or http://user:password@proxy.firewall.com:8080",
- "NoProxy": "localhost,15.10.0.10,test.com"
}
]
}
], - "Deleted": true,
- "PortalCommOkay": true,
- "PowerStatus": "ON",
- "State": "Ready",
- "Substate": "Complete",
- "StateTime": "2019-08-24T14:15:22Z",
- "SubstateTime": "2019-08-24T14:15:22Z",
- "Progress": 100,
- "Alert": true,
- "AlertInfo": [
- {
- "Alert": "op-failed",
- "State": "Ready",
- "Substate": "Complete",
- "Message": "Operation XXX completed as failed with status: YYY",
- "Time": "2019-08-24T14:15:22Z",
- "Ack": true
}
], - "Workflow": "string",
- "SummaryStatus": "OK",
- "Labels": {
- "serviceType": "BMaaS"
}
}
Re-deploys a host with a new machine that satisfies the current host settings. WARNING -- all drives will be erased! Only the machine is replaced, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state or in the Failed state and in the Replace or Maintenace workflow.
hostId required | string ID of Host to replace |
{- "message": "string",
- "details": "string"
}