Create a Database Connection.
POST {{baseUrl}}/connections
Create a Database Connection resource that contains the details to connect to either a Source or Target Database in the migration.
Request Body
{"databaseType"=>"AUTONOMOUS", "compartmentId"=>"<string>", "adminCredentials"=>{"username"=>"<string>", "password"=>"<string>"}, "vaultDetails"=>{"compartmentId"=>"<string>", "vaultId"=>"<string>", "keyId"=>"<string>"}, "certificateTdn"=>"<string>", "connectDescriptor"=>{"connectString"=>"<string>", "databaseServiceName"=>"<string>", "host"=>"<string>", "port"=>"<integer>"}, "databaseId"=>"<string>", "displayName"=>"<string>", "freeformTags"=>{"do9"=>"<string>", "anim_9"=>"<string>"}, "manualDatabaseSubType"=>"ORACLE", "nsgIds"=>["<string>", "<string>"], "privateEndpoint"=>{"compartmentId"=>"<string>", "vcnId"=>"<string>", "subnetId"=>"<string>"}, "sshDetails"=>{"host"=>"<string>", "sshkey"=>"<string>", "user"=>"<string>", "sudoLocation"=>"<string>"}, "tlsKeystore"=>"<string>", "tlsWallet"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations. For example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
might be rejected. | |||
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a | |
particular request, please provide the request ID. | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","databaseType":"MANUAL","displayName":"\u003cstring\u003e","timeCreated":"\u003cdateTime\u003e","lifecycleState":"DELETING","adminCredentials":{"username":"\u003cstring\u003e"},"certificateTdn":"\u003cstring\u003e","connectDescriptor":{"connectString":"\u003cstring\u003e","databaseServiceName":"\u003cstring\u003e","host":"\u003cstring\u003e","port":"\u003cinteger\u003e"},"credentialsSecretId":"\u003cstring\u003e","databaseId":"\u003cstring\u003e","definedTags":{"nulla_dc":{"minim_5":{}}},"freeformTags":{"ipsum_a8":"\u003cstring\u003e"},"isDedicated":"\u003cboolean\u003e","lifecycleDetails":"\u003cstring\u003e","manualDatabaseSubType":"ORACLE","nsgIds":["\u003cstring\u003e","\u003cstring\u003e"],"privateEndpoint":{"compartmentId":"\u003cstring\u003e","id":"\u003cstring\u003e","subnetId":"\u003cstring\u003e","vcnId":"\u003cstring\u003e"},"sshDetails":{"host":"\u003cstring\u003e","user":"\u003cstring\u003e","sudoLocation":"\u003cstring\u003e"},"systemTags":{"magna621":{"dolor2f":{}},"mollitae":{"tempor7b2":{}},"mollitf_":{"occaecat_df_":{}},"sed_9":{"fugiat353":{},"nulla__":{},"ullamco_83":{}}},"timeUpdated":"\u003cdateTime\u003e","vaultDetails":{"compartmentId":"\u003cstring\u003e","vaultId":"\u003cstring\u003e","keyId":"\u003cstring\u003e"}}