Send feedback
Class Instance (3.5.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.5.4 keyboard_arrow_down
Create an Instance object to interact with a Cloud Bigtable instance.
Package
@google-cloud/bigtable!
Constructors
(constructor)(bigtable, id)
constructor ( bigtable : Bigtable , id : string );
Constructs a new instance of the Instance
class
Parameters
Name
Description
bigtable
Bigtable
id
string
Properties
bigtable
Property Value
id
Property Value
metadata ?: google . bigtable . admin . v2 . IInstance ;
Property Value
Type
Description
google.bigtable.admin.v2.IInstance
name
Property Value
Methods
appProfile(name)
appProfile ( name : string ) : AppProfile ;
Get a reference to a Bigtable App Profile.
Parameter
Name
Description
name
string
The name of the app profile.
Returns
cluster(id)
cluster ( id : string ) : Cluster ;
Get a reference to a Bigtable Cluster.
Parameter
Name
Description
id
string
The id of the cluster.
Returns
create(options)
create ( options : InstanceOptions ) : Promise<CreateInstanceResponse> ;
Parameter
Returns
Type
Description
Promise <CreateInstanceResponse >
create(options, callback)
create ( options : InstanceOptions , callback : CreateInstanceCallback ) : void ;
Parameters
Returns
createAppProfile(id, options)
createAppProfile ( id : string , options ?: AppProfileOptions ) : Promise<CreateAppProfileResponse> ;
Parameters
Returns
Type
Description
Promise <CreateAppProfileResponse >
createAppProfile(id, options, callback)
createAppProfile ( id : string , options : AppProfileOptions , callback : CreateAppProfileCallback ) : void ;
Parameters
Name
Description
id
string
options
AppProfileOptions
callback
CreateAppProfileCallback
Returns
createAppProfile(id, callback)
createAppProfile ( id : string , callback : CreateAppProfileCallback ) : void ;
Parameters
Name
Description
id
string
callback
CreateAppProfileCallback
Returns
createCluster(id, options)
createCluster ( id : string , options ?: CreateClusterOptions ) : Promise<CreateClusterResponse> ;
Parameters
Returns
Type
Description
Promise <CreateClusterResponse >
createCluster(id, options, callback)
createCluster ( id : string , options : CreateClusterOptions , callback : CreateClusterCallback ) : void ;
Parameters
Returns
createCluster(id, callback)
createCluster ( id : string , callback : CreateClusterCallback ) : void ;
Parameters
Name
Description
id
string
callback
CreateClusterCallback
Returns
createTable(id, options)
createTable ( id : string , options ?: CreateTableOptions ) : Promise<CreateTableResponse> ;
Parameters
Returns
Type
Description
Promise <CreateTableResponse >
createTable(id, options, callback)
createTable ( id : string , options : CreateTableOptions , callback : CreateTableCallback ) : void ;
Parameters
Returns
createTable(id, callback)
createTable ( id : string , callback : CreateTableCallback ) : void ;
Parameters
Name
Description
id
string
callback
CreateTableCallback
Returns
createTableFromBackup(config)
createTableFromBackup ( config : CreateTableFromBackupConfig ) : Promise<RestoreTableResponse> ;
Parameter
Name
Description
config
CreateTableFromBackupConfig
Returns
Type
Description
Promise <RestoreTableResponse >
createTableFromBackup(config, callback)
createTableFromBackup ( config : CreateTableFromBackupConfig , callback : RestoreTableCallback ) : void ;
Parameters
Name
Description
config
CreateTableFromBackupConfig
callback
RestoreTableCallback
Returns
delete(gaxOptions)
delete ( gaxOptions ?: CallOptions ) : Promise<DeleteInstanceResponse> ;
Parameter
Name
Description
gaxOptions
CallOptions
Returns
Type
Description
Promise <DeleteInstanceResponse >
delete(gaxOptions, callback)
delete ( gaxOptions : CallOptions , callback : DeleteInstanceCallback ) : void ;
Parameters
Name
Description
gaxOptions
CallOptions
callback
DeleteInstanceCallback
Returns
delete(callback)
delete ( callback : DeleteInstanceCallback ) : void ;
Parameter
Name
Description
callback
DeleteInstanceCallback
Returns
exists(options)
exists ( options ?: CallOptions ) : Promise<InstanceExistsResponse> ;
Parameter
Name
Description
options
CallOptions
Returns
Type
Description
Promise <InstanceExistsResponse >
exists(options, callback)
exists ( options : CallOptions , callback : InstanceExistsCallback ) : void ;
Parameters
Name
Description
options
CallOptions
callback
InstanceExistsCallback
Returns
exists(callback)
exists ( callback : InstanceExistsCallback ) : void ;
Parameter
Name
Description
callback
InstanceExistsCallback
Returns
get(gaxOptions)
get ( gaxOptions ?: CallOptions ) : Promise<GetInstanceResponse> ;
Parameter
Name
Description
gaxOptions
CallOptions
Returns
Type
Description
Promise <GetInstanceResponse >
get(gaxOptions, callback)
get ( gaxOptions : CallOptions , callback : GetInstanceCallback ) : void ;
Parameters
Name
Description
gaxOptions
CallOptions
callback
GetInstanceCallback
Returns
get(callback)
get ( callback : GetInstanceCallback ) : void ;
Parameter
Name
Description
callback
GetInstanceCallback
Returns
getAppProfiles(options)
getAppProfiles ( options ?: CallOptions ) : Promise<GetAppProfilesResponse> ;
Parameter
Name
Description
options
CallOptions
Returns
Type
Description
Promise <GetAppProfilesResponse >
getAppProfiles(options, callback)
getAppProfiles ( options : CallOptions , callback : GetAppProfilesCallback ) : void ;
Parameters
Name
Description
options
CallOptions
callback
GetAppProfilesCallback
Returns
getAppProfiles(callback)
getAppProfiles ( callback : GetAppProfilesCallback ) : void ;
Parameter
Name
Description
callback
GetAppProfilesCallback
Returns
getAppProfilesStream(gaxOptions)
getAppProfilesStream ( gaxOptions ?: CallOptions ) : NodeJS . ReadableStream ;
Get AppProfile objects for all the App Profiles in your Cloud Bigtable instance as a readable object stream.
Parameter
Returns
Type
Description
NodeJS.ReadableStream
{stream}
getBackups(options)
getBackups ( options ?: GetBackupsOptions ) : Promise<GetBackupsResponse> ;
Parameter
Returns
Type
Description
Promise <GetBackupsResponse >
getBackups(options, callback)
getBackups ( options : GetBackupsOptions , callback : GetBackupsCallback ) : void ;
Parameters
Returns
getBackups(callback)
getBackups ( callback : GetBackupsCallback ) : void ;
Parameter
Name
Description
callback
GetBackupsCallback
Returns
getBackupsStream(options)
getBackupsStream ( options ?: GetBackupsOptions ) : NodeJS . ReadableStream ;
Get Cloud Bigtable Backup instances within this instance. This returns both completed and pending backups as a readable stream.
Parameter
Name
Description
options
GetBackupsOptions
Configuration object. See for a complete list of options.
Returns
Type
Description
NodeJS.ReadableStream
{ReadableStream
getClusters(options)
getClusters ( options ?: CallOptions ) : Promise<GetClustersResponse> ;
Parameter
Name
Description
options
CallOptions
Returns
Type
Description
Promise <GetClustersResponse >
getClusters(options, callback)
getClusters ( options : CallOptions , callback : GetClustersCallback ) : void ;
Parameters
Name
Description
options
CallOptions
callback
GetClustersCallback
Returns
getClusters(callback)
getClusters ( callback : GetClustersCallback ) : void ;
Parameter
Name
Description
callback
GetClustersCallback
Returns
getIamPolicy(options)
getIamPolicy ( options ?: GetIamPolicyOptions ) : Promise <[ Policy ]>;
Parameter
Returns
Type
Description
Promise <[Policy ]>
getIamPolicy(options, callback)
getIamPolicy ( options : GetIamPolicyOptions , callback : GetIamPolicyCallback ) : void ;
Parameters
Returns
getMetadata ( options ?: CallOptions ) : Promise<GetInstanceMetadataResponse> ;
Parameter
Name
Description
options
CallOptions
Returns
Type
Description
Promise <GetInstanceMetadataResponse >
getMetadata ( options : CallOptions , callback : GetInstanceMetadataCallback ) : void ;
Parameters
Name
Description
options
CallOptions
callback
GetInstanceMetadataCallback
Returns
getMetadata ( callback : GetInstanceMetadataCallback ) : void ;
Parameter
Name
Description
callback
GetInstanceMetadataCallback
Returns
getTables(options)
getTables ( options ?: GetTablesOptions ) : Promise<GetTablesResponse> ;
Parameter
Returns
Type
Description
Promise <GetTablesResponse >
getTables(options, callback)
getTables ( options : GetTablesOptions , callback : GetTablesCallback ) : void ;
Parameters
Returns
getTables(callback)
getTables ( callback : GetTablesCallback ) : void ;
Parameter
Name
Description
callback
GetTablesCallback
Returns
getTablesStream(options)
getTablesStream ( options ?: GetTablesOptions ) : NodeJS . ReadableStream ;
Get Table objects for all the tables in your Cloud Bigtable instance as a readable object stream.
Parameter
Name
Description
options
GetTablesOptions
Query object. See for a complete list of options.
Returns
Type
Description
NodeJS.ReadableStream
{stream}
getTypeType_(type)
static getTypeType_ ( type ?: string ) : number ;
Maps the instance type to the proper integer.
Parameter
Name
Description
type
string
The instance type (production, development).
Returns
Type
Description
number
{number}
setIamPolicy(policy, gaxOptions)
setIamPolicy ( policy : Policy , gaxOptions ?: CallOptions ) : Promise<SetIamPolicyResponse> ;
Parameters
Name
Description
policy
Policy
gaxOptions
CallOptions
Returns
Type
Description
Promise <SetIamPolicyResponse >
setIamPolicy(policy, gaxOptions, callback)
setIamPolicy ( policy : Policy , gaxOptions : CallOptions , callback : SetIamPolicyCallback ) : void ;
Parameters
Name
Description
policy
Policy
gaxOptions
CallOptions
callback
SetIamPolicyCallback
Returns
setIamPolicy(policy, callback)
setIamPolicy ( policy : Policy , callback : SetIamPolicyCallback ) : void ;
Parameters
Name
Description
policy
Policy
callback
SetIamPolicyCallback
Returns
setMetadata ( metadata : IInstance , options ?: CallOptions ) : Promise<SetInstanceMetadataResponse> ;
Parameters
Name
Description
metadata
IInstance
options
CallOptions
Returns
Type
Description
Promise <SetInstanceMetadataResponse >
setMetadata ( metadata : IInstance , options : CallOptions , callback : SetInstanceMetadataCallback ) : void ;
Parameters
Name
Description
metadata
IInstance
options
CallOptions
callback
SetInstanceMetadataCallback
Returns
setMetadata ( metadata : IInstance , callback : SetInstanceMetadataCallback ) : void ;
Parameters
Name
Description
metadata
IInstance
callback
SetInstanceMetadataCallback
Returns
table(id)
table ( id : string ) : Table ;
Get a reference to a Bigtable table.
Parameter
Name
Description
id
string
Unique identifier of the table.
Returns
Type
Description
Table
{Table}
testIamPermissions(permissions, gaxOptions)
testIamPermissions ( permissions : string | string [], gaxOptions ?: CallOptions ) : Promise<TestIamPermissionsResponse> ;
Parameters
Name
Description
permissions
string | string[]
gaxOptions
CallOptions
Returns
Type
Description
Promise <TestIamPermissionsResponse >
testIamPermissions(permissions, callback)
testIamPermissions ( permissions : string | string [], callback : TestIamPermissionsCallback ) : void ;
Parameters
Returns
testIamPermissions(permissions, gaxOptions, callback)
testIamPermissions ( permissions : string | string [], gaxOptions : CallOptions , callback : TestIamPermissionsCallback ) : void ;
Parameters
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-29 UTC."],[],[]]