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>
12 KiB
Querying the Domain Name of a DB Instance
Function
This API is used to query the domain name of a DB instance.
- Before calling an API, you need to understand the API in Authentication.
- Before calling this API, obtain the required region and endpoint.
URI
- Parameter description
Table 1 URI Parameters 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.
Request
- Parameter description
Table 2 Request header parameters 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.
- Example
GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/c90928717dc747e2a20099894a87c468in01/dns?dns_type=private
Response
- Normal response
Table 3 Response body parameters 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:
- normal
- abnormal
- Example normal response
{ "instance_id": "2de6315e7197418fbf2fdaed59d65da1in03", "dns_name": "2de6315e7197418fbf2fdaed59d65da1in03.internal.eu-de-****.com", "dns_type": "private", "ipv4_address": "192.168.6.105", "status": "normal" } - Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.