API overview

Updated at:

API standards and multilingual preset SDKs

The OpenAPI of this product (Green/2022-09-26) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.

Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

API catalog

API

Title

Description

AddKeywordLib Add a keyword library Creates a keyword library.
DeleteFeatureConfig Delete feature configuration Delete feature configuration
ExportCipStats Export usage data Exports the usage data.
ExportOssCheckStat Export OSS scan task usage statistics Exports OSS usage statistics.
GetCipStats Query usage statistics Queries the call volume.
GetFeatureConfig Query feature configurations Retrieves feature configurations.
GetOssCheckResultDetail Query details of OSS inspection results Retrieves the details of OSS inspection results.
GetOssCheckStat Query OSS usage statistics Queries the usage statistics of OSS.
GetScanResult Query detection results Queries the call results.
GetServiceConf Get Rule Configuration Get a Single Service
GetServiceConfig Retrieve rule configuration Retrieves a single service.
GetUserBuyStatus Retrieve user purchase status Retrieves the purchase status of a user.
AddAnswerSample Add fallback answers Adds fallback answers.
AddAppAgent Add agent Adds agent configurations to an application.
AddAppConfig Create moderation agent configuration Creates an application configuration.
AddImageLib Add an image library Creates an image library.
AddImages2Lib Add images to an image library Adds multiple images to an image library.
AddKeywords Add keywords Adds keywords.
AddKeywordsToLib Add keywords to a keyword library Adds keywords.
CancelStockOssCheckTask Cancel an OSS scan task Cancels an OSS scan task.
ConfirmAiAppScan Confirm the activation of agent protection Confirms the activation of AI application protection.
CopyAppConfig Copy app configuration Copies the app configuration.
CopyServiceConfig Copy rule configuration Copies a service.
CreateAnswerLib Create a fallback answer library Creates a fallback answer library.
CreateAppConfig Create app configuration Creates an app configuration.
CreateCallback Create a message notification Creates a message notification.
CreateImageLib Create a custom image library Creates an image library.
CreateOnlineTest Create an online test task Creates an online detection task.
CreatePreCheck Perform pre-checks before creating an OSS scan task Performs pre-checks before creating an OSS scan task.
CreatStockOssCheckTask Create an OSS scan task Creates an OSS scan task.
DeleteAnswerLib Delete a proxy answer library Deletes a proxy answer library.
DeleteAnswerSample Delete proxy answers Deletes proxy answers.
DeleteAppAgent Delete agent configuration Deletes the agent configuration.
DeleteCallback Delete a message notification Deletes a message notification.
DeleteImagesFromLib Delete images from an image library Deletes images in batches.
DeleteKeyword Delete keywords Deletes keywords.
DeleteKeywordLib Delete a keyword library Deletes a keyword library.
DeleteOnlineTest Cancel an online test task Deletes an online detection task.
DescribeOnlineTestResult Query online detection results Queries the online detection results.
DescribeOssV2Result Query OSS detection results Retrieves OSS results v2.
ExportAnswerSample Export proxy answer responses Exports proxy answer responses.
ExportKeyword Export keywords Exports keywords.
ExportResult Export OSS detection task results Exports the OSS scan results.
ExportScanResult Export detection results Exports the call results to an Excel file.
ExportTextScanResult Export text detection results Exports call results to an Excel file.
GetAiAppDetail Retrieve agent details Retrieves the details of an AI application.
GetAiAppDetailStat Retrieve agent statistics Retrieves the statistics of an AI application.
GetAiAppDetailTopo Retrieve agent topology Retrieves the topology of an AI application.
GetAiAppNodeDetail Retrieve agent topology node details Retrieves the details of an app node.
GetAiAppOverview Retrieve agent overview Retrieves the overview of AI applications.
GetAiAppStats Retrieve agent risk report statistics Retrieves statistical data for AI applications.
GetAiAppTraceDetail Retrieve agent alert details Retrieves the details of an application alert.
GetAnswerImportProgress Retrieve the import progress of fallback answers Retrieves the import progress of fallback answer samples.
GetAppConfig Retrieve application configuration Queries the details of an application configuration.
GetBackupBucketsList Retrieve bucket list for evidence dumping Retrieves the list of user buckets for evidence dumping.
GetBackupConfig Get Evidence Backup Configuration Get Evidence Backup Configuration
GetBackupStatus Query evidence archiving user status Verifies user authorization.
GetBucketsList List buckets Lists buckets.
GetExecuteTime Retrieve estimated execution time of a scheduled task Retrieves the estimated execution time of a scheduled task.
GetGuardLogStats Retrieve AI security guardrail log statistics Retrieves the statistics of AI security guardrail logs.
GetGuardStatus Retrieve access status Retrieves the statistics information on AI application protection data.
GetImageSceneLabelConf Retrieve image rule tag information Retrieves image rule tag information.
GetImageSceneLabelListConf Retrieve image rule tag information Retrieves image rule tag information.
GetJobNameList Query the scheduled scan detection cycle for OSS Queries the scheduled scan detection cycle for OSS.
GetKeywordImportResult Query keyword import results Queries the keyword import results.
GetKeywordLib Retrieve keyword library information Retrieves the information about a keyword library.
GetOssCheckFreezeResult Query freezing results of OSS detection Queries the freezing results of OSS detection.
GetOssCheckStatus Retrieve OSS detection status Retrieves the OSS detection user status.
GetOssCheckTaskInfo Retrieve OSS scan task information Queries the details of an OSS scan task.
GetPromptTestResult Retrieve custom prompt test results Tests the feature configuration.
GetQpsStats QPS statistics Queries the queries per second (QPS) statistics information.
GetRiskStats Query risk statistics Queries risk posture statistics.
GetScanNum Retrieve pending detection information of the user Retrieves the pending detection information of the user.
GetServiceLabelConfig Retrieve the tag configuration of a rule configuration Retrieves the tag configuration of a single service.
GetStockOssCheckTasksList List OSS scan tasks Queries the list of OSS scan tasks.
GetTextScanResult Query text moderation results Queries the invocation results.
GetTuneProposalById Retrieve policy tuning results Retrieves tuning recommendations for switch configurations.
GetUploadContent Retrieve uploaded file content Retrieves the text content of an uploaded file.
GetUploadInfo Retrieve file upload information Retrieves the information required for file upload.
GetUploadLink Query upload URL Retrieves an upload URL.
InitAiAppScan Initialize agent protection Initializes AI application log scanning and activates the service.
ListAiAppByPage Query a paginated list of agents Queries a paginated list of AI applications.
ListAiAppRiskEvent Query agent risk events Retrieves a list of risk events for AI applications.
ListAiAppRiskEventByPage Query paginated risk events Queries a paginated list of risk events for AI applications.
ListAiAppWarningByPage List paginated agent alerts Retrieves a paginated list of application alerts.
ListAnswerLib List proxy answer libraries Queries the list of proxy answer libraries.
ListAppConfigHistory Retrieve historical versions of an app Retrieves the historical versions of an app.
ListAppConfigs Retrieve application list Retrieves a list of application configurations.
ListCallback List message notifications Queries the list of message notifications.
ListImageLib List image libraries Queries a list of image libraries.
ListImagesFromLib List images in an image library Queries a paginated list of images.
ListKeywordLibs List keyword libraries Queries a list of keyword libraries.
ListKeywords List keywords Queries a list of keywords.
ListOssCheckResult Query OSS scan results Queries the OSS scan results.
ListServiceConfigs Retrieve rule configuration list Retrieves a list of services.
LlmStreamChat Stream large language model conversations Invokes a large language model in streaming mode by using the Server-Sent Events (SSE) API.
MarkOssV2Result Handle OSS detection results Provides feedback on OSS detection results.
ModifyAnswerLib Edit a fallback library Updates a fallback library.
ModifyAppAgent Modify agent configuration Modifies the configuration of an agent.
ModifyAppInfo Modify app information Modifies the information of an app.
ModifyCallback Edit message notifications Updates message notifications.
ModifyFeatureConfig Edit feature configuration Saves the feature configuration.
ModifyServiceInfo Edit rule configuration Modifies a service.
OssCheckResultList Query OSS scan results Retrieves a list of OSS scan results.
PublishAppConfig Publish app configuration Saves and publishes the application configuration.
QueryAnswerSampleByPage Perform paged query for fallback answers Performs a paged query for fallback answer samples with paging.
QueryCallback Query message notifications Queries a callback configuration.
QueryCallbackByPage Query the message notification list with paging Queries the message notification list with paging.
QueryLabelConfig Query tag configuration Queries the tag configuration.
RecoverAppConfigHistory Restore app to historical version Restores an app to a historical version.
StopOnlineTest Abort online detection task Aborts an online detection task.
UpdateAiAppScanStatus Update agent detection status Updates the scan status of an AI application.
UpdateBackupConfig Edit evidence transfer configuration Updates the evidence transfer configuration.
UpdateEventStatus Handle risk events Updates the handling status of risk events for a specified application.
UpdateImageLib Modify an image library Modifies an image library.
UpdateImageLibFreeInspection Modify image library inspection exemption configuration Modifies the inspection exemption configuration for an image library.
UpdateKeywordLib Edit a keyword library Edits a keyword library.
UpdateMetaLog Update log delivery information Updates the metadata log information.
UpdateOssCheckResultsBatchFeedback Batch update detection result feedback Updates feedback for OSS detection results in batches.
UpdateOssCheckResultsFeedBack Update OSS detection result feedback Updates the feedback for OSS detection results.
UpdateOssCheckResultsFreeze Update OSS scan result freezing Freezes OSS scan results in batches.
UpdateOssCheckResultsUnfreeze Unfreeze OSS detection results Unfreezes OSS detection results in batches.
UpdateScanResultFeedback Submit detection result feedback Submits feedback on detection results.
UpdateServiceConfig Update service configuration Updates a service.