GetScanResult

Updated at:

Queries the call results.

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:GetScanResult

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

StartDate

string

No

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

2023-08-11 09:00:19

EndDate

string

No

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

2023-08-24 10:01:55

Query

object

No

The search conditions.

{"RequestId":"1E4A2F01-2B3C-4D5E-6F70-8192A3B4C5D6"}

string

No

The search conditions.

{"RequestId":"xxx"}

ResourceType

string

No

The resource type. Note: This parameter is required. If it is not provided, the API returns ScanResultQueryFailed (HTTP 400). Valid value: image.

image

PageSize

integer

No

The number of entries per page.

10

CurrentPage

integer

No

The current page number.

1

Sort

object

No

The sort field.

{"RequestTime":"desc"}

string

No

The sort field.

{"RequestTime":"desc"}

RegionId

string

No

The region ID.

cn-shanghai

Response elements

Element

Type

Description

Example

object

The response body.

Data

object

The returned data.

TotalCount

integer

The total number of records.

1

PageSize

integer

The number of entries per page.

10

CurrentPage

integer

The current page number.

1

Items

array<object>

The data on the current page.

array<object>

The data on the current page.

GmtCreate

string

The creation time. The format is YYYY-MM-DD HH:mm:ss.

2023-08-11 09:00:19

RequestTime

string

The request time. The format is YYYY-MM-DD HH:mm:ss.

2023-08-11 09:00:19

DataId

string

The data ID.

4f27b8cc7c4544cb90b41882a5b36326

RequestId

string

The request ID.

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

ServiceCode

string

The service code.

baselineCheck

ScanResult

string

The result details.

{}

Labels

string

The labels.

nonLabel

NoLabels

array

No labels.

string

The labels.

nonLabel

ImageUrl

string

The image URL.

https://www.aliyuncs.com/xxx.png

Content

string

The content.

This is sample text content to be moderated

TaskId

string

The task ID.

vi_s_EbrXb716LyBpkfwxyX5xyh-1A6RY9

Score

number

The score.

25

Suggestion

string

The suggestion.

review

ExtFeedback

string

The feedback information.

The scan detected violating content, and the manual review conclusion is a violation

Url

string

The task URL.

https://www.aliyuncs.com/xxx.png

TimeStamp

string

The timestamp.

00:00:40-00:00:42

FrameCount

integer

The number of frames.

20

ImageService

string

The image service.

baselineCheck

VoiceService

string

The audio service.

live_stream_detection

ImageLabels

array<object>

The image labels.

object

The image labels.

{"nonLabel":17}

VoiceLabels

array<object>

The audio labels.

object

The audio labels.

{"political_content":11}

TextLabels

array<object>

The text labels.

object

The text labels.

{"nonLabel":17}

VoiceScanOpened

boolean

Specifies whether audio scanning is enabled.

True

Result

array<object>

The returned result set.

object

The returned result set.

Confidence

string

The confidence score. The value ranges from 0 to 100 and is accurate to two decimal places.

50.0

Label

string

The labels.

politics

Description

string

The description of the Label field.

Suspected pornographic content

Offset

integer

The frame capture offset.

1

StartTime

string

The start time of the segment, in seconds.

11

EndTime

string

The end time of the segment, in seconds.

22

RiskTips

string

The details of the matched risk.

Pornographic services

RiskWords

string

The matched risk keywords.

Pornography_vulgar words

Thumbnail

string

The thumbnail URL.

https://www.aliyuncs.com/xxx.png

Extra

object

The reserved parameters.

{}

PageNum

integer

The page number.

1

RiskLevel

string

The risk level, which is returned based on the configured risk score thresholds. Valid values:

  • high: High risk.

  • medium: Medium risk.

  • low: Low risk.

  • none: No risk detected.

none

SensitiveLevel

string

The sensitivity level, which is returned based on the configured risk score thresholds. Valid values:

  • S1: Low sensitivity.

  • S2: Medium sensitivity.

  • S3: High sensitivity.

  • S4: Extremely high sensitivity.

  • S0: Non-sensitive.

S0

AttackLevel

string

The attack level, which is returned based on the configured risk score thresholds. Valid values:

  • high: High risk.

  • medium: Medium risk.

  • low: Low risk.

  • none: No risk detected.

none

RequestFrom

string

The request source.

online_test

ApiRequestTime

string

The machine-assisted moderation time. The value is a UNIX timestamp in milliseconds.

1755501226

ReviewTime

string

The manual review time. The value is a UNIX timestamp in milliseconds.

1755501226

ResourceType

string

The resource type.

text

ApiTaskId

string

The machine-assisted moderation task ID.

img-a1b2c3d4e5f60718

ReviewLabels

string

The manual review labels.

porn

ReviewRiskLevel

string

The manual review status.

high

ReviewUid

string

The manual reviewer.

