Backup node registration
The backup node registration APIs allow you to register a remote or a local backup node in PowerVC. You can also choose to discover existing image OVAs.
Options for backup node registration APIs
| Method | URI | Description |
|---|---|---|
|
POST |
|
Registers or adds a backup node. |
|
PUT |
|
Updates a backup node. |
|
DELETE |
|
Deletes or deregister a backup node. |
|
GET |
|
Shows the details of a backup node. |
|
GET |
|
Lists all backup nodes |
|
PUT |
|
Discovers existing image OVAs on the backup node. |
Backup node registration
This operation adds a backup node to PowerVC. This API takes configuration attributes for the backup node in the request body as input and registers the backup node with PowerVC.
- Response code
-
- Normal Response Code: OK (201)
- Request parameters
-
Table 2. Parameters in the request for backup node registration Name Style Type Description access_ipbody
string
IP address of the virtual machine that is being registered as the backup node.
user_idbody
string
User ID of the backup node.
passwordbody
string
Password for backup node.
display_namebody
string
Display name of the backup node.
cos_defaultbody
string
Optional. Name of the COS bucket to be used as default. Example of registering a backup node:{ "backup_nodes": { "registration": { "access_ip": "9.X.X.X", "user_id": "user1", "password": "p#####", "display_name": "Backup-node-111", "cos_default”: "bucket-1" } } } - Response body
-
Table 3. Parameters in the response for backup node registration Name Style Type Description idbody
string
Displays backup node ID. access_ipbody
string
IP address of the virtual machine that is being registered as the backup node.
user_idbody
string
User ID for connecting to the VM.
display_namebody
string
Display name of the backup node.
backup_node_idbody
string
Displays backup node ID. unique_idbody
string
Unique ID of the backup node.
cos_defaultbody
string
Name of the COS bucket to be used as default. registered_atbody
string
Date and time details of backup node creation. Example response when registering a backup node:{ "backup_node":{ "registration":{ "id":1, "access_ip":"9.X.X.X", "user_id":"user1", "display_name":"Backup-node-111", "backup_node_id":"vm-xxx", "unique_id":"30:cc:f7:ed:1b:ff:be:e3:55:c8:7b:af:ba:2c:1e:73", "cos_default":"bucket-1", "registered_at":"2021-01-20T11:50:38Z" } } }
Update a backup node
This operation updates the registration information for a backup node in PowerVC. This API takes the backup node ID for which you want to change the attributes in the URI and the attributes that you want to change in the body as input. The response body contains the attributes that are updated by the request.
- Response code
-
- Normal Response Code: OK (201)
- Request parameters
-
Table 4. Parameters in the request for updating a backup node Name Style Type Description access_ipbody
string
IP address of the virtual machine that is being registered as the backup node.
user_idbody
string
User ID for connecting to the VM.
passwordbody
string
Password for connecting to the VM.
display_namebody
string
Display name of the backup node.
cos_defaultbody
string
Optional. Name of the COS bucket to be used as default. All the attributes in the request body are optional. You can update all the attributes or any one of the attributes. Example of updating a backup node:{ "backup_nodes": { "registration": { "access_ip": "9.x.x.x", "user_id": "user2", "password": "p#####", "display_name": "Backup-node-112", "cos_default”: “bucket-1" } } } - Response body
-
Table 5. Parameters in the response for updating a backup node Name Style Type Description access_ipbody
string
IP address of the virtual machine that is being registered as the backup node.
user_idbody
string
User ID for connecting to the VM.
display_namebody
string
Display name of the backup node.
cos_defaultbody
string
Name of the COS bucket to be used as default. Example response when updating a backup node:{ "backup_node": { "registration": { "access_ip": "9.x.x.x", "user_id": "user2", "display_name": "Backup-node-112", "cos_default": "bucket-1" } } }
Deregister a backup node
This operation deregisters backup node from PowerVC. This API takes the backup node ID in the
URI as input and takes uninstall and force as optional parameters.
The API does not take any request body.
- Response codes
-
- Normal Response Code: No Content (204)
Example for deregister backup node API/v3/{project-id}/backup-nodes/{id}?<uninstall=true&force=false>- Default option for
forceanduninstallparameters isfalse
. - If
forceis set totrue
, then backup node will be removed even if there are image backups existing on the backup node. - If
uninstalloption is settrue
, PowerVC will be uninstalled from the backup node.
View backup node details
This operation displays the basic information about a backup node that is registered in PowerVC. This API takes no input in the request body and returns the name and display name of the backup node in the response body.
- Response code
-
- Normal Response Code: OK (200)
- Response body
-
Table 6. Parameters in the response body for viewing details of a backup node Name Style Type Description created_atbody
string
Date and time details of backup node creation. updated_atbody
string
Date and time details when the backup node was updated.
deleted_atbody
string
Details of backup node deletion.
deletedbody
Boolean
Displays whether the backup node is deleted.
idbody
string
Displays backup node ID.
display_namebody
string
Display name of backup node.
user_idbody
string
User ID for connecting to the VM.
passwordbody
string
Password for connecting to the VM.
access_ipbody
string
Displays IP address of the backup node.
backup_node_idbody
string
ID of the backup node.
unique_idbody
string
Unique ID of the backup node.
cos_defaultbody
string
Name of the COS bucket to be used as default. driver_metabody
string
Additional metadata for the cinder backup driver. health_statusbody
string
Health status of the backup node.
{ "backup_node": { "created_at": "2021-07-22T07:30:30.000000", "updated_at": null, "deleted_at": null, "deleted": false, "id": 1, "display_name": "Backupnode235", "user_id": "root", "password": "aes-ctr:ODI1NDg4NDM2NzE2MzA2NTI5NTrWHkifHf/NNg==", "access_ip": "9.114.254.235", "backup_node_id": "zsa333", "unique_id": "48:8e:78:35:ec:ad:7f:26:2e:12:9d:19:cf:ce:d8:53", "cos_default": null, "private_key": null, "driver_meta": null, "health_status": { "id": "cinder-backup_1", "health_value": "OK", "updated_at": "2021-07-22T10:02:07.083218", "value_reason": [] } } }
View list of backup nodes
This operation lists the basic information about all of the backup nodes that are registered in PowerVC. This API takes no input in the request body and returns the details of backup node in the response body.
- Response code
-
- Normal Response Code: OK (200)
- Response body
-
Table 7. Parameters in the response body for viewing all of the backup nodes Name Style Type Description created_atbody
string
Date and time details of backup node creation. updated_atbody
string
Date and time details when the backup node was updated.
deleted_atbody
string
Details of backup node deletion.
deletedbody
Boolean
Displays whether the backup node is deleted.
idbody
string
Displays backup node ID.
display_namebody
string
Display name of backup node.
user_idbody
string
User ID for connecting to the VM.
passwordbody
string
Password for connecting to the VM.
access_ipbody
string
Displays IP address of the backup node.
backup_node_idbody
string
ID of the backup node.
unique_idbody
string
Unique ID of the backup node.
cos_defaultbody
string
Name of the COS bucket to be used as default. driver_metabody
string
Additional metadata for the cinder backup driver. health_statusbody
string
Health status of the backup node.
{ "backup_nodes": [ { "created_at": "2021-01-20T11:50:18.000000", "updated_at": null, "deleted_at": null, "deleted": false, "id": 1, "display_name": "Backup-Node-111", "user_id": "user1", "password": "aes-ctr:MjIwODM2NTU4NjA2NjMzNTEyNTpWGqvSof82Ng==", "access_ip": "9.x.x.x", "backup_node_id": "vm-xxx", "unique_id": "30:cc:f7:ed:1b:ff:be:e3:55:c8:7b:af:ba:2c:1e:73", "cos_default": "bucket-1”, "private_key": null, "driver_meta": null, "health_status": { "id": "cinder-backup_1", "health_value": "OK", "updated_at": "2021-01-20T12:13:40.045583", "value_reason": [] } }, { "created_at": "2021-02-20T11:50:18.000000", "updated_at": null, "deleted_at": null, "deleted": false, "id": 2, "display_name": "Backup-Node-113", "user_id": "user3", "password": "aes-ctr:EjIwODM2NTU4NjA2NjMzNTEyNTpWGqvSof82FR==", "access_ip": "9.x.x.x", "backup_node_id": "vm-xxx", "unique_id": "30:cc:f7:ed:1b:ff:be:e3:55:c8:7b:af:ba:2c:1e:73", "cos_default": "new-bucket-suman2”, "private_key": null, "driver_meta": null, "health_status": { "id": "cinder-backup_2", "health_value": "OK", "updated_at": "2021-02-20T12:13:40.045583", "value_reason": [] } } ] }
Discover image OVAs on a backup node
Displays number of image OVAs on a backup node registered in PowerVC. The image OVAs can be manually added or the ones remaining after deregistration. This API takes no input in the request body and returns the image OVA count in the response body.
- Response code
-
- Normal Response Code: OK (200)
- Response body
-
Table 8. Parameters in the response body for discovering manually added image OVAs Name Style Type Description ova_countbody
string
Displays the number of image OVAs found on a backup node.
Example response when viewing the image OVAs:{ "backup_node": { "ova_count": 3 } }