All Products
Search
Document Center

AnalyticDB:DescribeJobResourceUsage

Last Updated:Jul 01, 2026

Retrieves resource usage statistics for jobs.

Operation description

For the service registration information of this service, see Service registration.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

adb:DescribeJobResourceUsage

get

*DBClusterLakeVersion

acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The ID of the Data Lakehouse Edition cluster.

am-uf6g8w25jacm7****

StartTime

string

Yes

The start time of the query. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).

2023-02-04T03:45:00Z

EndTime

string

Yes

The end time of the query. The end time must be later than the start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC).

2023-03-17T16:00:00Z

PageNumber

integer

No

Page number. Valid values: positive integers. Default value: 1.

1

PageSize

integer

No

The page number. The value must be a positive integer. Default value: 1.

30

No

The number of entries per page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

Response elements

Element

Type

Description

Example

object

PlainResponse

RequestId

string

The request ID.

1AD222E9-E606-4A42-BF6D-8A4442913CEF

Code

integer

The API status or POP error code.

200

Data

object

The returned data.

DBClusterId

string

The ID of the Data Lakehouse Edition cluster.

amv-clusterxxx

StartTime

string

The start time. Format: yyyy-MM-ddTHH:mmZ (UTC).

2023-05-22T16:00:00Z

EndTime

string

The end time. Format: yyyy-MM-ddTHH:mmZ (UTC).

2023-05-23T16:00:00Z

JobAcuUsage

array<object>

The ACU usage of the job resource group.

array<object>

JobId

string

Job ID.

1592

ResourceGroupName

string

Job-type resource group name.

job_default

JobStartTime

string

Job start time. Format: yyyy-MM-ddTHH:mmZ (UTC time).

2023-05-22T16:00:00Z

JobEndTime

string

Job end time. Format: yyyy-MM-ddTHH:mmZ (UTC time).

2023-05-23T16:00:00Z

AcuUsageDetail

object

ACU resource usage details.

TotalAcuNumber

number

Total ACU resources.

32ACU

ReservedAcuNumber

number

The number of reserved ACUs.

16ACU

ElasticAcuNumber

number

The number of elastic ACUs allocated to the resource.

16ACU

SpotAcuNumber

number

The number of ACUs used by spot instances.

16ACU

SpotAcuPercentage

number

Percentage of spot instance resources in total elastic resources.

0.9

UseCachePool

boolean

Indicates whether a hot pool is used.

false

SparkAppName

string

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

30

TotalCount

integer

The total number of entries.

100

Examples

Success response

JSON format

{
  "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "Code": 200,
  "Data": {
    "DBClusterId": "amv-clusterxxx",
    "StartTime": "2023-05-22T16:00:00Z",
    "EndTime": "2023-05-23T16:00:00Z\n",
    "JobAcuUsage": [
      {
        "JobId": "1592",
        "ResourceGroupName": "job_default",
        "JobStartTime": "2023-05-22T16:00:00Z\n",
        "JobEndTime": "2023-05-23T16:00:00Z",
        "AcuUsageDetail": {
          "TotalAcuNumber": 0,
          "ReservedAcuNumber": 0,
          "ElasticAcuNumber": 0,
          "SpotAcuNumber": 0,
          "SpotAcuPercentage": 0.9
        },
        "UseCachePool": false,
        "SparkAppName": ""
      }
    ],
    "PageNumber": 1,
    "PageSize": 30,
    "TotalCount": 100
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.