Retrieve Database Names
get
/services/{version}/connections/{connection}/databases
Retrieve names of databases.
Request
Path Parameters
-
connection: string
Minimum Length:
1Maximum Length:61Pattern:^[a-zA-Z][a-zA-Z0-9_#$]{1,29}([.][a-zA-Z][a-zA-Z0-9_#$]{1,29})?$Connection name. For each alias in the credential store, a connection with the name 'domain.alias' exists.
-
version: string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Query Parameters
-
name(optional): string
Database name filter, including wildcard characters '*' or '?'.
Response
Supported Media Types
- application/json
200 Response
Database names retrieved successfully.
Root Schema : Oracle GoldenGate Collection
Type:
objectTitle:
Show Source
Oracle GoldenGate Collection-
$schema(optional):
Allowed Values:
[ "ogg:collection" ] -
items:
array items
Minimum Number of Items:
0Maximum Number of Items:32767
Nested Schema : items
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
Show Source
32767-
Array of:
object items
Additional Properties Allowed:
true
Nested Schema : items
Type:
objectAdditional Properties Allowed:
Show Source
true-
$schema(optional):
string
Minimum Length:
1Maximum Length:255Default Value:ogg:collectionItemName of schema for collection item, defaults to this schema -
links:
array links
Minimum Number of Items:
0Maximum Number of Items:16Links for item -
name:
string
Minimum Length:
1Maximum Length:255Item name
Nested Schema : links
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
16Links for item
Show Source
Nested Schema : items
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "ogg:link" ] -
description(optional):
string
Minimum Length:
1Maximum Length:4095A human-readable description that provides information and detail specific to this link. -
href:
string
Minimum Length:
2Maximum Length:4095Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$An absolute URI for the link -
mediaType(optional):
string
Minimum Length:
6Maximum Length:255Pattern:^(text|application)/[a-zA-Z0-9!#$&.+-^_]+$Media type - see RFC 4288 (https://tools.ietf.org/html/rfc4288) -
rel:
Allowed Values:
[ "alternate", "canonical", "current", "describedby", "describes", "enclosure", "parent", "related", "self", "first", "last", "next", "previous" ]Relationship of href to the requested link
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/databases",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/databases",
"mediaType":"application/json",
"rel":"self"
},
{
"href":"http://localhost:11001/services/v2/metadata-catalog/databases",
"mediaType":"application/schema+json",
"rel":"describedby"
}
],
"messages":[
],
"response":{
"$schema":"ogg:collection",
"items":[
{
"$schema":"ogg:collectionItem",
"links":[
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/databases",
"mediaType":"application/json",
"rel":"parent"
},
{
"href":"http://localhost:11001/services/v2/connections/OracleGoldenGate.oggadmin/databases/ORCL",
"mediaType":"application/json",
"rel":"canonical"
}
],
"name":"ORCL"
}
]
}
}