Last updated: 2020-07-31 11:59:44

1. API Description

Domain name for API request:

This API is used to query the overview information of several instances.

A maximum of 2 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeJobs.
Version Yes String Common parameter. The value used for this API: 2017-03-12.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
JobIds.N No Array of String Instance ID
Filters.N No Array of Filter Filter
  • job-id - String - Required: No - (Filter) Filter by job ID.
  • job-name - String - Required: No - (Filter) Filter by job name.
  • job-state - String - Required: No - (Filter) Filter by job state.
  • zone - String - Required: No - (Filter) Filter by availability zone.
  • Offset No Integer Offset
    Limit No Integer Number of returned results

    3. Output Parameters

    Parameter Name Type Description
    JobSet Array of JobView List of instances
    TotalCount Integer Number of eligible instances
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying the Job Information

    Input Example
    &<common request parameters>

    Output Example

      "Response": {
        "TotalCount": 1,
        "JobSet": [
            "JobState": "SUCCEED",
            "TaskMetrics": {
              "PendingCount": 0,
              "FailedCount": 0,
              "StartingCount": 0,
              "SucceedCount": 4,
              "FailedInterruptedCount": 0,
              "SubmittedCount": 0,
              "RunnableCount": 0,
              "RunningCount": 0
            "JobName": "test job",
            "JobId": "job-97zcl3wt",
            "Priority": 1,
            "Placement": {
              "Zone": "ap-guangzhou-2"
            "EndTime": "2018-02-07T09:33:01Z",
            "CreateTime": "2018-02-07T09:29:09Z"
        "RequestId": "c76c5368-6e2d-46bc-9867-5a3019510b76"

    5. Developer Resources

    API Explorer

    This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.


    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    InternalError Internal error
    InvalidParameter.InvalidParameterCombination Invalid parameter combination.
    InvalidParameter.JobIdMalformed Invalid instance ID format.
    InvalidParameterValue Invalid parameter value.
    InvalidZone.MismatchRegion The specified zone does not exist.
    UnknownParameter Unknown parameter mistake.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback