def DescribeDiskOperationLogs(self, request): """This API (DescribeDiskOperationLogs) is used to query a list of cloud disk operation logs. This can be filtered according to the cloud disk ID. The format of cloud disk IDs is as follows: disk-a1kmcp13. :param request: Request instance for DescribeDiskOperationLogs. :type request: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsRequest` :rtype: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsResponse` """ try: params = request._serialize() body = self.call("DescribeDiskOperationLogs", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDiskOperationLogsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeDiskOperationLogs(self, request): """本接口(DescribeDiskOperationLogs)用于查询云盘操作日志列表。 可根据云盘ID过滤。云盘ID形如:disk-a1kmcp13。 :param request: Request instance for DescribeDiskOperationLogs. :type request: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsRequest` :rtype: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsResponse` """ try: params = request._serialize() body = self.call("DescribeDiskOperationLogs", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDiskOperationLogsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeDiskOperationLogs(self, request): """查询云盘操作日志功能已迁移至LookUpEvents接口(https://cloud.tencent.com/document/product/629/12359),本接口(DescribeDiskOperationLogs)即将下线,后续不再提供调用,请知悉。 :param request: Request instance for DescribeDiskOperationLogs. :type request: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsRequest` :rtype: :class:`tencentcloud.cbs.v20170312.models.DescribeDiskOperationLogsResponse` """ try: params = request._serialize() body = self.call("DescribeDiskOperationLogs", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDiskOperationLogsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)