Create Encryption Key
post
/services/{version}/enckeys/{keyName}
Required Role: Administrator
Create an Encryption Key.
Request
Supported Media Types
- application/json
Path Parameters
-
keyName(required): string
Minimum Length:
1
Maximum Length:24
Pattern:^[A-Za-z_$][A-Za-z0-9_$]*$
The name of the Encryption Key.
-
version(required): string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate Encryption Key
Title:
Oracle GoldenGate Encryption Key
This schema describes an encryption key, used to encrypt data
Match One
Show Source
-
object Oracle GoldenGate Encryption Key-x-oneOf[0]
128-bit encryption key
-
object Oracle GoldenGate Encryption Key-x-oneOf[1]
192-bit encryption key
-
object Oracle GoldenGate Encryption Key-x-oneOf[2]
256-bit encryption key
Nested Schema : Oracle GoldenGate Encryption Key-x-oneOf[0]
Type:
object
128-bit encryption key
Show Source
-
$schema:
Allowed Values:
[ "ogg:encryptKey" ]
-
bitLength(required):
Allowed Values:
[ "128" ]
Length of the encryption key, in bits -
keyValue:
string
Minimum Length:
34
Maximum Length:34
Pattern:0x[A-Fa-f0-9]{32}
An optional encryption key value. If not provided, one will be generated.
Nested Schema : Oracle GoldenGate Encryption Key-x-oneOf[1]
Type:
object
192-bit encryption key
Show Source
-
$schema:
Allowed Values:
[ "ogg:encryptKey" ]
-
bitLength(required):
Allowed Values:
[ "192" ]
Length of the encryption key, in bits -
keyValue:
string
Minimum Length:
50
Maximum Length:50
Pattern:0x[A-Fa-f0-9]{48}
An optional encryption key value. If not provided, one will be generated.
Nested Schema : Oracle GoldenGate Encryption Key-x-oneOf[2]
Type:
object
256-bit encryption key
Show Source
-
$schema:
Allowed Values:
[ "ogg:encryptKey" ]
-
bitLength(required):
Allowed Values:
[ "256" ]
Length of the encryption key, in bits -
keyValue:
string
Minimum Length:
66
Maximum Length:66
Pattern:0x[A-Fa-f0-9]{64}
An optional encryption key value. If not provided, one will be generated.
Example Request (application/json)
{
"bitLength":"128"
}
Response
Supported Media Types
- application/json
201 Response
Encryption Key created successfully.
Root Schema : RESTful API Standard Response
Type:
object
Title:
RESTful API Standard Response
Standard Response for all Oracle GoldenGate RESTful API calls
Show Source
-
$schema:
Allowed Values:
[ "api:standardResponse" ]
-
links(required):
array links
Minimum Number of Items:
0
Maximum Number of Items:16
Oracle GoldenGate links for the request -
messages(required):
array messages
Minimum Number of Items:
0
Maximum Number of Items:65535
Oracle GoldenGate messages issued during the request -
response:
object response
Oracle GoldenGate document from the request
Nested Schema : links
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
16
Oracle GoldenGate links for the request
Show Source
Nested Schema : messages
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
65535
Oracle GoldenGate messages issued during the request
Show Source
Nested Schema : response
Type:
object
Oracle GoldenGate document from the request
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
Nested Schema : items
Type:
Show Source
object
-
$schema:
Allowed Values:
[ "ogg:message" ]
-
code(required):
string
Minimum Length:
9
Maximum Length:9
Pattern:^OGG[-][0-9]{5}$
The Oracle GoldenGate message code -
issued(required):
string
Minimum Length:
20
Maximum Length:32
Pattern:^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$
The date and time that the message was issued -
severity(required):
Allowed Values:
[ "INFO", "WARNING", "ERROR" ]
The severity of the message -
title(required):
string
Minimum Length:
1
Maximum Length:4095
A human-readable description that provides information and detail specific to this occurence of the information, warning or error. -
type(required):
string
Minimum Length:
2
Maximum Length:4095
Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:9012/services/v2/enckeys/superkey",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:9012/services/v2/enckeys/superkey",
"mediaType":"application/json",
"rel":"self"
}
],
"messages":[
]
}