X-Role string
Example: metal-infra-admin
GreenLake Platform role name
@@ -2527,7 +2527,7 @@
Option 2: Getting the token directly from UI
post /hosts https://client.greenlake.hpe.com{basePath} /hosts
Request samples Content type application/json
Copy
Expand all Collapse all { "Name" : "NewHostName" ,
"Description" : "Description of new Host" ,
"ServiceID" : "20dd558b-b106-40bc-a8e7-d364ec5db710" ,
"LocationID" : "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1" ,
"MachineSizeID" : "6e87f64f-b099-4286-9101-bee60a1afa2e" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "NewVolumes" :
[ { "Name" : "NewVolumeName" ,
"Description" : "Description of New Volume" ,
"FlavorID" : "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51" ,
"Capacity" : 10 ,
"Shareable" : true ,
"StoragePoolID" : "4028a467-4960-41d8-94b5-7611e50c0642" ,
"VolumeCollectionID" : "0bc8d647-85d3-4a49-8d49-8626da150790"
} ] , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Labels" :
{ "serviceType" : "BMaaS" ,
"region" : "us-west-2"
} }
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Retrieve Host by ID Returns a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts
Request samples Content type application/json
Copy
Expand all Collapse all { "Name" : "NewHostName" ,
"Description" : "Description of new Host" ,
"ServiceID" : "20dd558b-b106-40bc-a8e7-d364ec5db710" ,
"LocationID" : "58e992d9-6663-492c-8c5b-ecf0b1b3bfe1" ,
"MachineSizeID" : "6e87f64f-b099-4286-9101-bee60a1afa2e" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "NewVolumes" :
[ { "Name" : "NewVolumeName" ,
"Description" : "Description of New Volume" ,
"FlavorID" : "69d82b9f-19a6-47cd-bcb3-7f4b437e8e51" ,
"Capacity" : 10 ,
"Shareable" : true ,
"StoragePoolID" : "4028a467-4960-41d8-94b5-7611e50c0642" ,
"VolumeCollectionID" : "0bc8d647-85d3-4a49-8d49-8626da150790"
} ] , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Labels" :
{ "serviceType" : "BMaaS" ,
"region" : "us-west-2"
} }
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Retrieve Host by ID Returns a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2537,7 +2537,7 @@
Option 2: Getting the token directly from UI
get /hosts/{hostId} https://client.greenlake.hpe.com{basePath} /hosts/{hostId}
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Update an existing Host Updates the Host with the matching ID. Update is permitted only if the host is in the 'Ready' or 'Connection Updating Failed' state. Only the Host 'Description', 'Networks', 'NetworkForDefaultRoute', 'NetworkUntagged' and 'ISCSIConfig:InitiatorName' can be updated. 'ISCSIConfig:InitiatorName' can be updated only if the host has no volumes attached.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Update an existing Host Updates the Host with the matching ID. Update is permitted only if the host is in the 'Ready' or 'Connection Updating Failed' state. Only the Host 'Description', 'Networks', 'NetworkForDefaultRoute', 'NetworkUntagged' and 'ISCSIConfig:InitiatorName' can be updated. 'ISCSIConfig:InitiatorName' can be updated only if the host has no volumes attached.
If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
@@ -2562,7 +2562,7 @@
Option 2: Getting the token directly from UI
put /hosts/{hostId} https://client.greenlake.hpe.com{basePath} /hosts/{hostId}
Request samples Content type application/json
Copy
Expand all Collapse all { "ID" : "3892eb50-4697-4c72-aadc-32b766bce3c0" ,
"ETag" : "a8a0a8d9-d35b-45c6-840f-2b3694efc394" ,
"Name" : "My Object Name" ,
"Description" : "Description of Host" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "Labels" :
{ "serviceType" : "BMaaS" ,
"region" : "us-west-2"
} }
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Delete a Host Deletes the Host with the matching ID. A host in the 'Ready' state must first be powered-off before a delete will be permitted. Deletes to hosts in other states is permitted regardless of the power state.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}
Request samples Content type application/json
Copy
Expand all Collapse all { "ID" : "3892eb50-4697-4c72-aadc-32b766bce3c0" ,
"ETag" : "a8a0a8d9-d35b-45c6-840f-2b3694efc394" ,
"Name" : "My Object Name" ,
"Description" : "Description of Host" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "Labels" :
{ "serviceType" : "BMaaS" ,
"region" : "us-west-2"
} }
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Delete a Host Deletes the Host with the matching ID. A host in the 'Ready' state must first be powered-off before a delete will be permitted. Deletes to hosts in other states is permitted regardless of the power state.
If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
@@ -2584,7 +2584,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/maintenance https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/maintenance
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Power on Host by ID Powers on a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/maintenance
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Power on Host by ID Powers on a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2594,7 +2594,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/poweron https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/poweron
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Power off Host by ID Powers off a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/poweron
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Power off Host by ID Powers off a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2604,7 +2604,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/poweroff https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/poweroff
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Reset Host by ID Resets a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/poweroff
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Reset Host by ID Resets a single Host with matching ID. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2614,7 +2614,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/powerreset https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/powerreset
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Set PXE boot order on Host by ID Sets a single Host with matching ID to attempt PXE boot when next booting. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/powerreset
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Set PXE boot order on Host by ID Sets a single Host with matching ID to attempt PXE boot when next booting. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
path Parameters hostId required
string
ID of Host to set to PXE boot
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2624,7 +2624,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/bootpxe https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/bootpxe
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Set HDD boot order on Host by ID Sets a single Host with matching ID to attempt HDD booting. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/bootpxe
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Set HDD boot order on Host by ID Sets a single Host with matching ID to attempt HDD booting. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
path Parameters hostId required
string
ID of Host to set to HDD boot
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -2634,7 +2634,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/boothdd https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/boothdd
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Reimage Host by ID 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.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/boothdd
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Reimage Host by ID 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.
If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
@@ -2645,7 +2645,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/reimage https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/reimage
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Replace Host by ID 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.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/reimage
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Replace Host by ID 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.
If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
@@ -2656,7 +2656,7 @@
Option 2: Getting the token directly from UI
post /hosts/{hostId}/replace https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/replace
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string"
}
Operations related to Volumes. A Volume is an external storage volume that persists independent of the associated host.
+
https://client.greenlake.hpe.com{basePath} /hosts/{hostId}/replace
Response samples Content type application/json
Copy
Expand all Collapse all { "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" ,
"NetworkForDefaultRoute" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ,
"NetworkUntagged" : "046b6c7f-0b8a-43b9-b35d-6489e6daee92" ,
"ServiceNetsProviderMAC" :
{ } , "UserData" : "string" ,
"NodeID" : "Node21" ,
"Connections" :
[ { "Name" : "Default" ,
"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" ,
"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" ,
"FWBaselineID" : "4b91cc3c-8af7-49d8-b378-866e8fc7a851" ,
"FWBaselineVersion" : "string" ,
"AvailableFWBaselineID" : "ae853754-e976-4937-aec0-b4e41985605e" ,
"AvailableFWBaselineVersion" : "string" ,
"SerialNumber" : "string"
}
Operations related to Volumes. A Volume is an external storage volume that persists independent of the associated host.
List all volumes in project Returns an array of all volumes defined within the project. If GreenLake Platform IAM issued token is used for authentication, then it is required to pass 'X-Role' and 'X-Workspaceid' headers.
(BearerAuth Project ) (BearerAuth Membership )
header Parameters X-Role string
Example: metal-infra-admin
GreenLake Platform role name
X-Workspaceid string
Example: 1a2ba81600dd11efa47076a3447ec4eb
GreenLake Platform workspace ID
@@ -3058,7 +3058,7 @@
Option 2: Getting the token directly from UI
put /services/{serviceId}/updatehealth https://client.greenlake.hpe.com{basePath} /services/{serviceId}/updatehealth
Response samples Content type application/json
{ "message" : "string" ,
"details" : "string"
}