Add Tencent Cloud CWP service adapter#229
Open
632661265flynn-dotcom wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tencent-cwpOctoBus service package for Tencent Cloud Host Security 3.0 / CWP API 3.0Describe*invocation pathMethods
DescribeMachinesDescribeMachineGeneralDescribeMalWareListDescribeVulListDescribeBaselineDetectOverviewDescribeMachineRiskCntInvokeReadOnlyActionTests
cd services && npm run validate -- --service-dir tencent__cwpcd services && npm test -- --service-dir tencent__cwpcd services && npm run import:checkcd services && npm run pack:checkReal API verification
DescribeMachineGeneral,DescribeMachineRiskCnt,DescribeMachineRegions,DescribeMachines,DescribeMalWareList,DescribeVulList, andDescribeBaselineDetectOverviewreturned successful Tencent Cloud responses.Closes #117
Live verification evidence (redacted)
Secrets, signatures, and real asset identifiers are masked. Request path, method, headers, status code, and response structure are kept visible.
联调证据:Tencent CWP DescribeMachineGeneral 跑通
Request
POST https://cwp.tencentcloudapi.com
Authorization: TC3-HMAC-SHA256 Credential=AKIDgLMJ/2026-06-25/cwp/tc3_request, SignedHeaders=content-type;host, Signature=**
Content-Type: application/json; charset=utf-8
Host: cwp.tencentcloudapi.com
X-TC-Action: DescribeMachineGeneral
X-TC-Version: 2018-02-28
X-TC-Timestamp: 1782413906
X-TC-Region: ap-guangzhou
{}
Response HTTP/1.1 200 OK
{
"Response": {
"AliCloudMachineCnt": 0,
"BaiduCloudMachineCnt": 0,
"BaseMachineCnt": 0,
"CloudFrom": [],
"CompareYesterdayDeadlineMachineCnt": 0,
"CompareYesterdayMachineCnt": 0,
"CompareYesterdayNotProtectMachineCnt": 0,
"CompareYesterdayRiskMachineCnt": 0,
"DeadlineMachineCnt": 0,
"FlagshipMachineCnt": 0,
"IDCMachineCnt": 0,
"LHGeneralDiscountCnt": 0,
"MachineCnt": 0,
"MachineDestroyAfterOfflineHours": 0,
"NotProtectMachineCnt": 0,
"OtherCloudMachineCnt": 0,
"ProtectMachineCnt": 0,
"RequestId": "d60b6425-6609-46e9-bba1-25844bba2901",
"RiskMachineCnt": 0,
"SpecialtyMachineCnt": 0,
"TencentCloudMachineCnt": 0
}
}