取得版本快照詳細資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Id |
string |
是 |
快照唯一 ID。 |
8b723a9e8bd443af920b77e39aeb4f63 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
0bc14115-1234-5678-ABCD-159376359 |
| Snapshot |
object |
快照。 |
|
| Id |
string |
快照唯一 ID。 |
8b723a9e8bd443af920b77e39aeb4f63 |
| Namespace |
string |
隔離空間。 |
1389623 |
| ObjectId |
string |
所屬物件唯一 ID。 |
8467231038932407294 |
| Version |
integer |
版本號。 |
2 |
| Type |
string |
快照類型。 |
Saved |
| Creator |
string |
提交人工號。 |
209508679263509059 |
| Comment |
string |
提交備註。 |
snapshot comment |
| CreateTime |
integer |
快照產生時間(毫秒時間戳記)。 |
1782370983000 |
| Content |
object |
結構化快照內容(與 ContentUrl 互斥)。 |
|
| Spec |
string |
{"version":"1.1.0"} |
|
| Content |
string |
SELECT 1 |
|
| StageCode |
string |
DEV |
|
| ContentUrl |
string |
OSS 預簽章下載 URL(與 Content 互斥)。 |
https://oss.example.com/presigned |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0bc14115-1234-5678-ABCD-159376359",
"Snapshot": {
"Id": "8b723a9e8bd443af920b77e39aeb4f63",
"Namespace": "1389623",
"ObjectId": "8467231038932407294",
"Version": 2,
"Type": "Saved",
"Creator": "209508679263509059",
"Comment": "snapshot comment",
"CreateTime": 1782370983000,
"Content": {
"Spec": "{\"version\":\"1.1.0\"}",
"Content": "SELECT 1",
"StageCode": "DEV"
},
"ContentUrl": "https://oss.example.com/presigned"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 404 | InvalidSnapshot.NotFound | The specified snapshot does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。