All Products
Search
Document Center

AnalyticDB:DescribeLogHubAttribute

Last Updated:Jan 08, 2026

Queries the information about a log shipping job.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:DescribeLogHubAttributeget
DBCluster
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
DBClusterIdstringYes

The ID of the AnalyticDB for MySQL Data Warehouse Edition cluster.

am-bp1nz6smy07szs58p
ProjectNamestringYes

The name of the Simple Log Service project.

dcsz-af-data
DeliverNamestringYes

The name of the log shipping job.

sz_sls2adb_kxdpz_af_data
LogStoreNamestringYes

The name of the Logstore.

game2-sms-log

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

8A564B7F-8C00-43C0-8EC5-919FBB70573
LoghubInfoobject

The log collection information.

Delaylong

The synchronization latency, which is the latency between the latest update time of the synchronization job and the current system time. Unit: seconds.

361
TableNamestring

The name of the table.

test2
LogHubStoresarray<object>

The names of the Logstores.

LogHubStoreobject

The name of the Logstore.

LogKeystring

The log keyword.

taskid
FieldKeystring

The value of the log keyword.

255311
ProjectNamestring

The name of the Simple Log Service project.

test-adb
DBTypestring

The database type.

rds
SchemaNamestring

The name of the database.

cbd_bi
SyncStatusstring

The synchronization status.

processing
Messagestring

The returned message.

SUCCESS
DeliverNamestring

The name of the log shipping job.

loghub-web-login-new
RegionIdstring

The region ID.

cn-hangzhou
DBClusterIdstring

The cluster ID.

am-8vbs48m7553du1gz2
Descriptionstring

The description.

description
FilterDirtyDataboolean

Indicates whether dirty data is filtered.

true
LogStoreNamestring

The name of the Logstore.

device_login
ZoneIdstring

The zone ID.

cn-hangzhou-k
UserNamestring

The name of the database account.

aaa
DeliverTimestring

The log shipping time.

2024-12-06'T'10:15'Z'

Examples

Sample success responses

JSONformat

{
  "RequestId": "8A564B7F-8C00-43C0-8EC5-919FBB70573",
  "LoghubInfo": {
    "Delay": 361,
    "TableName": "test2",
    "LogHubStores": {
      "LogHubStore": [
        {
          "LogKey": "taskid",
          "FieldKey": 255311
        }
      ]
    },
    "ProjectName": "test-adb",
    "DBType": "rds",
    "SchemaName": "cbd_bi",
    "SyncStatus": "processing",
    "Message": "SUCCESS",
    "DeliverName": "loghub-web-login-new",
    "RegionId": "cn-hangzhou",
    "DBClusterId": "am-8vbs48m7553du1gz2",
    "Description": "description",
    "FilterDirtyData": true,
    "LogStoreName": "device_login",
    "ZoneId": "cn-hangzhou-k",
    "UserName": "aaa",
    "DeliverTime": "2024-12-06'T'10:15'Z'"
  }
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history