Property Endpoint
Endpoint
Declaration
public string Endpoint { get; set; }
Property Value
Type | Description |
---|---|
String | The region identifier. If not set, the Region or the region identifier in the OCI configuration file will be used, see Region. |
Remarks
When using the cloud service, you may choose to set Region instead. Each region has its own endpoint. E.g. US_PHOENIX_1 has endpoint https://nosql.us-phoenix-1.oci.oraclecloud.com.
The endpoint specifies the host to connect to but may optionally specify port and/or protocol. The protocol is usually not needed and is inferred from the host and port information. If no port is specified, port 443 and protocol https are assumed. If port 443 is specified, https is assumed. If the port is specified and it is not 443, http is assumed. If the protocol is specified, it must be either http or https. For example, https://nosql.ap-seoul-1.oci.oraclecloud.com or http://localhost:8080. If the protocol is specified but not the port, 443 is assumed for https and 8080 for https (8080 is also the default port for the Cloud Simulator).
Per described above, the examples of allowable endpoints would be:
- nosqlhost is equivalent to https://nosqlhost:443.
- nosqlhost:443 is also equivalent to https://nosqlhost:443.
- nosqlhost:8888 is equivalent to http://nosqlhost:8888.
- http://localhost is equivalent to http://localhost:8080.