tencent cloud

APIs

UploadSkillSecScan

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-17 19:18:54

1. API Description

Domain name for API request: waf.intl.tencentcloudapi.com.

This API is used to upload a Skill ZIP file and trigger asynchronous security detection.

A maximum of 3 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 Params. The value used for this API: UploadSkillSecScan.
Version Yes String Common Params. The value used for this API: 2018-01-25.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-hongkong, ap-jakarta, ap-singapore.
ServiceId Yes String

Service ID.

FileData Yes String

Base64-encoded data of the zip archive.

FileName No String

Name of the compressed Skill file, ending with .zip.

3. Output Parameters

Parameter Name Type Description
Data SkillScanUploadData

Upload result.

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 skill Upload API

** indicates masked content. The caller needs to fill in FileData based on the actual file content.

Input Example

POST / HTTP/1.1
Host: waf.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UploadSkillSecScan
<Common request parameters>

{
    "ServiceId": "waf-test",
    "FileName": "f_20260427_111914_6743bc29.zip",
    "FileData": "UEsDBBQAAAAIAAAAISi9Qo7w6AIAANYFAAAIAAAAU0tJTEwubWRtVMFO3DAQvecrRuICdMmqpaUSt2pBalWEENDtNSaZJKN1bNd2loZDv70zTja7pdziZPLemzd**ATf+yf0BiMGWOk+RPSwsp2zBk2EK************R9D6clFsib70kfb**********i2B**MY5Tmh9qrEH1fxt4jlD**/s*COu*uR+4cHlsKEDakNWyVpmqm**o3GH**jGVqanqvRM0C8DeW/RtqHD**ZB**b7v0cRbn0dlA0fphAcpU4NDX****DJYYgvIDcEE8O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AIAANYFAAAIAAAAAAAAAAAAAACkgQAAAABTS0lMTC5tZFBLAQIUAxQAAAAIAAAAISi7AeZX8wMAABcJAAAOAAAAAAAAAAAAAACkgQ4DAABzY3JpcHRzL3J1bi5weVBLBQYAAAAAAgACAHIAAAAtBwAAAAA="
}

Output Example

{
    "Response": {
        "Data": {
            "ContentHash": "sha256:efbc9937af7cd8fa4835908d753dd6272a521da849b2cfdb58b5f5f281c79a4a",
            "Message": "The detection record already exists. No need to upload it again.",
            "Status": "success"
        },
        "RequestId": "c175da86-5773-410a-80e0-e9aa2b8d94f1"
    }
}

5. Developer Resources

SDK

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
InvalidParameter.SkillScanApiKeyDisabled The API Key has been disabled.
InvalidParameter.SkillScanCreateScanFailed Failed to create the scan task due to an internal service error.
InvalidParameter.SkillScanInvalidBase64 FileData is not a valid Base64-encoded string.
InvalidParameter.SkillScanInvalidFileFormat The file is not a valid ZIP archive.
InvalidParameter.SkillScanInvalidParam Parameter validation failed, such as an invalid content_hash format or missing required fields.
InvalidParameter.SkillScanInvalidRequest Invalid request format, such as an incorrect Content-Type or JSON parsing failure.
InvalidParameter.SkillScanNoFiles No uploaded file detected.
InvalidParameter.SkillScanQueryFailed Failed to query due to an internal service error.
InvalidParameter.SkillScanRateLimitExceeded Request frequency limit exceeded.
InvalidParameter.SkillScanServiceIdEmpty ServiceId is empty.
InvalidParameter.SkillScanSwitchOff The protection switch is not enabled.
InvalidParameter.SkillScanTriggerFailed Failed to trigger the detection task due to an internal service error.
InvalidParameter.SkillScanUnauthorized The API Key is missing or invalid.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック