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}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
削除する設定値の名前。命名要件については、SettingValue をご覧ください。
認可には、指定されたリソース name に対する次の IAM の権限が必要です。
resourcesettings.settingvalues.delete
|
クエリ パラメータ
パラメータ |
ignoreReadOnly |
boolean
readOnly 設定の値を削除できるフラグ。警告: 自己責任で使用してください。読み取り専用値を削除すると、元に戻すことはできません。(もう一度作成することはできません)
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-05-25 UTC。
[[["わかりやすい","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 UTC。"],[[["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"]]