Aktualisiert eine vorhandene VpcFlowLogsConfig. Wenn bereits eine Konfiguration mit genau denselben Einstellungen vorhanden ist (auch wenn die ID unterschiedlich ist), schlägt die Erstellung fehl. Hinweise:
Aktualisieren einer Konfiguration mit state=DISABLED schlägt fehl
Die folgenden Felder werden für die oben genannte Prüfung nicht als Einstellungen betrachtet. Wenn Sie also eine andere Konfiguration mit denselben Feldern, aber unterschiedlichen Werten für die folgenden Felder aktualisieren, schlägt dies ebenfalls fehl:
Erforderlich. Maske der zu aktualisierenden Felder. In diesem Feld muss mindestens ein Pfad angegeben werden. Wenn Sie beispielsweise den Status der Konfiguration in „ENABLED“ ändern möchten, geben Sie updateMask = "state" an. Der vpcFlowLogsConfig wäre dann: vpcFlowLogsConfig = {
name =
"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
state = "ENABLED" }
Dies ist eine durch Kommas getrennte Liste vollständig qualifizierter Feldnamen. Beispiel: "user.displayName,photo".
Für die Autorisierung ist die folgende IAM-Berechtigung für die angegebene Ressource updateMask erforderlich:
[[["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-07-29 (UTC)."],[],[],null,["# Method: projects.locations.vpcFlowLogsConfigs.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes:\n\n1. Updating a configuration with `state=DISABLED` will fail\n2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well:\n - name\n - createTime\n - updateTime\n - labels\n - description\n\n### HTTP request\n\n`PATCH https://networkmanagement.googleapis.com/v1beta1/{vpcFlowLogsConfig.name=projects/*/locations/*/vpcFlowLogsConfigs/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [VpcFlowLogsConfig](/network-intelligence-center/docs/reference/networkmanagement/rest/v1beta1/organizations.locations.vpcFlowLogsConfigs#VpcFlowLogsConfig).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/network-intelligence-center/docs/reference/networkmanagement/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]