Delete Trail Sequence Collection
/services/{version}/trails/{trail}/sequences
Required Role: Administrator
Delete a collection of trail sequences from a trail
Request
-
trail(required): string
Minimum Length:
2Maximum Length:512Pattern:^[a-zA-Z0-9_#$-]*$The name of the Trail. This corresponds to the
trailNameproperty in theogg:trailresource or the trail filesystem path.A trail name can be either a human-friendly name like
HumanResourcesor a two-character name plus a query parameter called 'path' whose value is the URI-encoded trail filesystem path, likeea?path=north%2Femployees. When a short name and a URI-encoded path is used for the trail name, it must match thenameandpathproperties in the correspondingogg:trailresource.A trail called
HumanResourceswith the path/name set tonorth/employees/eacan be referred to as eitherHumanResourcesorea?path=north%2Femployees, but the canonical name is always the human-friendly name.POST operations accept only the human-friendly name.
-
version(required): string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
-
first(required): string
Specifies the first trail sequence number in the range to be removed.
-
force: string
When provided, the trail sequences are deleted even if there are processes still using it.
-
last(required): string
Specifies the last trail sequence number in the range to be removed.
Response
- application/json
200 Response
Trail sequences deleted
objectRESTful API Standard Response-
$schema:
Allowed Values:
[ "api:standardResponse" ] -
links(required):
array links
Minimum Number of Items:
0Maximum Number of Items:16Oracle GoldenGate links for the request -
messages(required):
array messages
Minimum Number of Items:
0Maximum Number of Items:65535Oracle GoldenGate messages issued during the request -
response:
object response
Oracle GoldenGate document from the request
array016array065535objectobject-
$schema:
Allowed Values:
[ "ogg:link" ] -
description:
string
Minimum Length:
1Maximum Length:4095A human-readable description that provides information and detail specific to this link. -
href(required):
string
Minimum Length:
2Maximum Length:4095Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$An absolute URI for the link -
mediaType:
string
Minimum Length:
6Maximum Length:255Pattern:^(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
object-
$schema:
Allowed Values:
[ "ogg:message" ] -
code(required):
string
Minimum Length:
9Maximum Length:9Pattern:^OGG[-][0-9]{5}$The Oracle GoldenGate message code -
issued(required):
string
Minimum Length:
20Maximum Length:32Pattern:^[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:
1Maximum Length:4095A human-readable description that provides information and detail specific to this occurence of the information, warning or error. -
type(required):
string
Minimum Length:
2Maximum Length:4095Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$An absolute URI [RFC3986] to a page that describes the info, warning or error type.
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:21001/services/v2/trails/aa/sequences",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:21001/services/v2/trails/aa/sequences",
"mediaType":"application/json",
"rel":"self"
}
],
"messages":[
{
"$schema":"ogg:message",
"code":"OGG-30277",
"issued":"2023-12-01T20:22:44Z",
"severity":"INFO",
"title":"Successfully deleted '5' of '5' trail sequences for trail 'subdir1/aa'.",
"type":"https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes"
}
]
}