from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
task_id_list = client.cloud.gpu_baremetal_clusters.rebuild(
cluster_id="cluster_id",
project_id=0,
region_id=0,
nodes=["string"],
)
print(task_id_list.tasks)
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}
Rebuild one or more nodes in a GPU cluster. All cluster nodes must be specified to update the cluster image.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
task_id_list = client.cloud.gpu_baremetal_clusters.rebuild(
cluster_id="cluster_id",
project_id=0,
region_id=0,
nodes=["string"],
)
print(task_id_list.tasks)
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Cluster ID
created tasks for nodes rebuild
The response is of type object
.
Was this page helpful?