Aggiorna un VpcFlowLogsConfig esistente. Se esiste già una configurazione con le stesse impostazioni (anche se l'ID è diverso), la creazione non va a buon fine. Note:
L'aggiornamento di una configurazione con state=DISABLED non andrà a buon fine
I seguenti campi non sono considerati impostazioni ai fini del controllo menzionato sopra, pertanto anche l'aggiornamento di un'altra configurazione con gli stessi campi ma valori diversi per i seguenti campi non andrà a buon fine:
Obbligatorio. Maschera dei campi da aggiornare. In questo campo deve essere fornito almeno un percorso. Ad esempio, per modificare lo stato della configurazione in ENABLED, specifica updateMask = "state" e vpcFlowLogsConfig sarà: vpcFlowLogsConfig = {
name =
"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config"
state = "ENABLED" }
Si tratta di un elenco separato da virgole di nomi completi dei campi. Esempio: "user.displayName,photo".
L'autorizzazione richiede la seguente autorizzazione IAM sulla risorsa specificata updateMask:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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)."]]