擷取 ASUP 資源
GET /accounts/{account_id}/core/v1/asups/{asup_id}
在 JSON 回應正文中傳回已儲存的 ASUP API 資源。如果 AutoSupport 套裝組合「creationState」為「completed」或「partial」,則可以透過指定包含「/」或「application/gzip」的 Accept 標頭來下載 AutoSupport 套裝組合。
參數
| Name | 類型 | 在 | 必要 | 說明 |
|---|---|---|---|---|
account_id |
字串 |
路徑 |
True |
包含帳戶資源的 ID
|
asup_id |
字串 |
路徑 |
True |
要列出的 asup 集合 ID |
回應
Status: 200, Returns the stored ASUP API resource in the JSON response body. If the AutoSupport bundle "creationState" is "completed" or "partial", the AutoSupport bundle can be downloaded by specifying an Accept header containing "*/*" or "application/gzip".
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
資源的媒體類型。定義的值為:
|
版本 |
字串 |
True |
資源版本。定義的值為:
|
ID |
字串 |
True |
資源的全域唯一識別碼。定義的值為:
|
creationState |
字串 |
True |
JSON 字串,包含指示 AutoSupport 套裝組合建立狀態的值。對於「completed」和「partial」狀態,可以透過對資源 URI 執行 GET 請求,並在 Accept 標頭中包含「/」或「application/gzip」來下載套裝組合。定義的值為:
|
creationStateDetails |
True |
JSON 物件的 JSON 陣列,其中列出了有關「creationState」為何轉換為「partial」或「failed」的更多詳細資訊。如果沒有可用的詳細資料,此陣列將為空白。
|
|
上傳 |
字串 |
True |
JSON 字串包含一個值,指示在成功建立後是否上傳 AutoSupport 套裝組合。定義的值為:
|
uploadState |
字串 |
錯誤 |
JSON 字串包含一個值,該值指示 AutoSupport 套裝組合上傳的狀態(如果已要求)。定義的值為:
|
uploadStateDetails |
錯誤 |
JSON 物件的 JSON 陣列,列出有關「uploadState」為何轉換為「failed」的其他詳細資訊。如果沒有可用的詳細資料,此陣列將為空白。
|
|
triggerType |
字串 |
True |
包含一個值的 JSON 字串,該值指示觸發 ASUP 資源建立的原因。定義的值為:
|
dataWindowStart |
字串 |
True |
包含時間戳記的 JSON 字串,指示 AutoSupport 套裝組合資料收集視窗的開始時間。預設值為 "dataWindowEnd" 鍵值前 24 小時。必須早於 "dataWindowEnd" 鍵值。最大值為請求當前時間前 7 天。定義的值為:
|
dataWindowEnd |
字串 |
True |
包含時間戳記的 JSON 字串,指示 AutoSupport 套裝組合資料收集時間範圍的結束時間。預設為要求的目前時間。定義的值為:
|
中繼資料 |
True |
與資源相關聯的用戶端和服務指定中繼資料。定義的值為:
|
範例回應
{
"type": "application/astra-asup",
"version": "1.0",
"id": "9950003f-a1c7-5ca7-8930-06eec25f60aa",
"creationState": "completed",
"creationStateDetails": [],
"upload": "false",
"triggerType": "manual",
"dataWindowStart": "2020-08-05T12:24:00.000000Z",
"dataWindowEnd": "2020-08-06T12:24:52.000000Z",
"metadata": {
"labels": [],
"creationTimestamp": "2022-10-06T20:58:16.305662Z",
"modificationTimestamp": "2022-10-06T20:58:16.305662Z",
"createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
}
}
回應
Status: 401, Unauthorized
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
|
標題 |
字串 |
True |
|
詳細資料 |
字串 |
True |
|
狀態 |
字串 |
True |
|
correlationID |
字串 |
錯誤 |
範例回應
{
"type": "https://astra.netapp.io/problems/3",
"title": "Missing bearer token",
"detail": "The request is missing the required bearer token.",
"status": "401"
}
回應
Status: 400, Bad request
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
|
標題 |
字串 |
True |
|
詳細資料 |
字串 |
True |
|
狀態 |
字串 |
True |
|
correlationID |
字串 |
錯誤 |
|
invalidParams |
陣列["invalidParams"] |
錯誤 |
無效查詢參數清單 |
範例回應
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
回應
Status: 403, Forbidden
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
|
標題 |
字串 |
True |
|
詳細資料 |
字串 |
True |
|
狀態 |
字串 |
True |
|
correlationID |
字串 |
錯誤 |
範例回應
{
"type": "https://astra.netapp.io/problems/11",
"title": "Operation not permitted",
"detail": "The requested operation isn't permitted.",
"status": "403"
}
錯誤
Status: 404, Not found
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
|
標題 |
字串 |
True |
|
詳細資料 |
字串 |
True |
|
狀態 |
字串 |
True |
|
correlationID |
字串 |
錯誤 |
範例錯誤回應
{
"type": "https://astra.netapp.io/problems/2",
"title": "Collection not found",
"detail": "The collection specified in the request URI wasn't found.",
"status": "404"
}
定義
請參閱定義
additionalDetails
type_astra_stateDetail
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
|
標題 |
字串 |
True |
|
詳細資料 |
字串 |
True |
|
additionalDetails |
錯誤 |
type_astra_label
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
姓名 |
字串 |
True |
|
值 |
字串 |
True |
type_astra_metadata
與資源相關聯的用戶端和服務指定中繼資料。定義的值為:
-
符合 Astra Metadata Schema。如果在建立時未指定、則會建立沒有標籤的中繼資料物件。
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
標籤 |
True |
||
建立時間戳記 |
字串 |
True |
|
修改時間戳記 |
字串 |
True |
|
建立者 |
字串 |
True |
|
modifiedBy |
字串 |
錯誤 |
invalidParams
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
姓名 |
字串 |
True |
無效查詢參數的名稱 |
原因 |
字串 |
True |
查詢參數無效的原因 |