All Products
Search
Document Center

Application Real-Time Monitoring Service:GetTraceApp

Last Updated:Oct 26, 2026

Retrieves the details of an Application Monitoring job.

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

arms:GetTraceApp

none

*TraceApp

acs:arms:{#regionId}:{#AccountId}:traceapp/{#Pid}

None None

Request parameters

Parameter

Type

Required

Description

Example

Pid

string

Yes

The application ID.

On the Application Monitoring > Applications page in the ARMS console, click the name of the target application. The URL in the browser address bar contains the PID of the application in the format of pid=xxx. Because the browser encodes the URL, you must modify the PID. For example, if the PID in the URL is xxx%4074xxx, replace %40 with @. The modified PID is xxx@74xxx.

b590lhguqs@d8deedfa9bf****

RegionId

string

Yes

The region ID.

cn-hangzhou

Tags

array<object>

No

The tags.

object

No

The list of tags.

Key

string

No

The tag key.

TestKey

Value

string

No

The tag value.

TestValue

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

D80ADAAC-8C32-5479-BD14-C28CF832****

TraceApp

object

The response struct.

Type

string

The monitoring job type. Valid values:

  • TRACE: Application Monitoring.

  • RETCODE: Browser Monitoring.

TRACE

AppName

string

The application name.

arms-k8s-demo

UpdateTime

integer

The timestamp of the update time.

1635700348000

Show

boolean

Specifies whether the application is displayed in the ARMS console. Valid values:

  • true: The application is displayed.

  • false: The application is not displayed.

true

CreateTime

integer

The timestamp of the creation time.

1576599253000

Pid

string

The PID string of the application.

b590lhguqs@d8deedfa9bf****

AppId

integer

The application ID.

123

UserId

string

The user ID.

113197164949****

RegionId

string

The region ID.

cn-hangzhou

Labels

array

The list of application tags.

string

The application tag.

[ "test", "123123123", "uat" ],

Tags

array<object>

The key-value pair tags.

object

The key-value pair tags.

Key

string

The tag key.

TestKey

Value

string

The tag value.

TestValue

Source

string

The application source.

ACSK8S

ResourceGroupId

string

The resource group ID.

rg-acfmxyexli2****

ClusterId

string

The cluster ID. This parameter is used only in container scenarios.

c905d1364c2dd4b6284a3f41790c4****

Language

string

The programming language.

java

Examples

Success response

JSON format

{
  "RequestId": "D80ADAAC-8C32-5479-BD14-C28CF832****",
  "TraceApp": {
    "Type": "TRACE",
    "AppName": "arms-k8s-demo",
    "UpdateTime": 1635700348000,
    "Show": true,
    "CreateTime": 1576599253000,
    "Pid": "b590lhguqs@d8deedfa9bf****",
    "AppId": 123,
    "UserId": "113197164949****",
    "RegionId": "cn-hangzhou",
    "Labels": [
      "[       \"test\",       \"123123123\",       \"uat\"     ],"
    ],
    "Tags": [
      {
        "Key": "TestKey",
        "Value": "TestValue"
      }
    ],
    "Source": "ACSK8S",
    "ResourceGroupId": "rg-acfmxyexli2****",
    "ClusterId": "c905d1364c2dd4b6284a3f41790c4****",
    "Language": "java"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.