Files
doc-exports/docs/rds/api-ref/rds_08_0036.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

17 KiB

Querying MSDTC Hosts

Function

This API is used to query MSDTC hosts.

Constraints

This API is available only for RDS for SQL Server.

URI

  • Parameter description
    Table 1 URI Parameters

    Name

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Specifies the project ID of a tenant in a region.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    instance_id

    Yes

    String

    Specifies the DB instance ID.

    offset

    No

    Integer

    Index offset. The query starts from the next piece of data indexed by this parameter.

    The value must be a non-negative number.

    The default value is 0, indicating that the query starts from the first data record.

    limit

    No

    Integer

    Number of records to be queried.

    The value ranges from 1 to 100.

    The default value is 10.

Request example

Response

  • Normal response
    Table 3 Response body parameters

    Name

    Type

    Description

    total_count

    Integer

    Total number of hosts.

    hosts

    Array of objects

    Host list.

    For details, see Table 4.

    Table 4 Hosts element structure description

    Parameter

    Type

    Description

    id

    String

    Host ID.

    host

    String

    Host address.

    host_name

    String

    Host name.

  • Example normal response
    {
       "total_count" : 1,
       "hosts" : [ {
         "id" : "527dd9ca-cc2c-4bac-8707-f9b4f55343f4",
         "host" : "192.168.0.90",
         "host_name" : "MSSQL-00E5FB7A"
       } ]
     }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.