列出應用程式備份的應用程式資產
GET /accounts/{account_id}/topology/v1/appBackups/{appBackup_id}/appAssets
傳回集合中所有符合資源的 JSON 陣列。如果在請求中指定了個別欄位,則項目 JSON 陣列將按指定順序包含每個相符資源所請求的欄位。
參數
| Name | 類型 | 在 | 必要 | 說明 |
|---|---|---|---|---|
account_id |
字串 |
路徑 |
True |
包含帳戶資源的 ID
|
appBackup_id |
字串 |
路徑 |
True |
包含 appBackup 資源的 ID |
包括 |
字串 |
查詢 |
錯誤 |
指示列出集合時應傳回哪些欄位。 URL 範例:「include=id」、「include=id,name」 OpenAPI 範例:"id"
|
限制 |
字串 |
查詢 |
錯誤 |
表示列出集合時要傳回的資源數量上限。 URL 範例:「limit=2」 OpenAPI 範例:「2」 |
回應
Status: 200, Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
項目 |
array[任何一個: "appAsset_1.1_get_response_body"、array[]] |
True |
|
中繼資料 |
True |
範例回應
{
"type": "application/astra-appAssets",
"version": "1.1",
"items": [
[
"Pod",
"mediawiki-69c6fcf864-2wx6l"
],
[
"ReplicaSet",
"mediawiki-69c6fcf864"
],
[
"Service",
"mediawiki"
],
[
"Deployment",
"mediawiki"
]
],
"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 |
字串 |
錯誤 |
範例回應
{
"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"
}
定義
請參閱定義
GVK
包含 Kubernetes 群組 / 版本 / 類型的 JSON 物件。
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
群組 |
字串 |
錯誤 |
包含 Kubernetes 指派的群組識別碼的 JSON 字串。已定義的值包括:
|
種類 |
字串 |
錯誤 |
包含 Kubernetes 指派的類型識別碼的 JSON 字串。已定義的值包括:
|
版本 |
字串 |
錯誤 |
包含 Kubernetes 指派的版本識別碼的 JSON 字串。已定義的值包括:
|
type_json
包含 Kubernetes 資源定義全部內容的 JSON 物件。
標籤
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
姓名 |
字串 |
True |
包含標籤名稱的 JSON 字串定義值如下:
|
值 |
字串 |
True |
包含標籤值的 JSON 字串定義值包括:
|
type_astra_label
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
姓名 |
字串 |
True |
|
值 |
字串 |
True |
type_astra_metadata
與資源相關聯的用戶端和服務指定中繼資料。定義的值為:
-
符合 Astra 中繼資料架構
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
標籤 |
True |
||
建立時間戳記 |
字串 |
True |
|
修改時間戳記 |
字串 |
True |
|
建立者 |
字串 |
True |
|
modifiedBy |
字串 |
錯誤 |
appAsset_1.1_get_response_body
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
類型 |
字串 |
True |
資源的媒體類型。定義的值為:
|
版本 |
字串 |
True |
資源版本。已定義值包括:
|
ID |
字串 |
True |
資源的全域唯一識別碼。定義的值為:
|
assetType |
字串 |
True |
JSON 字串,包含一個值,指示從 Kubernetes 取得的所描述資產類型。已定義的值包括:
|
建立時間戳記 |
字串 |
True |
包含時間戳記的 JSON 字串,指示 Kubernetes 元資料的建立時間。已定義的值包括:
|
GVK |
True |
包含 Kubernetes 群組 / 版本 / 類型的 JSON 物件。 |
|
資源 |
錯誤 |
包含 Kubernetes 資源定義全部內容的 JSON 物件。 |
|
assetID |
字串 |
True |
包含 Kubernetes 指派的識別碼的 JSON 字串。已定義的值包括:
|
標籤 |
陣列["標籤"] |
True |
JSON 物件的 JSON 陣列,每個物件都包含與該資產關聯的 Kubernetes 標籤。如果沒有可用的詳細資訊,則此陣列為空。
|
assetName |
字串 |
True |
包含 Kubernetes 指派的名稱的 JSON 字串。已定義的值包括:
|
命名空間 |
字串 |
錯誤 |
包含 Kubernetes 指派的命名空間的 JSON 字串。已定義的值包括:
|
中繼資料 |
True |
與資源相關聯的用戶端和服務指定中繼資料。定義的值為:
|
type_astra_metadata_list
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
繼續 |
字串 |
錯誤 |
|
數 |
數字 |
錯誤 |
|
標籤 |
錯誤 |
||
建立時間戳記 |
字串 |
錯誤 |
|
修改時間戳記 |
字串 |
錯誤 |
|
建立者 |
字串 |
錯誤 |
|
modifiedBy |
字串 |
錯誤 |
invalidParams
| Name | 類型 | 必要 | 說明 |
|---|---|---|---|
姓名 |
字串 |
True |
無效查詢參數的名稱 |
原因 |
字串 |
True |
查詢參數無效的原因 |