1234567890123456

ApiLabels

string

The machine-assisted moderation labels.

porn

ApiRiskLevel

string

The machine-assisted moderation risk level.

high

ApiService

string

The machine-assisted moderation service.

basecheckLine

ManualOnly

boolean

Specifies whether the moderation is exclusively manual.

false

Reviewed

boolean

Specifies whether the task has been manually reviewed.

false

MaliciousFileLevel

string

The risk level of the malicious file.

high

MaliciousUrlLevel

string

The risk level of the malicious URL.

high

AppId

string

The application ID.

agent_01

AccountId

string

The AccountId input parameter.

accountIdtest123

LiveId

string

The LiveId input parameter.

liveIdtest123

BailianRequestId

string

The Model Studio RequestId.

93a2f484-ac61-9b2e-9765-88600c83c1ea

Ext

string

The extended information.

multiImage

GuardImageUrls

array

The multimodal image URLs.

string

The multimodal image URLs.

https://xxx.jpg

GuardFileUrls

array

The multimodal file URLs.

string

The multimodal file URLs.

http://xxx.docx

ImageUrls

array

The list of image URLs.

string

The image URL.

https://xxxx.001.jpg

Success

boolean

The success flag.

True

Code

integer

The error code, which is consistent with the HTTP status code.

200

Msg

string

The detailed description of the error code.

OK

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues.

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

Examples

Success response

JSON format

{
  "Data": {
    "TotalCount": 1,
    "PageSize": 10,
    "CurrentPage": 1,
    "Items": [
      {
        "GmtCreate": "2023-08-11 09:00:19\n",
        "RequestTime": "2023-08-11 09:00:19\n",
        "DataId": "4f27b8cc7c4544cb90b41882a5b36326",
        "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
        "ServiceCode": "baselineCheck",
        "ScanResult": "{}",
        "Labels": "nonLabel",
        "NoLabels": [
          "nonLabel"
        ],
        "ImageUrl": "https://www.aliyuncs.com/xxx.png\n",
        "Content": "This is a sample text content for detection",
        "TaskId": "vi_s_EbrXb716LyBpkfwxyX5xyh-1A6RY9",
        "Score": 25,
        "Suggestion": "review",
        "ExtFeedback": "Violating content was detected, and the review conclusion is a violation",
        "Url": "https://www.aliyuncs.com/xxx.png\n",
        "TimeStamp": "00:00:40-00:00:42",
        "FrameCount": 20,
        "ImageService": "baselineCheck",
        "VoiceService": "live_stream_detection",
        "ImageLabels": [
          {
            "nonLabel": 17
          }
        ],
        "VoiceLabels": [
          {
            "political_content": 11
          }
        ],
        "TextLabels": [
          {
            "nonLabel": 17
          }
        ],
        "VoiceScanOpened": true,
        "Result": [
          {
            "Confidence": "50.0",
            "Label": "politics",
            "Description": "Suspected pornographic content"
          }
        ],
        "Offset": 1,
        "StartTime": "11",
        "EndTime": "22",
        "RiskTips": "Pornographic services",
        "RiskWords": "Pornography_vulgar words",
        "Thumbnail": "https://www.aliyuncs.com/xxx.png",
        "Extra": {},
        "PageNum": 1,
        "RiskLevel": "none",
        "SensitiveLevel": "S0",
        "AttackLevel": "none",
        "RequestFrom": "online_test",
        "ApiRequestTime": "1755501226",
        "ReviewTime": "1755501226",
        "ResourceType": "text",
        "ApiTaskId": "img-a1b2c3d4e5f60718",
        "ReviewLabels": "porn",
        "ReviewRiskLevel": "high",
        "ReviewUid": "1234567890123456",
        "ApiLabels": "porn",
        "ApiRiskLevel": "high",
        "ApiService": "basecheckLine",
        "ManualOnly": false,
        "Reviewed": false,
        "MaliciousFileLevel": "high",
        "MaliciousUrlLevel": "high",
        "AppId": "agent_01",
        "AccountId": "accountIdtest123",
        "LiveId": "liveIdtest123",
        "BailianRequestId": "93a2f484-ac61-9b2e-9765-88600c83c1ea",
        "Ext": "multiImage",
        "GuardImageUrls": [
          "https://xxx.jpg"
        ],
        "GuardFileUrls": [
          "http://xxx.docx"
        ],
        "ImageUrls": [
          "https://xxxx.001.jpg"
        ]
      }
    ]
  },
  "Success": true,
  "Code": 200,
  "Msg": "OK",
  "HttpStatusCode": 200,
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****"
}

Error codes

HTTP status code

Error code

Error message

Description

200 ScanResultQueryFailed Data query failed. Data query failed
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.
400 InvalidParameter.%s %s. The request parameters are invalid. Please check the parameter values or value ranges and try again.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.