Class Region
  Class containing all of the known Regions that can be contacted.
Note, not all services may be available in all regions.
Assembly: OCI.DotNetSDK.Common.dll
  Syntax
  
  Fields
  AF_JOHANNESBURG_1
  
  
  Declaration
  
    public static readonly Region AF_JOHANNESBURG_1
   
  Field Value
  
  AP_BATAM_1
  
  
  Declaration
  
    public static readonly Region AP_BATAM_1
   
  Field Value
  
  AP_CHIYODA_1
  
  
  Declaration
  
    public static readonly Region AP_CHIYODA_1
   
  Field Value
  
  AP_CHUNCHEON_1
  
  
  Declaration
  
    public static readonly Region AP_CHUNCHEON_1
   
  Field Value
  
  AP_CHUNCHEON_2
  
  
  Declaration
  
    public static readonly Region AP_CHUNCHEON_2
   
  Field Value
  
  AP_DCC_CANBERRA_1
  
  
  Declaration
  
    public static readonly Region AP_DCC_CANBERRA_1
   
  Field Value
  
  AP_DCC_GAZIPUR_1
  
  
  Declaration
  
    public static readonly Region AP_DCC_GAZIPUR_1
   
  Field Value
  
  AP_DELHI_1
  
  
  Declaration
  
    public static readonly Region AP_DELHI_1
   
  Field Value
  
  AP_HYDERABAD_1
  
  
  Declaration
  
    public static readonly Region AP_HYDERABAD_1
   
  Field Value
  
  AP_IBARAKI_1
  
  
  Declaration
  
    public static readonly Region AP_IBARAKI_1
   
  Field Value
  
  AP_MELBOURNE_1
  
  
  Declaration
  
    public static readonly Region AP_MELBOURNE_1
   
  Field Value
  
  AP_MUMBAI_1
  
  
  Declaration
  
    public static readonly Region AP_MUMBAI_1
   
  Field Value
  
  AP_OSAKA_1
  
  
  Declaration
  
    public static readonly Region AP_OSAKA_1
   
  Field Value
  
  AP_SEOUL_1
  
  
  Declaration
  
    public static readonly Region AP_SEOUL_1
   
  Field Value
  
  AP_SEOUL_2
  
  
  Declaration
  
    public static readonly Region AP_SEOUL_2
   
  Field Value
  
  AP_SINGAPORE_1
  
  
  Declaration
  
    public static readonly Region AP_SINGAPORE_1
   
  Field Value
  
  AP_SINGAPORE_2
  
  
  Declaration
  
    public static readonly Region AP_SINGAPORE_2
   
  Field Value
  
  AP_SUWON_1
  
  
  Declaration
  
    public static readonly Region AP_SUWON_1
   
  Field Value
  
  AP_SYDNEY_1
  
  
  Declaration
  
    public static readonly Region AP_SYDNEY_1
   
  Field Value
  
  AP_TOKYO_1
  
  
  Declaration
  
    public static readonly Region AP_TOKYO_1
   
  Field Value
  
  CA_MONTREAL_1
  
  
  Declaration
  
    public static readonly Region CA_MONTREAL_1
   
  Field Value
  
  CA_TORONTO_1
  
  
  Declaration
  
    public static readonly Region CA_TORONTO_1
   
  Field Value
  
  DefaultRealmFromEnvironmentVariable
  
  
  Declaration
  
    public static volatile string DefaultRealmFromEnvironmentVariable
   
  Field Value
  
  EU_AMSTERDAM_1
  
  
  Declaration
  
    public static readonly Region EU_AMSTERDAM_1
   
  Field Value
  
  EU_BUDAPEST_1
  
  
  Declaration
  
    public static readonly Region EU_BUDAPEST_1
   
  Field Value
  
  EU_CRISSIER_1
  
  
  Declaration
  
    public static readonly Region EU_CRISSIER_1
   
  Field Value
  
  EU_DCC_DUBLIN_1
  
  
  Declaration
  
    public static readonly Region EU_DCC_DUBLIN_1
   
  Field Value
  
  EU_DCC_DUBLIN_2
  
  
  Declaration
  
    public static readonly Region EU_DCC_DUBLIN_2
   
  Field Value
  
  EU_DCC_MILAN_1
  
  
  Declaration
  
    public static readonly Region EU_DCC_MILAN_1
   
  Field Value
  
  EU_DCC_MILAN_2
  
  
  Declaration
  
    public static readonly Region EU_DCC_MILAN_2
   
  Field Value
  
  EU_DCC_RATING_1
  
  
  Declaration
  
    public static readonly Region EU_DCC_RATING_1
   
  Field Value
  
  EU_DCC_RATING_2
  
  
  Declaration
  
    public static readonly Region EU_DCC_RATING_2
   
  Field Value
  
  EU_DCC_ZURICH_1
  
  
  Declaration
  
    public static readonly Region EU_DCC_ZURICH_1
   
  Field Value
  
  EU_FRANKFURT_1
  
  
  Declaration
  
    public static readonly Region EU_FRANKFURT_1
   
  Field Value
  
  EU_FRANKFURT_2
  
  
  Declaration
  
    public static readonly Region EU_FRANKFURT_2
   
  Field Value
  
  EU_JOVANOVAC_1
  
  
  Declaration
  
    public static readonly Region EU_JOVANOVAC_1
   
  Field Value
  
  EU_MADRID_1
  
  
  Declaration
  
    public static readonly Region EU_MADRID_1
   
  Field Value
  
  EU_MADRID_2
  
  
  Declaration
  
    public static readonly Region EU_MADRID_2
   
  Field Value
  
  EU_MADRID_3
  
  
  Declaration
  
    public static readonly Region EU_MADRID_3
   
  Field Value
  
  EU_MARSEILLE_1
  
  
  Declaration
  
    public static readonly Region EU_MARSEILLE_1
   
  Field Value
  
  EU_MILAN_1
  
  
  Declaration
  
    public static readonly Region EU_MILAN_1
   
  Field Value
  
  EU_PARIS_1
  
  
  Declaration
  
    public static readonly Region EU_PARIS_1
   
  Field Value
  
  EU_STOCKHOLM_1
  
  
  Declaration
  
    public static readonly Region EU_STOCKHOLM_1
   
  Field Value
  
  EU_ZURICH_1
  
  
  Declaration
  
    public static readonly Region EU_ZURICH_1
   
  Field Value
  
  IL_JERUSALEM_1
  
  
  Declaration
  
    public static readonly Region IL_JERUSALEM_1
   
  Field Value
  
  ME_ABUDHABI_1
  
  
  Declaration
  
    public static readonly Region ME_ABUDHABI_1
   
  Field Value
  
  ME_ABUDHABI_2
  
  
  Declaration
  
    public static readonly Region ME_ABUDHABI_2
   
  Field Value
  
  ME_ABUDHABI_3
  
  
  Declaration
  
    public static readonly Region ME_ABUDHABI_3
   
  Field Value
  
  ME_ABUDHABI_4
  
  
  Declaration
  
    public static readonly Region ME_ABUDHABI_4
   
  Field Value
  
  ME_ALAIN_1
  
  
  Declaration
  
    public static readonly Region ME_ALAIN_1
   
  Field Value
  
  ME_DCC_DOHA_1
  
  
  Declaration
  
    public static readonly Region ME_DCC_DOHA_1
   
  Field Value
  
  ME_DCC_MUSCAT_1
  
  
  Declaration
  
    public static readonly Region ME_DCC_MUSCAT_1
   
  Field Value
  
  ME_DUBAI_1
  
  
  Declaration
  
    public static readonly Region ME_DUBAI_1
   
  Field Value
  
  ME_IBRI_1
  
  
  Declaration
  
    public static readonly Region ME_IBRI_1
   
  Field Value
  
  ME_JEDDAH_1
  
  
  Declaration
  
    public static readonly Region ME_JEDDAH_1
   
  Field Value
  
  ME_RIYADH_1
  
  
  Declaration
  
    public static readonly Region ME_RIYADH_1
   
  Field Value
  
  MX_MONTERREY_1
  
  
  Declaration
  
    public static readonly Region MX_MONTERREY_1
   
  Field Value
  
  MX_QUERETARO_1
  
  
  Declaration
  
    public static readonly Region MX_QUERETARO_1
   
  Field Value
  
  SA_BOGOTA_1
  
  
  Declaration
  
    public static readonly Region SA_BOGOTA_1
   
  Field Value
  
  SA_SANTIAGO_1
  
  
  Declaration
  
    public static readonly Region SA_SANTIAGO_1
   
  Field Value
  
  SA_SAOPAULO_1
  
  
  Declaration
  
    public static readonly Region SA_SAOPAULO_1
   
  Field Value
  
  SA_VALPARAISO_1
  
  
  Declaration
  
    public static readonly Region SA_VALPARAISO_1
   
  Field Value
  
  SA_VINHEDO_1
  
  
  Declaration
  
    public static readonly Region SA_VINHEDO_1
   
  Field Value
  
  UK_CARDIFF_1
  
  
  Declaration
  
    public static readonly Region UK_CARDIFF_1
   
  Field Value
  
  UK_GOV_CARDIFF_1
  
  
  Declaration
  
    public static readonly Region UK_GOV_CARDIFF_1
   
  Field Value
  
  UK_GOV_LONDON_1
  
  
  Declaration
  
    public static readonly Region UK_GOV_LONDON_1
   
  Field Value
  
  UK_LONDON_1
  
  
  Declaration
  
    public static readonly Region UK_LONDON_1
   
  Field Value
  
  US_ASHBURN_1
  
  
  Declaration
  
    public static readonly Region US_ASHBURN_1
   
  Field Value
  
  US_ASHBURN_2
  
  
  Declaration
  
    public static readonly Region US_ASHBURN_2
   
  Field Value
  
  US_CHICAGO_1
  
  
  Declaration
  
    public static readonly Region US_CHICAGO_1
   
  Field Value
  
  US_GOV_ASHBURN_1
  
  
  Declaration
  
    public static readonly Region US_GOV_ASHBURN_1
   
  Field Value
  
  US_GOV_CHICAGO_1
  
  
  Declaration
  
    public static readonly Region US_GOV_CHICAGO_1
   
  Field Value
  
  US_GOV_PHOENIX_1
  
  
  Declaration
  
    public static readonly Region US_GOV_PHOENIX_1
   
  Field Value
  
  US_LANGLEY_1
  
  
  Declaration
  
    public static readonly Region US_LANGLEY_1
   
  Field Value
  
  US_LUKE_1
  
  
  Declaration
  
    public static readonly Region US_LUKE_1
   
  Field Value
  
  US_NEWARK_1
  
  
  Declaration
  
    public static readonly Region US_NEWARK_1
   
  Field Value
  
  US_PHOENIX_1
  
  
  Declaration
  
    public static readonly Region US_PHOENIX_1
   
  Field Value
  
  US_SALTLAKE_2
  
  
  Declaration
  
    public static readonly Region US_SALTLAKE_2
   
  Field Value
  
  US_SANJOSE_1
  
  
  Declaration
  
    public static readonly Region US_SANJOSE_1
   
  Field Value
  
  US_SOMERSET_1
  
  
  Declaration
  
    public static readonly Region US_SOMERSET_1
   
  Field Value
  
  US_THAMES_1
  
  
  Declaration
  
    public static readonly Region US_THAMES_1
   
  Field Value
  
  logger
  
  
  Declaration
  
    protected static Logger logger
   
  Field Value
  
  Properties
  
  Realm
  The realm this region belongs to.
