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.
- Normal Response Code: OK (201)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address of the virtual machine that is being registered as the backup node. |
|
body |
string |
User ID of the backup node. |
|
body |
string |
Password for backup node. |
|
body |
string |
Display name of the backup node. |
|
body |
string |
Optional. Name of the COS bucket to be used as default. |
{
"backup_nodes": {
"registration": {
"access_ip": "9.X.X.X",
"user_id": "user1",
"password": "p#####",
"display_name": "Backup-node-111",
"cos_default”: "bucket-1"
}
}
}
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Displays backup node ID. |
|
body |
string |
IP address of the virtual machine that is being registered as the backup node. |
|
body |
string |
User ID for connecting to the VM. |
|
body |
string |
Display name of the backup node. |
|
body |
string |
Displays backup node ID. |
|
body |
string |
Unique ID of the backup node. |
|
body |
string |
Name of the COS bucket to be used as default. |
|
body |
string |
Date and time details of backup node creation. |
{
"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.
- Normal Response Code: OK (201)
Request parameters
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address of the virtual machine that is being registered as the backup node. |
|
body |
string |
User ID for connecting to the VM. |
|
body |
string |
Password for connecting to the VM. |
|
body |
string |
Display name of the backup node. |
|
body |
string |
Optional. Name of the COS bucket to be used as default. |
{
"backup_nodes": {
"registration": {
"access_ip": "9.x.x.x",
"user_id": "user2",
"password": "p#####",
"display_name": "Backup-node-112",
"cos_default”: “bucket-1"
}
}
}
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address of the virtual machine that is being registered as the backup node. |
|
body |
string |
User ID for connecting to the VM. |
|
body |
string |
Display name of the backup node. |
|
body |
string |
Name of the COS bucket to be used as default. |
{
"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.
- Normal Response Code: No Content (204)
/v3/{project-id}/backup-nodes/{id}?<uninstall=true&force=false>
- Default option for
force
anduninstall
parameters isfalse
. - If
force
is set totrue
, then backup node will be removed even if there are image backups existing on the backup node. - If
uninstall
option 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.
- Normal Response Code: OK (200)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Date and time details of backup node creation. |
|
body |
string |
Date and time details when the backup node was updated. |
|
body |
string |
Details of backup node deletion. |
|
body |
Boolean |
Displays whether the backup node is deleted. |
|
body |
string |
Displays backup node ID. |
|
body |
string |
Display name of backup node. |
|
body |
string |
User ID for connecting to the VM. |
|
body |
string |
Password for connecting to the VM. |
|
body |
string |
Displays IP address of the backup node. |
|
body |
string |
ID of the backup node. |
|
body |
string |
Unique ID of the backup node. |
|
body |
string |
Name of the COS bucket to be used as default. |
|
body |
string |
Additional metadata for the cinder backup driver. |
|
body |
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.
- Normal Response Code: OK (200)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Date and time details of backup node creation. |
|
body |
string |
Date and time details when the backup node was updated. |
|
body |
string |
Details of backup node deletion. |
|
body |
Boolean |
Displays whether the backup node is deleted. |
|
body |
string |
Displays backup node ID. |
|
body |
string |
Display name of backup node. |
|
body |
string |
User ID for connecting to the VM. |
|
body |
string |
Password for connecting to the VM. |
|
body |
string |
Displays IP address of the backup node. |
|
body |
string |
ID of the backup node. |
|
body |
string |
Unique ID of the backup node. |
|
body |
string |
Name of the COS bucket to be used as default. |
|
body |
string |
Additional metadata for the cinder backup driver. |
|
body |
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.
- Normal Response Code: OK (200)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Displays the number of image OVAs found on a backup node. |
{
"backup_node": {
"ova_count": 3
}
}