Compute plane node
The Compute plane node registration APIs allow you to register a Compute plane node in PowerVC.
- Compute plane registration
- Update a Compute plane node
- Deregister a Compute plane node
- View Compute plane node details
- View list of Compute plane nodes
Options for Compute plane APIs
Method | URI | Description |
---|---|---|
POST |
|
Registers or adds a Compute plane. |
GET |
|
Shows details of compute plane. |
GET |
|
Gets a list of all compute planes. |
DELETE |
|
Deregisters the compute plane in the backend and uninstalls PowerVC from it if |
PUT |
|
Updates the display name and credentials of the compute plane. |
Compute plane registration
This operation adds a Compute plane to PowerVC. This API takes configuration attributes for the Compute plane in the request body as input and registers the Compute plane with PowerVC.
- Normal Response Code: OK (200)
- Error response code: Bad Request (400), Forbidden (403), Not Found(404), Server Error (500)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Display name of the Compute plane. |
access_ip |
body |
string |
Access IP of the Compute plane. |
|
body |
string |
User ID of the Compute plane node. |
|
body |
string |
Password for Compute plane node. |
{
"compute_planes": {
"registration": {
"access_ip": "9.x.x.x",
"user_id": "root",
"password": "powervc123",
"display_name": "bak2"
}
}
}
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Display name of the Compute plane. |
access_ip |
body |
string |
Access IP of the Compute plane registered. |
|
body |
string |
User ID of the Compute plane node registered. |
|
body |
string |
Unique ID of Compute plane node registered. |
|
body |
string |
ID of Compute plane node registered. |
|
body |
string |
Time when the Compute plane node was registered. |
{
"compute_plane": {
"registration": {
"access_ip": "9.x.x.x",
"user_id": "root",
"display_name": "bak2",
"unique_id": "1f:e2:f0:16:da:97:e1:3d:49:0a:13:4b:22:2e:16:ff",
"id": 5,
"registered_at": "2021-09-29T16:51:49Z"
}
}
}
Update a Compute plane node
This operation updates the registration information for a Compute plane node in PowerVC. This API takes the Compute plane 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)
- Error response code: Bad Request (400), Not Found (404), Server Error (500)
Request parameters
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
User ID for connecting to the Compute plane node. |
|
body |
string |
Password for connecting to the Compute plane. |
|
body |
string |
Display name of the Compute plane. |
{
"compute_planes": {
"registration": {
"user_id": "root1"
}
}
}
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
User ID for connecting to the Compute plane node. |
|
body |
string |
Password for connecting to the Compute plane. |
|
body |
string |
Display name of the Compute plane. |
{
"registration": {
"user_id": "root1"
}
}
Deregister a Compute plane node
This operation deregisters a Compute plane node from PowerVC. This API takes the Compute plane ID in
the URI as input and takes uninstall
as optional parameters. The API does not take
any request body.
- Normal Response Code: OK (204)
- Error Response Codes: Unauthorized (401), Not Found (404)
DELETE /compute/v2.1/{tenant_id}/compute-planes/3?uninstall=true
View Compute plane node details
This operation displays the basic information about a Compute plane node that is registered in PowerVC. This API takes no input in the request body and returns the name and display name of the Compute plane node in the response body.
- Normal Response Code: OK (200)
- Error response code: Unauthorized (401)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Time when the compute plane node was registered. |
|
body |
string |
Time when the compute plane node was updated. |
|
body |
string |
Time when the compute plane node was deleted. |
|
body |
Boolean |
Displays whether the Compute plane node is deleted. |
|
body |
string |
ID of the compute plane node registered |
|
body |
string |
Display name of the Compute plane registered. |
|
body |
string |
User ID for the Compute plane node registered. |
|
body |
string |
Unique id of the Compute plane node registered |
|
body |
string |
Access IP of the Compute plane registered. |
|
body |
string |
Encrypted password of the Compute plane node. |
|
body |
string |
Represents location of private key for compute plane. (currently not supported) |
{
"compute_plane": {
"created_at": "2021-09-29T16:39:35.000000",
"updated_at": null,
"deleted_at": null,
"deleted": 0,
"id": 4,
"display_name": "bak1",
"user_id": "root",
"password": "aes-ctr:MTk0NTIwODIzMTkzMjEyMDE0Olkg+CkM8rajiLM=",
"access_ip": "9.x.x.x",
"unique_id": "79:16:ab:5d:52:12:c4:08:0f:b6:1d:03:66:09:f0:48",
"private_key": null
}
}
View list of Compute plane nodes
This operation lists the basic information about all of the Compute plane nodes that are registered in PowerVC. This API takes no input in the request body and returns the details of Compute plane nodes in the response body.
- Normal Response Code: OK (200)
- Error response code: Unauthorized (401)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Time when the compute plane node was registered. |
|
body |
string |
Time when the compute plane node was updated. |
|
body |
string |
Time when the compute plane node was deleted. |
|
body |
Boolean |
Displays whether the Compute plane node is deleted. |
|
body |
string |
ID of the compute plane node registered |
|
body |
string |
Display name of the Compute plane registered. |
|
body |
string |
User ID for the Compute plane node registered. |
|
body |
string |
Unique id of the Compute plane node registered |
|
body |
string |
Access IP of the Compute plane registered. |
|
body |
string |
Encrypted password of the Compute plane node. |
|
body |
string |
Represents location of private key for compute plane. (currently not supported) |
{
"compute_planes": [{
"created_at": "2021-09-29T16:39:35.000000",
"updated_at": null,
"deleted_at": null,
"deleted": 0,
"id": 4,
"display_name": "bak1",
"user_id": "root",
"password": "aes-ctr:MTk0NTIwODIzMTkzMjEyMDE0Olkg+CkM8rajiLM=",
"access_ip": "9.x.x.x",
"unique_id": "79:16:ab:5d:52:12:c4:08:0f:b6:1d:03:66:09:f0:48",
"private_key": null
},
{
"created_at": "2021-09-29T16:49:00.000000",
"updated_at": null,
"deleted_at": null,
"deleted": 0,
"id": 5,
"display_name": "bak2",
"user_id": "root",
"password": "aes-ctr:MTQzMjQwNDgzMjc0MDI2ODkzNTrIwbTC7MS/l4X+",
"access_ip": "9.x.x.x",
"unique_id": "1f:e2:f0:16:da:97:e1:3d:49:0a:13:4b:22:2e:16:ff",
"private_key": null
}
]
}