Declaration
  
    public Realm Realm { get; }
   
  Property Value
  
  
  RegionCode
  
  
  Declaration
  
    public string RegionCode { get; }
   
  Property Value
  
  
  RegionId
  
  
  Declaration
  
    public string RegionId { get; }
   
  Property Value
  
  Methods
  
  
  Enables contact to IMDS (Instance Metadata Service, only available on OCI instances) if user decides to opt-in
Declaration
  
    public static void EnableInstanceMetadataService()
   
  
  
  Creates a default endpoint URL for the given service in the given region.
Note, the region is not validated against known regions, this just creates
a URL that follows the default format.
Declaration
  
    public static string FormatDefaultRegionEndpoint(Service service, Region region)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Service | service | The service. | 
      
        | Region | region | The region. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | string | The endpoint constructed from the service and region. | 
    
  
  
  
  Creates a default endpoint URL for the given service in the given region.
Note, the regionId is not validated against known regions, this just creates
a URL that follows the default format.
Declaration
  
    public static string FormatDefaultRegionEndpoint(Service service, string regionId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Service | service | The service. | 
      
        | string | regionId | The region. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | string | The endpoint constructed from the service and region. | 
    
  
  
  FromRegionCodeOrId(string)
  Returns the Region object from the canonical public region id or region code.
Declaration
  
    public static Region FromRegionCodeOrId(string regionCodeOrId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | regionCodeOrId | The region id or region code. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region | The region object. | 
    
  
  
  FromRegionId(string)
  Returns the Region object from the canonical public region id.
Declaration
  
    public static Region FromRegionId(string regionId)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | regionId | The region id. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region | The region object. | 
    
  
  
  GetEndpoint(Service)
  Resolves a service name to its endpoint in the region, if available.
Declaration
  
    public string GetEndpoint(Service service)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Service | service | The service. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | string | The endpoint for the given service, or empty if the service endpoint is not known. | 
    
  
  
  
  Send request to IMDS (Instance Metadata Service, only available on OCI instances)
Declaration
  
    public static RegionSchema GetRegionSchemaFromInstanceMetaDataService()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | RegionSchema | RegionSchema extracted from the IMDS | 
    
  
  
  Register(string, Realm, bool)
  Register a new region. Used to allow the SDK to be forward compatible with unreleased regions.
Declaration
  
    public static Region Register(string regionId, Realm realm, bool isDeveloperToolConfigRegion = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | regionId | The region id. | 
      
        | Realm | realm | The realm of the new region. | 
      
        | bool | isDeveloperToolConfigRegion | The bool value denoting if region to be registered is an DeveloperToolConfig Region or not. Set to false by default for OCI regions. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region | The registered region (or existing one if found). | 
    
  
  
  Register(string, Realm, string, bool)
  Register a new region. Used to allow the SDK to be forward compatible with unreleased regions.
Declaration
  
    public static Region Register(string regionId, Realm realm, string regionCode, bool isDeveloperToolConfig = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | string | regionId | The region id. | 
      
        | Realm | realm | The realm of the new region. | 
      
        | string | regionCode | The 3-letter region code. | 
      
        | bool | isDeveloperToolConfig | The bool value denoting if region to be registered is an DeveloperToolConfig Region or not. Set to false by default for OCI regions | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region | The registered region (or existing one if found). | 
    
  
  
  
  Calls GetRegionSchemaFromInstanceMetaDataService , only available on OCI instances), registers region
Declaration
  
    public static Region RegisterRegionFromInstanceMetadataService()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region | Returns Region registered from InstanceMetadataServiceResponse | 
    
  
  
  ResetConfigFileInUse()
  Resets the HasUsedConfigFile check for reading Region Metadata from region config file
Declaration
  
    public static void ResetConfigFileInUse()
   
  
  
  Resets the HasUsedDeveloperToolConfigFile check for reading DeveloperToolConfig from DeveloperToolConfigFile
Declaration
  
    public static void ResetDeveloperToolConfig()
   
  
  ResetEnvironmentVariableInUse()
  Resets the HasUsedEnvVar check for Region Metadata
Declaration
  
    public static void ResetEnvironmentVariableInUse()
   
  
  
  Instructs the SDK to not contact the IMDS (Instance Metadata Service, only available on OCI instances).
Declaration
  
    public static void SkipInstanceMetadataService()
   
  
  Values()
  Return all known Regions in this version of the SDK.
Declaration
  
    public static Region[] Values()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Region[] | All known regions. |