正在刪除 Schematics 資料
IBM Cloud® Schematics 將您的資料儲存於高可用性且安全的環境中。 所有資料 (例如自動化程式碼、輸入配置資料、輸入認證及執行時期資料) 都儲存在 Object Storage中。 此靜態資料使用 AES GCM 256 搭配封套加密技術進行加密。 作為 IBM Cloud 帳戶擁有者,您可以控制對帳戶中 IBM Cloud® Schematics 物件的存取權。您可以選擇使用Schematics API、UI 或 CLI 來刪除數據,如下所述。
當您刪除這些 Schematics 物件時,Object Storage 中的對應資料會標示為刪除。 軟刪除選項可讓您提出 支援問題單 來回復 Schematics 資料。 此外,在 7 天軟刪除之後會自動清除您的資料。
此外,Schematics 服務會在個別 Object Storage 儲存區中維護資料的備份副本。 每隔 30 天會自動改寫此備份副本。 因此,會在 30 天內清除資料的所有備份副本。
在對「Schematics」物件執行軟刪除或硬刪除後,若「Schematics」服務無法刪除您帳戶中的物件。 您需要提交一則 Schematics 支援單, 才能將其完全從資源控制器中移除。
範圍
刪除範圍限制為儲存在 Schematics 服務及其備份中的資料。
下列要點不包括在 Schematics 物件的刪除範圍中。
- 使用 Schematics 刪除或移除已佈建的雲端資源。
- Schematics 所提供的雲端資源所儲存的資料。
- 在刪除 Schematics 物件時,會提供選項讓您毀損雲端資源。 不過,建議您獨立確認並銷毀雲端服務中的雲端資源。 您可以從雲端資源清單頁面,探索 雲端資源清單。
從使用者介面刪除 Schematics 物件
您可以使用 IBM Cloud 主控台來刪除 Schematics 物件。 下列 Schematics 物件用來儲存資料,並協助刪除 IBM Cloud® Schematics 物件。
您必須具備「經理」角色,才能從這些 IBM Cloud® Schematics 物件中刪除資料。
工作區
您可以遵循下列步驟,使用 IBM Cloud 主控台來刪除 Schematics 物件。
- 從 Schematics 工作區儀表板中,選取您要刪除的工作區。
- 按一下 動作 標籤,然後選取 刪除工作區 選項。
- 在 鍵入
workspace_name中鍵入工作區名稱,以確認 文字框。 - 按下「刪除」按鈕。
動作
您可以遵循下列步驟,透過使用 IBM Cloud 主控台來刪除 Schematics 物件。
- 從 Schematics 工作區儀表板中,選取您要刪除的動作。
- 按一下「選取 動作」下拉清單,然後選取 刪除 選項。
- 在 鍵入
action_name中鍵入您的動作名稱,以確認 文字框。 - 按下「刪除」按鈕。
庫存
您可以遵循下列步驟,透過使用 IBM Cloud 主控台來刪除 Schematics 物件。
- 從 Schematics 工作區儀表板中,選取您要刪除的庫存。
- 針對您要刪除的庫存按一下
...點,然後按一下 刪除。 - 在 鍵入
Inventory_name中鍵入庫存名稱,以確認 文字框。 - 按下「刪除」按鈕。
從 CLI 刪除 Schematics 物件
您可以使用指令行來刪除 Schematics 物件。 下列 Schematics 物件用來儲存資料,並協助刪除 IBM Cloud® Schematics 物件。
您必須具備「經理」角色,才能從這些 IBM Cloud® Schematics 物件中刪除資料。
工作區
您可以遵循下列步驟來刪除 Schematics 物件。
- 安裝 IBM Cloud CLI 並安裝 IBM Cloud® Schematics 外掛程式
- 執行
ibmcloud schematics workspace list [--limit LIMIT] [--offset OFFSET] [--output] [--region],以列出並選取您要刪除的工作區 ID。 如需列出工作區的相關資訊,請參閱 Schematics workspaces list 指令。 - 執行
ibmcloud schematics workspace delete --id <WORKSPACE_ID> [--force]以刪除工作區。 如需工作區刪除的相關資訊,請參閱 Schematics workspaces delete 指令。
動作
您可以遵循下列步驟來刪除 Schematics 物件。
- 安裝 IBM Cloud CLI 並安裝 IBM Cloud® Schematics 外掛程式
- 執行
ibmcloud schematics action list以列出並選取您要刪除的動作 ID。 如需列出動作的相關資訊,請參閱 Schematics actions list 指令。 - 執行
ibmcloud schematics action delete --id ACTION_ID [--force]以刪除動作。 如需 Schematics 動作刪除的相關資訊,請參閱 Schematics 動作刪除 指令。
庫存
您可以遵循下列步驟來刪除 Schematics 物件。
- 安裝 IBM Cloud CLI 並安裝 IBM Cloud® Schematics 外掛程式
- 執行
ibmcloud schematics inventory list [--limit LIMIT] [--offset OFFSET] [--output OUTPUT]以列出並選取您要刪除的庫存 ID。 如需列出庫存的相關資訊,請參閱 Schematics inventory list 指令。 - 執行
ibmcloud schematics inventory delete --id ACTION_ID以刪除庫存。 如需 Schematics 庫存刪除的相關資訊,請參閱 Schematics 庫存刪除 指令。
從 API 刪除 Schematics 物件
您可以使用 API 來刪除 Schematics 物件。 下列 Schematics 物件用來儲存資料,並協助刪除 IBM Cloud® Schematics 物件。
您必須具備「經理」角色,才能從這些 IBM Cloud® Schematics 物件中刪除資料。 然後選擇 Schematics 端點來呼叫刪除 API。
工作區
您可以遵循下列步驟來刪除 Schematics 物件。
- 設定 REST 用戶端 以執行 Schematics API。
- 執行
curl -X GET https://schematics.cloud.ibm.com/v1/workspaces -H "Authorization: <iam_token>",以列出並選取您要刪除的工作區 ID。 如需列出工作區的相關資訊,請參閱 Schematics 工作區清單 API。 - 執行
curl -X DELETE https://schematics.cloud.ibm.com/v1/workspaces/{id} -H "Authorization: <iam_token>"以刪除工作區。 如需工作區刪除的相關資訊,請參閱 Schematics 工作區刪除 API。
動作
您可以遵循下列步驟來刪除 Schematics 物件。
- 設定 REST 用戶端 以執行 Schematics API。
- 執行
curl --location --request GET https://schematics.cloud.ibm.com/v2/actions/actions --header "Authorization: <access_token>"以列出並選取您要刪除的動作 ID。 如需列出動作的相關資訊,請參閱 Schematics 動作清單 API。 - 執行
curl --location --request DELETE https://schematics.cloud.ibm.com/v2/actions/{action_id} --header "Authorization: <access_token> "以刪除動作。 如需 Schematics 動作刪除的相關資訊,請參閱 Schematics 動作刪除 API。
庫存
您可以遵循下列步驟來刪除 Schematics 物件。
- 設定 REST 用戶端 以執行 Schematics API。
- 執行
curl --location --request GET https://schematics.cloud.ibm.com/v2/inventories --header "Content-Type: application/json" --header "Authorization: <access_token> " --data-raw "{"name": "dev-inventory538","description": "My dev env inventory","location": "us-east","resource_group": "Default",,"inventories_ini": "[windows] \n 158.177.7.181"}以列出並選取您要刪除的庫存 ID。 如需列出庫存的相關資訊,請參閱 Schematics 庫存清單 API。 - 執行
curl --location --request DELETE https://schematics.cloud.ibm.com/v2/inventories/us-east.INVENTORY.dev-inventory523.244223cf/ --header "Content-Type: application/json" --header "Authorization: <access_token> " --data-raw "{"name": "dev-inventory538","description": "My dev env inventory","location": "us-east","resource_group": "Default","resource_queries": ["default.RESOURCEQUERY.string.dxxx8a47"]}以刪除庫存。 如需 Schematics 庫存刪除的相關資訊,請參閱 Schematics 庫存刪除 API。