This API is used to query the domain name of a DB instance.
Parameter |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. |
instance_id |
Yes |
Instance ID. |
dns_type |
Yes |
Domain type. Only private domains are supported. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. The user token is a response to the API used to obtain a user token. |
GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/c90928717dc747e2a20099894a87c468in01/dns?dns_type=private
Parameter |
Type |
Description |
|---|---|---|
instance_id |
String |
Instance ID. |
dns_name |
String |
Domain name of the instance. |
dns_type |
String |
Domain type. Value: private. |
ipv4_address |
String |
Virtual IP address bound to the instance domain name. |
status |
String |
Domain status:
|
{
"instance_id": "2de6315e7197418fbf2fdaed59d65da1in03",
"dns_name": "2de6315e7197418fbf2fdaed59d65da1in03.internal.eu-de-****.com",
"dns_type": "private",
"ipv4_address": "192.168.6.105",
"status": "normal"
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.