Property Region
Region
Declaration
public Region Region { get; set; }
Property Value
Type | Description |
---|---|
Region | The region identifier. If not set, the Endpoint or the region identifier in the OCI configuration file will be used, see remarks section. |
Remarks
This property is an alternative to Endpoint. The service endpoint will be inferred from the region. This value must be one of the region constants defined in the Region class.
When using JSON configuration file, specify this property as a string equal to the name of the region constant, such as AP_MUMBAI_1, US_ASHBURN_1, etc. or value of the region identifier such as ap-mumbai-1, us-ashburn-1, etc. (see RegionId).
You must specify either Region or Endpoint but not both. One possible exception is when the region is stored in the OCI configuration file together with the credentials, in which case you need not specify either property in NoSQLConfig. In this case you must either set AuthorizationProvider to an instance of IAMAuthorizationProvider configured to use that OCI configuration file or use the default OCI configuration file and the default instance of IAMAuthorizationProvider.
Note that setting Region takes precedence over region identifier in the OCI configuration file if one is used.