Skip to content

Register Resource Host with Peer

MarilizaC edited this page Jun 26, 2018 · 6 revisions

Peers with the Subutai Console installed can have resource hosts (RH) added through registration. You also have the option to delete them from the peer. Read on to find out how to automate these processes.

REST APIs for RH registration

The Subutai Console exposes the following REST APIs that can be used to add or delete a resource host:

GET https://$ip:8443/rest/v1/registration/requests

- Lists the IDs (PGP fingerprints) of resource hosts discovered via SSDP on the LAN. Use those IDs in either API below to identify the resource host to be added or removed from the peer.

POST https://$ip:8443/rest/v1/registration/requests/{id}/approve

- Approves the registration of a resource host, allowing it to join the peer using its ID

POST https://ip:8443//rest/v1/registration/requests/{id}/remove

- Deletes a resource host from the peer using its ID

Automate RH addition/removal

To automate these processes, you only need the PGP fingerprint of the resource host. Extract the fingerprint from the response returned from either of the following:

  • GET https://$ip:8443/rest/v1/registration/requests
  • subutai info id - Execute this command on the RH
Clone this wiki locally