调用DescribeDiagnosticReportList接口查询诊断报告列表。

重要 此API接口已不再维护,请使用数据库自治服务DAS提供的功能相同的API接口DescribeDiagnosticReportList
  • 返回诊断报告的数据采集时间、生成时间和下载地址等,诊断报告保留15天。
  • SQL Server 2017集群版不支持该接口。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeDiagnosticReportList

系统规定参数。取值:DescribeDiagnosticReportList

DBInstanceId String rm-uf6wjk5xxxxxxx

实例ID。

ResourceGroupId String rg-acfmy*****

资源组ID。

返回数据

名称 类型 示例值 描述
RequestId String B7E9A79C-DE1B-4398-845F-D654FC0958BD

请求ID。

ReportList Array of Report

返回的诊断报告列表。

EndTime String 2018-01-10T15:31:00Z

监控数据结束时间。

DiagnosticTime String 2018-01-17T12:46:09Z

诊断时间。

StartTime String 2018-01-10T15:30:00Z

监控数据起始时间。

Score Integer 100

诊断分数。

DownloadURL String http://rdsreport-hz-v3.oss-cn-hangzhou.aliyuncs.com/xxxxx

公网下载地址,若当前不可下载,则为空串。

DBInstanceId String rm-uf6wjk5*****

实例ID。

示例

请求示例

http(s)://rds.aliyuncs.com/?Action=DescribeDiagnosticReportList
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<DescribeDiagnosticReportListResponse>
	<reportList>
		<diagnosticTime>2018-01-17T12:46:09Z</diagnosticTime>
		<downloadURL>http://rdsreport-hzi-v2.oss-cn-hangzhou-i.aliyuncs.com/xxxxx</downloadURL>
		<endTime>2018-01-10T15:31:00Z</endTime>
		<score>100</score>
		<startTime>2018-01-10T15:30:00Z</startTime>
	</reportList>
	<requestId>B7E9A79C-DE1B-4398-845F-D654FC0958BD</requestId></DescribeDiagnosticReportListResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "reportList" : [ {
    "diagnosticTime" : "2018-01-17T12:46:09Z",
    "downloadURL" : "http://rdsreport-hzi-v2.oss-cn-hangzhou-i.aliyuncs.com/xxxxx",
    "endTime" : "2018-01-10T15:31:00Z",
    "score" : 100,
    "startTime" : "2018-01-10T15:30:00Z"
  } ],
  "requestId" : "B7E9A79C-DE1B-4398-845F-D654FC0958BD"
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidParam.NotExists The specified parameter does not exist. 参数不存在

访问错误中心查看更多错误码。