GetAiAppDetail

Updated at:

Retrieves the details of an AI application.

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

yundun-greenweb:GetAiAppDetail

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The ID of the AI application. This parameter is required. The AppId is derived from an AI application on an integrated external AI platform, such as Model Studio or Dify. Before calling this API, you must call InitAiAppScan to initiate the activation and then call ConfirmAiAppScan to confirm the activation of the AI application detection service. To obtain a valid AppId, call ListAiAppByPage to query the list of integrated applications.

id-xxx

RegionId

string

No

The region ID.

cn-shanghai

StartTime

string

No

The start time. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2026-01-01 00:00:00

EndTime

string

No

The end time. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2026-01-02 00:00:00

Response elements

Element

Type

Description

Example

object

PortalResponse

RequestId

string

The ID of the request. It is generated by the server and uniquely identifies the request. You can use this ID to troubleshoot issues.

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****

Uid

string

The UID of the user.

17726*****370735

AppId

string

The ID of the AI application.

id-xxx

AppName

string

The name of the application.

app-xxx

Score

integer

The score.

100

Chart

object

The chart.

X

array

The X-axis value of the coordinate point.

string

The X-axis value of the coordinate point.

20260101

Y

array<object>

The Y-axis value of the coordinate point.

object

The data.

Name

string

The name.

score

Data

array

The returned collection.

integer

The score.

100

RiskEvents

array<object>

The risk events.

array<object>

EventCode

string

The code of the risk event.

hit_xxx

EventName

string

The name of the risk event.

Verbal abuse and personal attacks

EventIds

array

The list of risk event IDs.

string

The ID of the risk event.

id-xxx

Labels

array<object>

The labels.

object

The labels.

Type

string

The type.

contentModeration

Label

string

The labels.

inappropriate_profanity

LabelDesc

string

The description of the label.

The output content contains insulting or discriminatory remarks

EventStatus

string

The status of the event. Valid values:

  • unhandled: Unhandled.

  • resolved: Resolved.

resolved

EventCount

integer

The number of events.

10

RiskStats

array<object>

The risk statistics information.

object

The first risk statistics information.

Type

string

The type of the risk statistics.

content_moderation

RiskCount

integer

The number of risks.

1

RequestCount

integer

The number of requests.

10

Property

object

The properties.

Hostname

string

The hostname.

xx.local

Ip

string

The IP address.

1.xx.xx

Mac

string

The MAC address.

xx.xx.xx

Email

string

The email address.

xx@qoder.alibaba-inc.com

Channel

string

The channel information.

qoder

Examples

Success response

JSON format

{
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
  "Uid": "17726*****370735",
  "AppId": "id-xxx",
  "AppName": "app-xxx",
  "Score": 100,
  "Chart": {
    "X": [
      "20260101"
    ],
    "Y": [
      {
        "Name": "score",
        "Data": [
          100
        ]
      }
    ]
  },
  "RiskEvents": [
    {
      "EventCode": "hit_xxx",
      "EventName": "Insults and personal attacks",
      "EventIds": [
        "id-xxx"
      ],
      "Labels": [
        {
          "Type": "contentModeration",
          "Label": "inappropriate_profanity",
          "LabelDesc": "The output content contains insulting or discriminatory remarks"
        }
      ],
      "EventStatus": "resolved",
      "EventCount": 10
    }
  ],
  "RiskStats": [
    {
      "Type": "content_moderation",
      "RiskCount": 1,
      "RequestCount": 10
    }
  ],
  "Property": {
    "Hostname": "xx.local",
    "Ip": "1.xx.xx",
    "Mac": "xx.xx.xx",
    "Email": "xx@qoder.alibaba-inc.com"
  },
  "Channel": "qoder"
}

Error codes

HTTP status code

Error code

Error message

Description

200 BusinessError.%s %s. The business rule verification fails, and the current request conflicts with existing data or resource status.
400 InvalidParameter.%s %s. The request parameters are invalid. Please check the parameter values or value ranges and try again.
400 MissingParameter.%s %s. The request is missing required parameters. Please provide them and try again.
400 OperationFailed %s. Request processing failed, please try again later. If the problem is not resolved, contact technical support and provide RequestId.
400 ResourceNotFound.%s %s. The requested resource does not exist. Please check the resource information and try again.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.