Method: projects.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=projects/*/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 および関連会社の登録商標です。
最終更新日 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。"],[[["Creates a new setting value for a specific Cloud resource, identified by its name."],["Returns errors if the setting doesn't exist, the value already exists, or the setting is read-only."],["Requires providing the `SettingValue` object in the request body, specifying the desired value."],["Uses the `cloud-platform` OAuth scope for authorization."],["Provides links for gRPC Transcoding, SettingValue definition, and Authentication Overview for additional context."]]],["This outlines creating a setting value via a POST request to a specified URL. The request requires a `settingValue.name` path parameter, formatted according to project, folder, or organization. The request body contains a `SettingValue` instance, and a successful response returns a new `SettingValue` instance. Potential errors include `NOT_FOUND` (setting doesn't exist), `ALREADY_EXISTS`, or `FAILED_PRECONDITION` (read-only setting). The operation requires the `cloud-platform` OAuth scope.\n"]]