Creates a variable within the given configuration. You cannot create a variable with a name that is a prefix of an existing variable name, or a name that has an existing variable name as a prefix.
The path to the RutimeConfig resource that this variable should belong to. The configuration must exist beforehand; the path must be in the format:
projects/[PROJECT_ID]/configs/[CONFIG_NAME]
Authorization requires the following Google IAM permission on the specified resource parent:
runtimeconfig.variables.create
Query parameters
Parameters
requestId
string
An optional but recommended unique requestId. If the server receives two create() requests with the same requestId, then the second request will be ignored and the first resource created and stored in the backend is returned. Empty requestId fields are ignored.
It is responsibility of the client to ensure uniqueness of the requestId strings.
requestId strings are limited to 64 characters.
Request body
The request body contains an instance of Variable.
Response body
If successful, the response body contains a newly created instance of Variable.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2018-10-17 UTC."],[[["This documentation describes how to create a variable within a given configuration using a `POST` request to the specified URL."],["The request requires a `parent` path parameter, which is the path to the RuntimeConfig resource in the format `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`, and the `runtimeconfig.variables.create` IAM permission."],["An optional but recommended `requestId` query parameter can be used to ensure request idempotency, with a limit of 64 characters."],["The request body must include an instance of the `Variable` resource, and a successful response will return the newly created `Variable` instance."],["One of the specified OAuth scopes, `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/cloudruntimeconfig`, is required for authorization."]]],[]]