struct

ScalewayApi::Endpoints::Baremetal::Server

Inherits Struct < Value < Object

Serveur Elastic Metal.

Les statuts Scaleway :

  • unknown — état inconnu (réponse transitoire).
  • delivering — livraison du matériel.
  • ready — prêt mais pas installé.
  • stopping / stopped / starting — cycles power.
  • installing — OS en cours d'installation.
  • deleting — suppression en cours.
  • locked — verrouillé (support Scaleway).
  • out_of_stock — offre en rupture.
  • error — erreur persistante.

Constructors

from_any(payload : JSON::Any) : Server
Source
new(id : String, status : String, raw : JSON::Any, name : String | Nil = nil, hostname : String | Nil = nil, offer_id : String | Nil = nil, offer_name : String | Nil = nil, project_id : String | Nil = nil, zone : String | Nil = nil, ips : Array(ServerIp) = [] of ServerIp, tags : Array(String) = [] of String, created_at : String | Nil = nil, updated_at : String | Nil = nil)
Source

Instance methods

created_at
Source
failed?

L'état est-il un échec terminal ?

Source
hostname
Source
installing?

L'installation est-elle en cours ?

Source
name
Source
offer_id
Source
offer_name
Source
project_id
Source
ready?

Le serveur est-il installé et prêt à l'emploi (hors transitions) ?

Source
status
Source
tags
Source
updated_at
Source
zone
Source