Retrieve Database Names
get
/services/{version}/connections/{connection}/databases
Required Role: User
Retrieve names of databases.
Request
Path Parameters
-
connection(required): string
Minimum Length:
1
Maximum Length:61
Pattern:^[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(required): string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Query Parameters
-
name: 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:
object
Title:
Show Source
Oracle GoldenGate Collection
-
$schema:
Allowed Values:
[ "ogg:collection" ]
-
items(required):
array items
Minimum Number of Items:
0
Maximum Number of Items:32767
Nested Schema : items
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
Show Source
32767
-
Array of:
object items
Additional Properties Allowed:
true
Nested Schema : items
Type:
object
Additional Properties Allowed:
Show Source
true
-
$schema:
string
Minimum Length:
1
Maximum Length:255
Default Value:ogg:collectionItem
Name of schema for collection item, defaults to this schema -
links(required):
array links
Minimum Number of Items:
1
Maximum Number of Items:16
Links for item -
name(required):
string
Minimum Length:
1
Maximum Length:255
Item name -
status:
status
Item status
Nested Schema : links
Type:
array
Minimum Number of Items:
1
Maximum Number of Items:
16
Links for item
Show Source
Nested Schema : items
Type:
Show Source
object
-
$schema:
Allowed Values:
[ "ogg:link" ]
-
description:
string
Minimum Length:
1
Maximum Length:4095
A human-readable description that provides information and detail specific to this link. -
href(required):
string
Minimum Length:
2
Maximum Length:4095
Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
An absolute URI for the link -
mediaType:
string
Minimum Length:
6
Maximum Length:255
Pattern:^(text|application)/[a-zA-Z0-9!#$&.+-^_]+$
Media type - see RFC 4288 (https://tools.ietf.org/html/rfc4288) -
rel(required):
Allowed Values:
[ "alternate", "canonical", "current", "describedby", "describes", "enclosure", "parent", "related", "self", "first", "last", "next", "previous", "ogg://service" ]
Relationship of href to the requested link
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:9012/services/v2/connections/OracleGoldenGate.ggsouth/databases",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:9012/services/v2/connections/OracleGoldenGate.ggsouth/databases",
"mediaType":"application/json",
"rel":"self"
},
{
"href":"http://localhost:9012/services/v2/metadata-catalog/databases",
"mediaType":"application/schema+json",
"rel":"describedby"
}
],
"messages":[
],
"response":{
"$schema":"ogg:collection",
"items":[
{
"$schema":"ogg:collectionItem",
"links":[
{
"href":"http://localhost:9012/services/v2/connections/OracleGoldenGate.ggsouth/databases",
"mediaType":"application/json",
"rel":"parent"
},
{
"href":"http://localhost:9012/services/v2/connections/OracleGoldenGate.ggsouth/databases/DBNORTH_PDB1",
"mediaType":"application/json",
"rel":"canonical"
}
],
"name":"DBNORTH_PDB1"
}
]
}
}