Cloud Storage Integrator 2016 Node.js Edition
Cloud Storage Integrator 2016 Node.js Edition
Questions / Feedback?

Region Property

The region where the bucket is located.

Syntax

 digitalocean.getRegion([callback])
 digitalocean.setRegion( region, [callback])

Default Value

"nyc3"


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getRegion([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setRegion([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

By default the class will use the New York 3 (nyc3) region. Set this property if the bucket is located in a different region.

Region Values:

ValueRegion
ams2Amsterdam 2
ams3Amsterdam 3
blr1Bangalore 1
fra1Frankfurt 1
lon1London 1
nyc1New York 1
nyc2New York 2
nyc3 (Default)New York 3
sfo1San Francisco 1
sfo2San Francisco 2
sgp1Singapore 1
tor1Toronto 1

Data Type

String

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Cloud Storage Integrator 2016 Node.js Edition - Version 16.0 [Build 7239]