Notebooks API

The Notebooks API lets you manage Vertex AI Workbench resources in Google Cloud.

Service: notebooks.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://notebooks.googleapis.com

REST Resource: v2.projects.locations

Methods
getGET /v2/{name}
Gets information about a location.
listGET /v2/{name}/locations
Lists information about the supported locations for this service.

REST Resource: v2.projects.locations.instances

Methods
checkUpgradabilityGET /v2/{notebookInstance}:checkUpgradability
Checks whether a notebook instance is upgradable.
createPOST /v2/{parent}/instances
Creates a new Instance in a given project and location.
deleteDELETE /v2/{name}
Deletes a single Instance.
diagnosePOST /v2/{name}:diagnose
Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
getGET /v2/{name}
Gets details of a single Instance.
getConfigGET /v2/{name}/instances:getConfig
Returns various configuration parameters.
getIamPolicyGET /v2/{resource}:getIamPolicy
Gets the access control policy for a resource.
listGET /v2/{parent}/instances
Lists instances in a given project and location.
/v2/{instance.name}
UpdateInstance updates an Instance.
resetPOST /v2/{name}:reset
Resets a notebook instance.
resizeDiskPOST /v2/{notebookInstance}:resizeDisk
Resize a notebook instance disk to a higher capacity.
restorePOST /v2/{name}:restore
RestoreInstance restores an Instance from a BackupSource.
rollbackPOST /v2/{name}:rollback
Rollbacks a notebook instance to the previous version.
setIamPolicyPOST /v2/{resource}:setIamPolicy
Sets the access control policy on the specified resource.
startPOST /v2/{name}:start
Starts a notebook instance.
stopPOST /v2/{name}:stop
Stops a notebook instance.
testIamPermissionsPOST /v2/{resource}:testIamPermissions
Returns permissions that a caller has on the specified resource.
upgradePOST /v2/{name}:upgrade
Upgrades a notebook instance to the latest version.

REST Resource: v2.projects.locations.operations

Methods
cancelPOST /v2/{name}:cancel
Starts asynchronous cancellation on a long-running operation.
deleteDELETE /v2/{name}
Deletes a long-running operation.
getGET /v2/{name}
Gets the latest state of a long-running operation.
listGET /v2/{name}/operations
Lists operations that match the specified filter in the request.

REST Resource: v1.projects.locations

Methods
getGET /v1/{name}
Gets information about a location.
listGET /v1/{name}/locations
Lists information about the supported locations for this service.

REST Resource: v1.projects.locations.environments

Methods
createPOST /v1/{parent}/environments
Creates a new Environment.
deleteDELETE /v1/{name}
Deletes a single Environment.
getGET /v1/{name}
Gets details of a single Environment.
listGET /v1/{parent}/environments
Lists environments in a project.

REST Resource: v1.projects.locations.executions

Methods
createPOST /v1/{parent}/executions
Creates a new Execution in a given project and location.
deleteDELETE /v1/{name}
Deletes execution
getGET /v1/{name}
Gets details of executions
listGET /v1/{parent}/executions
Lists executions in a given project and location

REST Resource: v1.projects.locations.instances

Methods
createPOST /v1/{parent}/instances
Creates a new Instance in a given project and location.
deleteDELETE /v1/{name}
Deletes a single Instance.
diagnosePOST /v1/{name}:diagnose
Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
getGET /v1/{name}
Gets details of a single Instance.
getIamPolicyGET /v1/{resource}:getIamPolicy
Gets the access control policy for a resource.
getInstanceHealthGET /v1/{name}:getInstanceHealth
Checks whether a notebook instance is healthy.
isUpgradeableGET /v1/{notebookInstance}:isUpgradeable
Checks whether a notebook instance is upgradable.
listGET /v1/{parent}/instances
Lists instances in a given project and location.
migratePOST /v1/{name}:migrate
Migrates an existing User-Managed Notebook to Workbench Instances.
registerPOST /v1/{parent}/instances:register
Registers an existing legacy notebook instance to the Notebooks API server.
reportPOST /v1/{name}:report
Allows notebook instances to report their latest instance information to the Notebooks API server.
resetPOST /v1/{name}:reset
Resets a notebook instance.
rollbackPOST /v1/{name}:rollback
Rollbacks a notebook instance to the previous version.
setAccelerator/v1/{name}:setAccelerator
Updates the guest accelerators of a single Instance.
setIamPolicyPOST /v1/{resource}:setIamPolicy
Sets the access control policy on the specified resource.
setLabels/v1/{name}:setLabels
Replaces all the labels of an Instance.
setMachineType/v1/{name}:setMachineType
Updates the machine type of a single Instance.
startPOST /v1/{name}:start
Starts a notebook instance.
stopPOST /v1/{name}:stop
Stops a notebook instance.
testIamPermissionsPOST /v1/{resource}:testIamPermissions
Returns permissions that a caller has on the specified resource.
updateConfig/v1/{name}:updateConfig
Update Notebook Instance configurations.
updateMetadataItems/v1/{name}:updateMetadataItems
Add/update metadata items for an instance.
updateShieldedInstanceConfig/v1/{name}:updateShieldedInstanceConfig
Updates the Shielded instance configuration of a single Instance.
upgradePOST /v1/{name}:upgrade
Upgrades a notebook instance to the latest version.

REST Resource: v1.projects.locations.operations

Methods
cancelPOST /v1/{name}:cancel
Starts asynchronous cancellation on a long-running operation.
deleteDELETE /v1/{name}
Deletes a long-running operation.
getGET /v1/{name}
Gets the latest state of a long-running operation.
listGET /v1/{name}/operations
Lists operations that match the specified filter in the request.

REST Resource: v1.projects.locations.runtimes

Methods
createPOST /v1/{parent}/runtimes
Creates a new Runtime in a given project and location.
deleteDELETE /v1/{name}
Deletes a single Runtime.
getGET /v1/{name}
Gets details of a single Runtime.
getIamPolicyGET /v1/{resource}:getIamPolicy
Gets the access control policy for a resource.
listGET /v1/{parent}/runtimes
Lists Runtimes in a given project and location.
migratePOST /v1/{name}:migrate
Migrate an existing Runtime to a new Workbench Instance.
/v1/{runtime.name}
Update Notebook Runtime configuration.
reportEventPOST /v1/{name}:reportEvent
Reports and processes a runtime event.
resetPOST /v1/{name}:reset
Resets a Managed Notebook Runtime.
setIamPolicyPOST /v1/{resource}:setIamPolicy
Sets the access control policy on the specified resource.
startPOST /v1/{name}:start
Starts a Managed Notebook Runtime.
stopPOST /v1/{name}:stop
Stops a Managed Notebook Runtime.
switchPOST /v1/{name}:switch
Switch a Managed Notebook Runtime.
testIamPermissionsPOST /v1/{resource}:testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.projects.locations.schedules

Methods
createPOST /v1/{parent}/schedules
Creates a new Scheduled Notebook in a given project and location.
deleteDELETE /v1/{name}
Deletes schedule and all underlying jobs
getGET /v1/{name}
Gets details of schedule
listGET /v1/{parent}/schedules
Lists schedules in a given project and location.