調用DescribeDiagnosticReportList介面擷取診斷報告列表。

返回診斷報告的資料擷取時間、產生時間和下載地址等,診斷報告保留15天。

说明 SQL Server 2017叢集版不支援該介面。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String DescribeDiagnosticReportList

系統規定參數。取值:DescribeDiagnosticReportList

DBInstanceId String rm-uf6wjk5xxxxxxx

執行個體ID。

AccessKeyId String LTAIfCxxxxxxx

阿里雲頒發給使用者的訪問服務所用的密鑰ID。

返回資料

名稱 類型 樣本值 描述
RequestId String B7E9A79C-DE1B-4398-845F-D654FC0958BD

請求ID。

ReportList

返回的診斷報告列表。

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

診斷時間。

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

公網下載地址,若當前不可下載,則為空白串。

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

監控資料結束時間。

Score Integer 100

診斷分數。

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

監控資料起始時間。

樣本

請求樣本


http(s)://rds.aliyuncs.com/?Action=DescribeDiagnosticReportList
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<公用請求參數>

正常返回樣本

XML 格式

<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 格式

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

錯誤碼

訪問錯誤中心查看更多錯誤碼。