tencent cloud

Feedback

DescribeSnapshotOperationLogs

Last updated: 2023-03-16 16:19:00

    1. API Description

    This API will be disused soon.

    Planned disuse time: 2023-05-17 10:22:37

    Domain name for API request: cbs.tencentcloudapi.com.

    This API has been disused. Use the CloudAudit API instead, For more information, visit https://tapd.woa.com/pro/prong/stories/view/1010114221880719007.

    This API is used to query the operation logs of a snapshot. It will be disused soon. Use LookUpEvents instead.

    A maximum of 20 requests can be initiated per second for this API.

    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: DescribeSnapshotOperationLogs.
    Version Yes String Common Params. The value used for this API: 2017-03-12.
    Region No String Common Params. This parameter is not required for this API.
    Filters.N Yes Array of Filter Filter conditions. The following conditions are supported:
  • snapshot-id - Array of String - Required or not: Yes - Filter by snapshot ID, with maximum of 10 snapshot IDs able to be specified per request.
  • BeginTime No Date The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00"
    EndTime No Date The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59"

    3. Output Parameters

    Parameter Name Type Description
    SnapshotOperationLogSet Array of SnapshotOperationLog List of snapshot operation logs.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying the operation logs of a snapshot

    Input Example

    POST / HTTP/1.1
    Host: cbs.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeSnapshotOperationLogs
    <Common request parameters>
    
    {
        "Filters": [
            {
                "Values": [
                    "snap-0y61iiyj"
                ],
                "Name": "snapshot-id"
            }
        ]
    }
    

    Output Example

    {
        "Response": {
            "SnapshotOperationLogSet": [
                {
                    "OperationState": "SUCCESS",
                    "StartTime": "2018-12-18 17:52:37",
                    "Operator": "546816713",
                    "SnapshotId": "snap-0y61iiyj",
                    "Operation": "SNAP_OPERATION_ROLLBACK",
                    "EndTime": "2018-12-18 17:52:38"
                },
                {
                    "OperationState": "SUCCESS",
                    "StartTime": "2018-12-18 17:51:47",
                    "Operator": "546816713",
                    "SnapshotId": "snap-0y61iiyj",
                    "Operation": "SNAP_OPERATION_ROLLBACK",
                    "EndTime": "2018-12-18 17:51:48"
                },
                {
                    "OperationState": "SUCCESS",
                    "StartTime": "2018-12-18 11:57:46",
                    "Operator": "",
                    "SnapshotId": "snap-0y61iiyj",
                    "Operation": "ASP_OPERATION_CREATE_SNAP",
                    "EndTime": "2018-12-18 11:57:47"
                }
            ],
            "RequestId": "0dc7b07a-5f6b-46c4-b1d9-048e37d1c33c"
        }
    }
    

    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.ComponentError Dependent component request failed. Please contact customer service.
    InvalidParameter Incorrect parameter.
    InvalidParameterValue Invalid parameter value.
    InvalidParameterValue.LimitExceeded Number of parameter values exceeds the limit.
    InvalidSnapshotId.NotFound The ‘SnapshotId’ entered does not exist.
    MissingParameter Missing parameter.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support