Method: folders.settings.value.create
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
設定値を作成します。
設定が存在しない場合は、google.rpc.Code.NOT_FOUND
を含む google.rpc.Status
を返します。設定値が指定された Cloud リソースにすでに存在する場合は、google.rpc.Code.ALREADY_EXISTS
を含む google.rpc.Status
を返します。設定が読み取り専用としてフラグ設定されている場合は、google.rpc.Code.FAILED_PRECONDITION
を含む google.rpc.Status
を返します。
HTTP リクエスト
POST https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=folders/*/settings/*/value}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
settingValue.name |
string
設定値のリソース名。次のいずれかの形式にする必要があります。
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
例: 「/projects/123/settings/gcp-enableMyFeature/value」
|
リクエストの本文
リクエストの本文には SettingValue
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された SettingValue
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-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"]],["最終更新日 2025-07-25 UTC。"],[],["This outlines creating a setting value via a POST request to a specified URL. The URL structure includes path parameters that define the resource name, such as projects, folders, or organizations. The request body carries the `SettingValue` data, and a successful response returns a new `SettingValue` instance. Errors, like non-existent settings or existing values, are indicated via `google.rpc.Status`. The operation requires OAuth scope `https://www.googleapis.com/auth/cloud-platform`.\n"]]