Method: projects.settings.lookupEffectiveValue
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Cloud リソース parent
の設定の有効な設定値を計算します。有効な設定値は、クラウド リソース内で計算された設定値であり、指定された順序で次のいずれかのオプションに評価されます(前のオプションが存在しない場合は、次のオプションが使用されます)。
- 特定のリソースの設定値
- 特定のリソースの最も近い祖先の設定値
- 設定のデフォルト値
- 空の設定値(すべてのフィールドが未設定の
SettingValue
として定義)
設定が存在しない場合は google.rpc.Code.NOT_FOUND
を指定して google.rpc.Status
を返します。
HTTP リクエスト
GET https://resourcesettings.googleapis.com/v1alpha1/{parent=projects/*/settings/*}:lookupEffectiveValue
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
有効な値を評価する設定です。命名要件については、Setting をご覧ください。
認可には、指定されたリソース parent に対する次の IAM の権限が必要です。
resourcesettings.settingvalues.get
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には SettingValue
のインスタンスが含まれます。
認証スコープ
次の 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。"],[[["Retrieves the effective setting value for a Cloud resource, considering resource, ancestor, default, and empty values."],["Uses a GET request to the specified URL with the setting's parent as a path parameter."],["Requires an empty request body and returns a `SettingValue` object in the response body if successful."],["Needs `resourcesettings.settingvalues.get` IAM permission on the specified resource and `cloud-platform` OAuth scope for authorization."]]],["The provided information outlines how to retrieve the effective value of a setting at a specified Cloud resource. It involves sending a `GET` HTTP request to the URL `https://resourcesettings.googleapis.com/v1alpha1/{parent=projects/*/settings/*}:lookupEffectiveValue`. The `parent` path parameter defines the target setting. No request body is needed. The response, if successful, contains a `SettingValue`, or a `NOT_FOUND` status if the setting doesn't exist. Access requires the `resourcesettings.settingvalues.get` IAM permission and `cloud-platform` OAuth scope.\n"]]