Bulk Create Users for Role
post
/services/{version}/authorizations/{role}
Create multiple users associated with the given role.
Request
Supported Media Types
- application/json
Path Parameters
-
role: string
Minimum Length:
1
Maximum Length:256
Pattern:^[a-zA-Z][a-zA-Z0-9_#$]*$
Authorization Role Resource Name
Default Value:User
-
version: string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate Service multiple User per Roles entries.
Type:
object
Title:
Show Source
Oracle GoldenGate Service multiple User per Roles entries.
-
users:
array users
Minimum Number of Items:
0
Maximum Number of Items:10240
Nested Schema : users
Type:
array
Minimum Number of Items:
0
Maximum Number of Items:
Show Source
10240
Nested Schema : items
Type:
Show Source
object
-
credential:
string
Minimum Length:
1
Maximum Length:256
-
info:
string
Minimum Length:
1
Maximum Length:4095
-
type:
string
Minimum Length:
1
Maximum Length:4095
-
username:
string
Minimum Length:
1
Maximum Length:256
Example Request (application/json)
{
"users":[
{
"username":"tkgguser01",
"credential":"password"
},
{
"username":"tkgguser02",
"credential":"password"
}
]
}
Response
Supported Media Types
- application/json
200 Response
Successfully created users for the role.
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:
array links
Minimum Number of Items:
0
Maximum Number of Items:16
Oracle GoldenGate links for the request -
messages:
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:
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:
Allowed Values:
[ "alternate", "canonical", "current", "describedby", "describes", "enclosure", "parent", "related", "self", "first", "last", "next", "previous" ]
Relationship of href to the requested link
Nested Schema : items
Type:
Show Source
object
-
$schema:
Allowed Values:
[ "ogg:message" ]
-
code:
string
Minimum Length:
9
Maximum Length:9
Pattern:^OGG[-][0-9]{5}$
The Oracle GoldenGate message code -
issued:
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:
Allowed Values:
[ "INFO", "WARNING", "ERROR" ]
The severity of the message -
title:
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:
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":[
],
"messages":[
{
"$schema":"ogg:message",
"code":"OGG-12025",
"issued":"2017-12-14T12:44:45Z",
"severity":"ERROR",
"title":"The handler method registered for 'POST /services/v2/authorizations/User' caused an exception: No error code - Unknown exception.",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1"
}
]
}