tencent cloud

文档反馈

DescribeSnapshotOperationLogs

最后更新时间:2022-01-19 10:54:32

1. API Description

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

This API (DescribeSnapshotOperationLogs) is used to query a list of snapshot operation logs.

You can filter according to the snapshot ID. The snapshot ID format is as follows: snap-a1kmcp13.

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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeSnapshotOperationLogs.
Version Yes String Common parameter. The value used for this API: 2017-03-12.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
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

    https://cbs.tencentcloudapi.com/?Action=DescribeSnapshotOperationLogs
    &Filters.0.Name=snapshot-id
    &Filters.0.Values.0=snap-0y61iiyj
    &<Common request parameters>
    

    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.
    联系我们

    联系我们,为您的业务提供专属服务。

    技术支持

    如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

    7x24 电话支持