Reference documentation and code samples for the Cloud Shell v1 API class CloudShellService.
API for interacting with Google Cloud Shell. Each user of Cloud Shell has at
least one environment, which has the ID "default". Environment consists of a
Docker image defining what is installed on the environment and a home
directory containing the user's data that will remain across sessions.
Clients use this API to start and fetch information about their environment,
which can then be used to connect to that environment via a separate SSH
client.
public static void BindService(ServiceBinderBase serviceBinder, CloudShellService.CloudShellServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eCloudShellService\u003c/code\u003e class, which is part of the Google Cloud Shell v1 API, and is used for managing user environments within Google Cloud Shell.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudShellService\u003c/code\u003e class is used to manage environments, which include a Docker image and a persistent home directory for each user, and is accessible via an SSH client.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.4.0 of the \u003ccode\u003eCloudShellService\u003c/code\u003e class is detailed, alongside a history of previous versions ranging from 1.0.0 to the latest 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudShellService\u003c/code\u003e class provides two static methods, \u003ccode\u003eBindService\u003c/code\u003e, which are used to create or register a service definition for server-side handling logic.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e, and the namespace it belongs to is \u003ccode\u003eGoogle.Cloud.Shell.V1\u003c/code\u003e, within the \u003ccode\u003eGoogle.Cloud.Shell.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]