Files
doc-exports/docs/rds/api-ref/rds_05_0031.html
wangdengke2 1ddaec1a62 rds_api
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>
2026-01-29 11:28:26 +00:00

12 KiB

Querying the Domain Name of a DB Instance

Function

This API is used to query the domain name of a DB instance.

URI

  • URI format

    GET /v3/{project_id}/instances/{instance_id}/dns

  • 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

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

Error Code

For details, see Error Codes.