tencent cloud

Feedback

DescribeComplianceAssetDetailInfo

Last updated: 2024-12-06 15:46:53

    1. API Description

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

    This API is used to query the details of an asset.

    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: DescribeComplianceAssetDetailInfo.
    Version Yes String Common Params. The value used for this API: 2020-11-01.
    Region No String Common Params. This parameter is not required.
    CustomerAssetId Yes Integer Customer asset ID

    3. Output Parameters

    Parameter Name Type Description
    AssetDetailInfo ComplianceAssetDetailInfo Asset details
    ContainerDetailInfo ComplianceContainerDetailInfo This field is returned when the asset is a container.
    Note: This field may return null, indicating that no valid values can be obtained.
    ImageDetailInfo ComplianceImageDetailInfo This field is returned when the asset is an image.
    Note: This field may return null, indicating that no valid values can be obtained.
    HostDetailInfo ComplianceHostDetailInfo This field is returned when the asset is a server.
    Note: This field may return null, indicating that no valid values can be obtained.
    K8SDetailInfo ComplianceK8SDetailInfo This field is returned when the asset is a K8s asset.
    Note: This field may return null, indicating that no valid values can be obtained.
    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 请求资产详细信息

    请求资产详细信息

    Input Example

    POST / HTTP/1.1
    Host: tcss.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeComplianceAssetDetailInfo
    <common request parameters>
    
    {
        "CustomerAssetId": 2202462
    }
    

    Output Example

    {
        "Response": {
            "AssetDetailInfo": {
                "AssetCreateTime": "2024-07-24 11:32:45",
                "AssetName": "my-elasticsearch-container",
                "AssetStatus": "ASSET_STOPPED",
                "AssetType": "ASSET_CONTAINER",
                "CheckResult": "RESULT_FAILED",
                "CheckStatus": "CHECK_FINISHED",
                "CustomerAssetId": 2202462,
                "FailedPolicyItemCount": 7,
                "HostIP": "172.16.49.104",
                "HostName": "VM-49-104-centos",
                "LastCheckTime": "2024-07-24 11:17:15",
                "NodeName": "云镜漏洞测试机-目标机器",
                "PassedPolicyItemCount": 17
            },
            "ContainerDetailInfo": {
                "ContainerId": "e822238a07e0",
                "PodName": "PodName"
            },
            "HostDetailInfo": {
                "DockerVersion": "2.3",
                "K8SVersion": "1.24"
            },
            "ImageDetailInfo": {
                "ImageId": "id1",
                "ImageName": "name",
                "ImageTag": "tag1",
                "Repository": "repository"
            },
            "K8SDetailInfo": {
                "ClusterName": "name",
                "ClusterVersion": "1.1"
            },
            "RequestId": "ae46673b-3930-4874-9144-a514653d232c"
        }
    }
    

    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
    AuthFailure A CAM signature/authentication error occurred.
    FailedOperation The operation failed.
    InternalError An internal error occurred.
    InvalidParameter The parameter is incorrect.
    InvalidParameter.MissingParameter The required parameter is missing.
    OperationDenied The operation was denied.
    RequestLimitExceeded The number of requests exceeds the frequency limit.