Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
20 KiB
Querying Details of a DDM Instance Node (a V1 API)
Function
This API is used to query details of a DDM instance node.
Constraints
- This API is to be removed soon, so it is not recommended.
- Use the latest API. For details, see Querying Details About a DDM Instance Node (a V3 API).
URI
GET /v1/{project_id}/instances/{instance_id}/nodes/{node_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region |
instance_id |
Yes |
String |
DDM instance ID |
node_id |
Yes |
String |
DDM instance node ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
status |
String |
Node status For details, see Status Description. |
name |
String |
Node name |
node_id |
String |
Node ID |
private_ip |
String |
Private IP address of the node |
floating_ip |
String |
Floating IP address of the node |
server_id |
String |
VM ID |
subnet_name |
String |
Subnet name |
datavolume_id |
String |
Data disk ID |
res_subnet_ip |
String |
IP address provided by the resource subnet |
systemvolume_id |
String |
System disk ID |
group_id |
String |
ID of the group that the node belongs to |
Status code: 400
Parameter |
Type |
Description |
|---|---|---|
errCode |
String |
Service error code |
externalMessage |
String |
Error message |
Status code: 500
Parameter |
Type |
Description |
|---|---|---|
errCode |
String |
Service error code |
externalMessage |
String |
Error message |
Example Request
GET https://ddm.eu-de.otc.t-systems.com/v1/619d3e78f61b4be68bc5aa0b59edcf7b/instances/1f5c9fd6cd984056ba89c8c87cc03278in09/nodes/4a2b97b7f5e3462c9c78aae93b46ed83no09
Example Response
Status code: 200
OK
{
"status" : "normal",
"name" : "ddm2-test_node_01",
"node_id" : "4a2b97b7f5e3462c9c78aae93b46ed83no09",
"private_ip" : "192.168.0.160",
"floating_ip" : "100.65.78.158",
"server_id" : "8bd4d0bd-f63e-489a-95b6-50351f9657e6",
"subnet_name": "manageSubnet",
"datavolume_id" : "30ade9fb-26de-4d1f-af08-c376974b9d86",
"res_subnet_ip" : "172.16.15.224",
"systemvolume_id" : "88d7de55-f886-4929-ae7c-04d842959700"
}
Status code: 400
bad request
{
"externalMessage" : "Parameter error.",
"errCode" : "DBS.280001"
}
Status code: 500
server error
{
"externalMessage" : "Server failure.",
"errCode" : "DBS.200412"
}
Status Codes
Status Code |
Description |
|---|---|
200 |
OK |
400 |
bad request |
500 |
server error |
Error Codes
For details, see Error Codes.