Erstellt eine Variable innerhalb der angegebenen Konfiguration. Sie können keine Variable mit einem Namen, der ein Präfix eines bestehenden Variablennamens ist, oder einem Namen, der einen bestehenden Variablennamen als Präfix hat, erstellen.
Der Pfad zu der RuntimeConfig-Ressource, zu der die Variable gehören sollte. Die Konfiguration muss bereits vorhanden sein. Der Pfad muss das folgende Format haben:
projects/[PROJECT_ID]/configs/[CONFIG_NAME]
Zur Autorisierung ist die folgende Google IAM-Berechtigung für die angegebene Ressource parent erforderlich:
runtimeconfig.variables.create
Abfrageparameter
Parameter
requestId
string
Optional, aber empfohlen: Ein eindeutiger Wert für requestId. Wenn der Server zwei create()-Anfragen mit demselben requestId empfängt, wird die zweite Anfrage ignoriert und die erste im Back-End erstellte und gespeicherte Ressource zurückgegeben. Leere requestId-Felder werden ignoriert.
Der Kunde ist dafür verantwortlich, dass die requestId-Strings eindeutig sind.
requestId-Strings sind auf 64 Zeichen beschränkt.
Anfragetext
Der Anfragetext enthält eine Instanz von Variable.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Variable.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-04 (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."]]],[]]