import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
gpu_baremetal_cluster_server_v1_list = client.cloud.gpu_baremetal_clusters.reboot_all_servers(
cluster_id="cluster_id",
project_id=0,
region_id=0,
)
print(gpu_baremetal_cluster_server_v1_list.count){
"count": 1,
"results": [
{
"addresses": {},
"blackhole_ports": [
{
"AlarmEnd": "2023-11-07T05:31:56Z",
"AlarmStart": "2023-11-07T05:31:56Z",
"AlarmState": "ACK_REQ",
"AlertDuration": "<string>",
"DestinationIP": "<string>",
"ID": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"creator_task_id": "<string>",
"ddos_profile": {
"fields": [
{
"base_field": 10,
"default": null,
"description": "ARK server ports. Valid port values are in range 1000-65535",
"field_name": "ARK Ports",
"field_type": null,
"field_value": "<unknown>",
"id": 123,
"name": "<string>",
"required": true,
"validation_schema": "<unknown>",
"value": null
}
],
"id": 123,
"options": {
"active": true,
"bgp": true
},
"profile_template": {
"description": "description",
"fields": [
{
"default": null,
"description": "ARK server ports. Valid port values are in range 1000-65535",
"field_type": null,
"id": 123,
"name": "<string>",
"required": true,
"validation_schema": "<unknown>"
}
],
"id": 123,
"name": "<string>"
},
"profile_template_description": "ARK server ports. Valid port values are in range 1000-65535",
"protocols": [
{
"port": "80",
"protocols": [
"TCP",
"HTTP"
]
},
{
"port": "53",
"protocols": [
"UDP"
]
}
],
"site": "ED",
"status": {
"error_description": "",
"status": "Updated"
}
},
"fixed_ip_assignments": [
{
"external": true,
"ip_address": "<string>",
"subnet_id": "<string>"
}
],
"flavor": {
"architecture": "<string>",
"flavor_id": "<string>",
"flavor_name": "<string>",
"hardware_description": {
"cpu": "<string>",
"disk": "<string>",
"gpu": "<string>",
"license": "<string>",
"network": "<string>",
"ram": "<string>"
},
"os_type": "<string>",
"ram": 123,
"resource_class": "<string>",
"vcpus": 123
},
"id": "<string>",
"instance_description": "Instance description",
"instance_isolation": {
"reason": "Suspicious activities"
},
"name": "<string>",
"project_id": 123,
"region": "<string>",
"region_id": 123,
"security_groups": [
{
"name": "<string>"
}
],
"ssh_key_name": "my-ssh-key",
"status": "ACTIVE",
"tags": [
{
"key": "<string>",
"read_only": true,
"value": "<string>"
}
],
"task_id": null,
"task_state": "<string>",
"vm_state": "active"
}
]
}import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
gpu_baremetal_cluster_server_v1_list = client.cloud.gpu_baremetal_clusters.reboot_all_servers(
cluster_id="cluster_id",
project_id=0,
region_id=0,
)
print(gpu_baremetal_cluster_server_v1_list.count){
"count": 1,
"results": [
{
"addresses": {},
"blackhole_ports": [
{
"AlarmEnd": "2023-11-07T05:31:56Z",
"AlarmStart": "2023-11-07T05:31:56Z",
"AlarmState": "ACK_REQ",
"AlertDuration": "<string>",
"DestinationIP": "<string>",
"ID": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"creator_task_id": "<string>",
"ddos_profile": {
"fields": [
{
"base_field": 10,
"default": null,
"description": "ARK server ports. Valid port values are in range 1000-65535",
"field_name": "ARK Ports",
"field_type": null,
"field_value": "<unknown>",
"id": 123,
"name": "<string>",
"required": true,
"validation_schema": "<unknown>",
"value": null
}
],
"id": 123,
"options": {
"active": true,
"bgp": true
},
"profile_template": {
"description": "description",
"fields": [
{
"default": null,
"description": "ARK server ports. Valid port values are in range 1000-65535",
"field_type": null,
"id": 123,
"name": "<string>",
"required": true,
"validation_schema": "<unknown>"
}
],
"id": 123,
"name": "<string>"
},
"profile_template_description": "ARK server ports. Valid port values are in range 1000-65535",
"protocols": [
{
"port": "80",
"protocols": [
"TCP",
"HTTP"
]
},
{
"port": "53",
"protocols": [
"UDP"
]
}
],
"site": "ED",
"status": {
"error_description": "",
"status": "Updated"
}
},
"fixed_ip_assignments": [
{
"external": true,
"ip_address": "<string>",
"subnet_id": "<string>"
}
],
"flavor": {
"architecture": "<string>",
"flavor_id": "<string>",
"flavor_name": "<string>",
"hardware_description": {
"cpu": "<string>",
"disk": "<string>",
"gpu": "<string>",
"license": "<string>",
"network": "<string>",
"ram": "<string>"
},
"os_type": "<string>",
"ram": 123,
"resource_class": "<string>",
"vcpus": 123
},
"id": "<string>",
"instance_description": "Instance description",
"instance_isolation": {
"reason": "Suspicious activities"
},
"name": "<string>",
"project_id": 123,
"region": "<string>",
"region_id": 123,
"security_groups": [
{
"name": "<string>"
}
],
"ssh_key_name": "my-ssh-key",
"status": "ACTIVE",
"tags": [
{
"key": "<string>",
"read_only": true,
"value": "<string>"
}
],
"task_id": null,
"task_state": "<string>",
"vm_state": "active"
}
]
}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
GPU cluster ID
Rebooted GPU cluster nodes
Number of objects
x >= 0Objects
Show child attributes
Map of network_name to list of addresses in that network
Show child attributes
IP addresses of the instances that are blackholed by DDoS mitigation system
Show child attributes
A date-time string giving the time that the alarm ended. If not yet ended, time will be given as 0001-01-01T00:00:00Z
A date-time string giving the time that the alarm started
Current state of alarm
ACK_REQ, ALARM, ARCHIVED, CLEAR, CLEARING, CLEARING_FAIL, END_GRACE, END_WAIT, MANUAL_CLEAR, MANUAL_CLEARING, MANUAL_CLEARING_FAIL, MANUAL_MITIGATING, MANUAL_STARTING, MANUAL_STARTING_FAIL, MITIGATING, STARTING, STARTING_FAIL, START_WAIT, ack_req, alarm, archived, clear, clearing, clearing_fail, end_grace, end_wait, manual_clear, manual_clearing, manual_clearing_fail, manual_mitigating, manual_starting, manual_starting_fail, mitigating, start_wait, starting, starting_fail Total alert duration
Notification destination IP address
Datetime when GPU server was created
Task that created this entity
Advanced DDoS protection profile. It is always null if query parameter with_ddos=true is not set.
Show child attributes
List of configured field values for the protection profile
Show child attributes
ID of DDoS profile field
10
Predefined default value for the field if not specified
100null
Detailed description explaining the field's purpose and usage guidelines
255"ARK server ports. Valid port values are in range 1000-65535"
Name of DDoS profile field
"ARK Ports"
Data type classification of the field (e.g., string, integer, array)
null
Complex value. Only one of 'value' or 'field_value' must be specified.
Unique identifier for the DDoS protection field
Human-readable name of the protection field
30Indicates whether this field must be provided when creating a protection profile
true
JSON schema defining validation rules and constraints for the field value
Basic type value. Only one of 'value' or 'field_value' must be specified.
null
Unique identifier for the DDoS protection profile
Configuration options controlling profile activation and BGP routing
Complete template configuration data used for this profile
Show child attributes
Detailed description explaining the template's purpose and use cases
"description"
List of configurable fields that define the template's protection parameters
Show child attributes
Predefined default value for the field if not specified
100null
Detailed description explaining the field's purpose and usage guidelines
255"ARK server ports. Valid port values are in range 1000-65535"
Data type classification of the field (e.g., string, integer, array)
null
Unique identifier for the DDoS protection field
Human-readable name of the protection field
30Indicates whether this field must be provided when creating a protection profile
true
JSON schema defining validation rules and constraints for the field value
Unique identifier for the DDoS protection template
Human-readable name of the protection template
100Detailed description of the protection template used for this profile
"ARK server ports. Valid port values are in range 1000-65535"
List of network protocols and ports configured for protection
[
{
"port": "80",
"protocols": ["TCP", "HTTP"]
},
{ "port": "53", "protocols": ["UDP"] }
]Geographic site identifier where the protection is deployed
50"ED"
Current operational status and any error information for the profile
{
"error_description": "",
"status": "Updated"
}Flavor
Show child attributes
CPU architecture
Flavor ID is the same as name
Flavor name
Additional hardware description
Show child attributes
Human-readable CPU description
Human-readable disk description
Human-readable GPU description
If the flavor is licensed, this field contains the license type
Human-readable NIC description
Human-readable RAM description
Operating system
RAM size in MiB
Flavor resource class for mapping to hardware capacity
Virtual CPU count. For bare metal flavors, it's a physical CPU count
GPU server ID
Instance description
"Instance description"
GPU server name
Project ID
Region name
Region ID
SSH key name assigned to instance
"my-ssh-key"
Instance status
ACTIVE, BUILD, DELETED, ERROR, HARD_REBOOT, MIGRATING, PASSWORD, PAUSED, REBOOT, REBUILD, RESCUE, RESIZE, REVERT_RESIZE, SHELVED, SHELVED_OFFLOADED, SHUTOFF, SOFT_DELETED, SUSPENDED, UNKNOWN, VERIFY_RESIZE List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
The UUID of the active task that currently holds a lock on the resource. This lock prevents concurrent modifications to ensure consistency. If null, the resource is not locked.
null
Task state
Virtual machine state (active)
active, building, deleted, error, paused, rescued, resized, shelved, shelved_offloaded, soft-deleted, stopped, suspended Was this page helpful?