Domain name for API request: csip.intl.tencentcloudapi.com.
Retrieve the IaC detection file report
A maximum of 20 requests can be initiated per second for this API.
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: DescribeIaCFileReport. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| AssetId | Yes | Integer | Asset ID |
| MemberId.N | No | Array of String | Group Account Member ID |
| Parameter Name | Type | Description |
|---|---|---|
| File | String | Detect file |
| Status | Integer | Detection status (0: pending scan, 1: detecting, 2: completed, 3: detection exception) |
| ScanTime | Timestamp ISO8601 | Detection time |
| Risks | Array of IaCFileRisk | Risk list |
| 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. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeIaCFileReport
<Common request parameters>
{
"AssetId": 8130,
"MemberId": [
"mem-a6df317cb6a8c424"
]
}
{
"Response": {
"File": "apiVersion: v1\nkind: Service\nmetadata:\n name: ai-inference-svc\n namespace: ai-platform\n labels:\n app: ai-inference\nspec:\n type: NodePort\n selector:\n app: ai-inference\n ports:\n - name: http\n port: 8080\n targetPort: 8080\n nodePort: 30080\n - name: metrics\n port: 9090\n targetPort: 9090\n nodePort: 30090\n",
"Risks": [
{
"Description": "Service should not use NodePort type. NodePort will expose the static port of the service on every node's IP, which may pose a security risk because it bypasses the security control of the load balancer and directly exposes the service on the network."
"Level": 0,
"Line": 9,
"RuleName": "K8s Service should avoid using NodePort type"
"Suggestion": "Change the Service type to ClusterIP or LoadBalancer to avoid direct exposure of node ports."
}
],
"ScanTime": "2026-04-01T07:23:22Z",
"Status": 2,
"RequestId": "6f25933a-914d-46d6-af68-37763a102b26"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | An internal error occurs. |
| InvalidParameter | The parameter is incorrect. |
| ResourceNotFound | The resource doesn't exist. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan