Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/nodejs-docs-samples
/ functions
Functions
3,902 in github.com/GoogleCloudPlatform/nodejs-docs-samples
⨍
Functions
3,902
◇
Types & classes
106
↓ 1 callers
Function
main
* Set Compute Engine usage export bucket for the Cloud project. * This sample presents how to interpret the default value for the report name prefix
compute/setUsageExportBucket.js:23
↓ 1 callers
Function
main
* Prints a list of all non-deprecated image names available in a given project, divided into pages as returned by the Compute Engine API. * * @param
compute/listImagesByPage.js:21
↓ 1 callers
Function
main
* Sends an instance creation request to GCP and waits for it to complete. * * @param {string} projectId - ID or number of the project you want to us
compute/createInstance.js:35
↓ 1 callers
Function
main
* Stops a started Google Compute Engine instance. * * @param {string} projectId - project ID or project number of the Cloud project your instance be
compute/stopInstance.js:22
↓ 1 callers
Function
main
* Prints information about a VM instance in the given zone in the specified project. * * @param {string} projectId - Project ID or project number of
compute/getInstance.js:22
↓ 1 callers
Function
main
* Waits for an operation to be completed. Calling this function will block until the operation is finished. * @param {string} projectId - ID or numbe
compute/waitForOperation.js:20
↓ 1 callers
Function
main
* Creates a Compute Engine VM instance from an instance template, but overrides the disk and machine type options in the template. * * @param {strin
compute/createInstanceFromTemplateWithOverrides.js:34
↓ 1 callers
Function
main
* Sends a delete request to GCP and waits for it to complete. * * @param {string} projectId - ID or number of the project you want to use. * @param
compute/deleteInstance.js:22
↓ 1 callers
Function
main
* Prints a list of all non-deprecated image names available in given project. * * @param {string} projectId - ID or number of the project you want t
compute/listImages.js:20
↓ 1 callers
Function
main
* Gets a list of instances created in given project in given zone. * * @param {string} projectId - ID or number of the project you want to use. * @
compute/listInstances.js:21
↓ 1 callers
Function
main
(diskName, storagePoolName, zone)
compute/disks/createComputeHyperdiskFromPool.js:19
↓ 1 callers
Function
main
( secondaryDiskName, secondaryLocation, primaryDiskName, primaryLocation )
compute/disks/createZonalSecondaryDisk.js:19
↓ 1 callers
Function
main
(primaryDiskName, primaryLocation)
compute/disks/stopReplication.js:19
↓ 1 callers
Function
main
* Sets the autodelete flag of a disk to given value. * * @param {string} projectId - Project ID or project number of the Cloud project you want to u
compute/disks/setDiskAutodelete.js:24
↓ 1 callers
Function
main
(diskName, region, vmName, zone)
compute/disks/attachRegionalDisk.js:19
↓ 1 callers
Function
main
* Deletes a disk from a project. * * @param {string} projectId - Project ID or project number of the Cloud project you want to use. * @param {strin
compute/disks/deleteDisk.js:22
↓ 1 callers
Function
main
(diskName, zone)
compute/disks/createComputeHyperdisk.js:19
↓ 1 callers
Function
main
( secondaryDiskName, secondaryLocation, primaryDiskName, primaryLocation )
compute/disks/startReplication.js:19
↓ 1 callers
Function
main
(storagePoolName)
compute/disks/createComputeHyperdiskPool.js:19
↓ 1 callers
Function
main
( secondaryDiskName, secondaryLocation, primaryDiskName, primaryLocation )
compute/disks/createRegionalSecondaryDisk.js:19
↓ 1 callers
Function
main
( secondaryDiskName, secondaryLocation, primaryDiskName, primaryLocation )
compute/disks/createCustomSecondaryDisk.js:19
↓ 1 callers
Function
main
(diskName, region, zone1, zone2)
compute/disks/createRegionalReplicatedDisk.js:19
↓ 1 callers
Function
main
* Creates a new disk in a project in given zone. * * @param {string} projectId - Project ID or project number of the Cloud project you want to use.
compute/disks/createDiskFromSnapshot.js:29
↓ 1 callers
Function
main
( consistencyGroupName, consistencyGroupLocation, diskName, diskLocation )
compute/disks/consistencyGroups/consistencyGroupAddDisk.js:19
↓ 1 callers
Function
main
( consistencyGroupName, consistencyGroupLocation, diskName, diskLocation )
compute/disks/consistencyGroups/consistencyGroupRemoveDisk.js:19
↓ 1 callers
Function
main
(consistencyGroupName, region)
compute/disks/consistencyGroups/createConsistencyGroup.js:19
↓ 1 callers
Function
main
(consistencyGroupName, region)
compute/disks/consistencyGroups/deleteConsistencyGroup.js:19
↓ 1 callers
Function
main
( consistencyGroupName, consistencyGroupLocation, disksLocation )
compute/disks/consistencyGroups/consistencyGroupDisksList.js:19
↓ 1 callers
Function
main
* Retrieves an instance template, which you can use to create virtual machine * (VM) instances and managed instance groups (MIGs). * * @param {s
compute/create-instance-templates/getInstanceTemplate.js:22
↓ 1 callers
Function
main
* Creates a new instance template based on an existing instance. * * @param {string} projectId - Project ID or project number of the Cloud project y
compute/create-instance-templates/createTemplateFromInstance.js:23
↓ 1 callers
Function
main
* Deletes an instance template. * * @param {string} projectId - Project ID or project number of the Cloud project you use. * @param {string} templa
compute/create-instance-templates/deleteInstanceTemplate.js:21
↓ 1 callers
Function
main
* Creates a new instance template with the provided name and a specific instance configuration. * * @param {string} projectId - Project ID or projec
compute/create-instance-templates/createTemplate.js:21
↓ 1 callers
Function
main
* Prints a list of instance template objects available in a project. * * @param {string} projectId - Project ID or project number of the Cloud proje
compute/create-instance-templates/listInstanceTemplates.js:20
↓ 1 callers
Function
main
(templateName)
compute/create-instance-templates/deleteRegionalTemplate.js:19
↓ 1 callers
Function
main
* Creates an instance template that uses a provided subnet. * * @param {string} projectId - Project ID or project number of the Cloud project you us
compute/create-instance-templates/createTemplateWithSubnet.js:25
↓ 1 callers
Function
main
(templateName)
compute/create-instance-templates/createRegionalTemplate.js:19
↓ 1 callers
Function
main
(templateName)
compute/create-instance-templates/getRegionalTemplate.js:19
↓ 1 callers
Function
main
* Delete a snapshot of a disk. * * @param {string} projectId - Project ID or project number of the Cloud project you want to use. * @param {string}
compute/snapshots/deleteSnapshot.js:21
↓ 1 callers
Function
main
* Creates a snapshot of a disk. * * You need to pass `zone` or `region` parameter relevant to the disk you want to * snapshot, but not both. Pass `
compute/snapshots/createSnapshot.js:36
↓ 1 callers
Function
main
(instanceName)
compute/reservations/createInstanceToNotConsumeReservation.js:19
↓ 1 callers
Function
main
(reservationName)
compute/reservations/getReservation.js:19
↓ 1 callers
Function
main
(reservationName, vmName, zone)
compute/reservations/createReservationFromVM.js:19
↓ 1 callers
Function
main
(templateName)
compute/reservations/createTemplateToNotConsumeReservation.js:19
↓ 1 callers
Function
main
(reservationName)
compute/reservations/createReservationFromProperties.js:19
↓ 1 callers
Function
main
(instanceName)
compute/reservations/createInstanceToConsumeAnyReservation.js:19
↓ 1 callers
Function
main
(reservationName, location, instanceTemplateName)
compute/reservations/createReservationInstanceTemplate.js:19
↓ 1 callers
Function
main
(reservationName)
compute/reservations/reservationVmsUpdate.js:19
↓ 1 callers
Function
main
()
compute/reservations/getReservations.js:19
↓ 1 callers
Function
main
(instanceName, reservationName)
compute/reservations/createInstanceToConsumeSingleProjectReservation.js:19
↓ 1 callers
Function
main
(reservationName)
compute/reservations/deleteReservation.js:17
↓ 1 callers
Function
main
(snapshotScheduleName, region)
compute/snapshotSchedule/deleteSnapshotSchedule.js:19
↓ 1 callers
Function
main
(snapshotScheduleName, region)
compute/snapshotSchedule/getSnapshotSchedule.js:19
↓ 1 callers
Function
main
(snapshotScheduleName, region)
compute/snapshotSchedule/editSnapshotSchedule.js:19
↓ 1 callers
Function
main
(snapshotScheduleName, region)
compute/snapshotSchedule/createSnapshotSchedule.js:19
↓ 1 callers
Function
main
* Prints a list of all firewall rules in specified project. * * @param {string} projectId - project ID or project number of the Cloud project you wa
compute/firewall/listFirewallRules.js:20
↓ 1 callers
Function
main
* Modifies the priority of a given firewall rule. * * @param {string} projectId - project ID or project number of the Cloud project you want to use.
compute/firewall/patchFirewallPriority.js:22
↓ 1 callers
Function
main
* Creates a simple firewall rule allowing for incoming HTTP and HTTPS access from the entire Internet. * * @param {string} projectId - project ID or
compute/firewall/createFirewallRule.js:25
↓ 1 callers
Function
main
* Deletes a firewall rule from the project. * * @param {string} projectId - project ID or project number of the Cloud project you want to use. * @p
compute/firewall/deleteFirewallRule.js:21
↓ 1 callers
Function
main
* Prints the hostname of the Google Cloud VM instance. * * @param {string} projectId - ID of the project in which you want to get the VM instance ho
compute/custom-hostname-instance/getInstanceHostname.js:22
↓ 1 callers
Function
main
* Creates an instance with custom hostname. * * @param {string} projectId - ID of the project in which you want to create the VM instance. * @param
compute/custom-hostname-instance/createInstanceWithCustomHostname.js:37
↓ 1 callers
Function
main
* Creates a new Windows image from the specified source disk. * * @param {string} projectId - Project ID or project number of the Cloud project you
compute/instances/windows/creatingWindowsOSImage.js:25
↓ 1 callers
Function
main
* Creates a new Windows Server instance that has only an internal IP address. * * @param {string} projectId - ID or number of the project you want t
compute/instances/windows/creating-managing-windows-instances/createWindowsServerInstanceInternalIP.js:35
↓ 1 callers
Function
main
* Creates a new Windows Server instance that has an external IP address. * * @param {string} projectId - ID or number of the project you want to use
compute/instances/windows/creating-managing-windows-instances/createWindowsServerInstanceExternalIP.js:29
↓ 1 callers
Function
main
* Prints if a given instance is preemptible or not. * * @param {string} projectId - ID or number of the project you want to use. * @param {string}
compute/instances/preemptible/printPreemptible.js:22
↓ 1 callers
Function
main
* Gets a list of preemption operations from given zone in a project. * Optionally limit the results to instance name. * * @param {string} projectId
compute/instances/preemptible/preemptionHistory.js:24
↓ 1 callers
Function
main
* Creates a new preemptible VM instance with Debian 11 operating system. * * @param {string} projectId - ID or number of the project you want to use
compute/instances/preemptible/createPreemptible.js:22
↓ 1 callers
Function
main
* Creates a new VM instance with custom image used as its boot disk. * * @param {string} projectId - Project ID or project number of the Cloud proje
compute/instances/create-start-instance/createInstanceFromCustomImage.js:24
↓ 1 callers
Function
main
* Creates a new VM instance with boot disk created from a snapshot. * * @param {string} projectId - Project ID or project number of the Cloud projec
compute/instances/create-start-instance/createInstanceFromSnapshot.js:24
↓ 1 callers
Function
main
(zone, remoteZone, instanceName, snapshotLink)
compute/instances/create-start-instance/createInstanceReplicatedBootDisk.js:19
↓ 1 callers
Function
main
* Create a new VM instance using selected disks. The first disk in diskNames will be used as boot disk. * * @param {string} projectId - Project ID o
compute/instances/create-start-instance/createInstanceWithExistingDisks.js:24
↓ 1 callers
Function
main
* Creates a new VM instance with Debian 10 operating system in specified network and subnetwork. * * @param {string} projectId - Project ID or proje
compute/instances/create-start-instance/createInstanceWithSubnet.js:28
↓ 1 callers
Function
main
* Create a new VM instance with Debian 10 operating system and a 11 GB additional empty disk. * * @param {string} projectId - Project ID or project
compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js:22
↓ 1 callers
Function
main
* Resumes a suspended Google Compute Engine instance (with unencrypted disks). * * @param {string} projectId - Project ID or project number of the C
compute/instances/suspend-resume/resume.js:22
↓ 1 callers
Function
main
* Suspends a running Google Compute Engine instance. * * @param {string} projectId - Project ID or project number of the Cloud project you want to u
compute/instances/suspend-resume/suspend.js:22
↓ 1 callers
Function
main
* Prints the state of delete protection flag of given instance. * * @param {string} projectId - Project ID or project number of the Cloud project yo
compute/instances/preventing-accidental-vm-deletion/getDeleteProtection.js:23
↓ 1 callers
Function
main
* Sends an instance creation request to the Compute Engine API and wait for it to complete. * * @param {string} projectId - Project ID or project nu
compute/instances/preventing-accidental-vm-deletion/createInstance.js:25
↓ 1 callers
Function
main
* Updates the delete protection setting of given instance. * * @param {string} projectId - Project ID or project number of the Cloud project you wan
compute/instances/preventing-accidental-vm-deletion/setDeleteProtection.js:25
↓ 1 callers
Function
main
* Creates an instance of CustoMachineTypeClass. * * @param {string} zone - Name of the zone you want to use, for example: us-west3-b * @param {stri
compute/instances/custom-machine-type/helperClass.js:23
↓ 1 callers
Function
main
* Creates new VM instances with extra memory without using a CustomMachineType class. * * @param {string} projectId - ID or number of the project yo
compute/instances/custom-machine-type/extraMemWithoutHelper.js:25
↓ 1 callers
Function
main
* Sends an update instance machine type request to the Compute Engine API and waits for it to complete. * * @param {string} projectId - ID or number
compute/instances/custom-machine-type/updateMemory.js:23
↓ 1 callers
Function
main
* Creates a new VM instance with a custom machine type. * * @param {string} projectId - ID or number of the project you want to use. * @param {stri
compute/instances/custom-machine-type/createWithHelper.js:25
↓ 1 callers
Function
main
* Creates new VM instances without using a CustomMachineType class. * * @param {string} projectId - ID or number of the project you want to use. *
compute/instances/custom-machine-type/createWithoutHelper.js:25
↓ 1 callers
Function
makeGrpcRequest
(JWT_AUTH_TOKEN, API_KEY, HOST, GREETEE)
endpoints/getting-started-grpc/client.js:18
↓ 1 callers
Function
makeIapPostRequest
(url, body, idToken, userAgent)
composer/functions/composer-storage-trigger/index.js:149
↓ 1 callers
Function
makeSearchRequest
functions/slack/index.js:148
↓ 1 callers
Function
manual
()
error-reporting/manual.js:22
↓ 1 callers
Function
matches
* @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and as
recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js:151
↓ 1 callers
Function
messages
(totalscore, newhighscore)
recaptcha_enterprise/demosite/app/static/demo-2af4c10e.js:3161
↓ 1 callers
Function
modelAdaptation
()
speech/modelAdaptation.js:26
↓ 1 callers
Function
modifyInstanceWithExtendedMemory
()
compute/instances/custom-machine-type/updateMemory.js:35
↓ 1 callers
Function
pageRefsToRange
document-ai/process-document-splitter.js:89
↓ 1 callers
Function
parseInfotypes
(infoTypes)
dlp/deIdentifyWithReplaceInfoType.js:93
↓ 1 callers
Function
parseInstanceName
(name)
compute/instances/windows/creatingWindowsOSImage.js:46
↓ 1 callers
Function
parseResponse
(stdout)
ai-platform/snippets/test/create-custom-job.test.js:33
↓ 1 callers
Function
patchConsentStore
()
healthcare/consent/patchConsentStore.js:33
↓ 1 callers
Function
patchDataset
()
healthcare/datasets/patchDataset.js:32
↓ 1 callers
Function
patchDicomStore
()
healthcare/dicom/patchDicomStore.js:33
↓ 1 callers
Function
patchFhirResource
()
healthcare/fhir/patchFhirResource.js:36
↓ 1 callers
Function
patchFhirStore
()
healthcare/fhir/patchFhirStore.js:34
↓ 1 callers
Function
patchFirewallPriority
()
compute/firewall/patchFirewallPriority.js:34
← previous
next →
2,901–3,000 of 3,902, ranked by callers