tencent cloud

APIs

DescribeIaCFileReport

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-06-18 18:03:53

1. API Description

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.

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

3. Output Parameters

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.

4. Example

Example1 Example 1

Input Example

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"
    ]
}

Output Example

{
    "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"
    }
}

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
InternalError An internal error occurs.
InvalidParameter The parameter is incorrect.
ResourceNotFound The resource doesn't exist.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan