Method: projects.settings.deleteValue
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
刪除設定值。如果沒有設定值,則作業即為免人工管理。
如果設定或設定不存在,會傳回 google.rpc.Code.NOT_FOUND
的 google.rpc.Status
。如果先前針對設定值發出的 DeleteSetting
呼叫已傳回成功代碼,這個設定值就不會顯示。如果設定標記為唯讀,會傳回含有 google.rpc.Code.FAILED_PRECONDITION
的 google.rpc.Status
。
HTTP 要求
DELETE https://resourcesettings.googleapis.com/v1alpha1/{name=projects/*/settings/*/value}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
要刪除的設定值名稱。如要瞭解命名規定,請參閱 SettingValue 。
授權需要指定資源 name 的下列 IAM 權限:
resourcesettings.settingvalues.delete
|
查詢參數
參數 |
ignoreReadOnly |
boolean
允許刪除 readOnly 設定值的旗標。警告:您必須自行承擔使用風險。唯讀唯讀設定的值一經刪除即無法復原 (亦即無法再次建立)。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
詳情請參閱驗證總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-05-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-05-25 (世界標準時間)。"],[[["Deletes a setting value; if the setting value is already deleted or does not exist, it's considered successful."],["Returns an error if the setting is read-only or the setting/setting value is not found."],["The request body must be empty for this DELETE request."],["Requires `resourcesettings.settingvalues.delete` IAM permission and `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],["This document details the process of deleting a setting value via a `DELETE` HTTP request to the specified URL. The `name` path parameter identifies the setting value to delete, requiring `resourcesettings.settingvalues.delete` IAM permission. The `ignoreReadOnly` query parameter allows deletion of read-only settings, but is irreversible. The request body must be empty and a successful response will have an empty body, otherwise the status `google.rpc.Status` returns the code of error, `google.rpc.Code.NOT_FOUND` or `google.rpc.Code.FAILED_PRECONDITION`. The operation requires OAuth scope `https://www.googleapis.com/auth/cloud-platform`.\n"]]