forked from odpi/egeria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Egeria-data-manager-omas.http
186 lines (156 loc) · 6.04 KB
/
Egeria-data-manager-omas.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Egeria-data-manager-omas
###
# @name Create a data file
# Create a SoftwareServerCapability entity to represent the Asset Manager.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/filesystems/data-files
Content-Type: application/json
{
"class" : "DataFileRequestBody",
"qualifiedName" : "/Users/mandy-chessell/CloudStation/Drive/Code/JavaTest/ruey.csv",
"displayName" : "freddy.csv"
}
###
# @name Create a data file using a template
# Create a SoftwareServerCapability entity to represent the Asset Manager.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/filesystems/data-files/from-template/{{templateGUID}}
Content-Type: application/json
{
"class" : "TemplateRequestBody",
"qualifiedName" : "/Users/mandy-chessell/CloudStation/Drive/Code/JavaTest/copyCat23.csv",
"displayName" : "copyCat2.csv"
}
###
# @name Create a database manager
# Create a SoftwareServerCapability entity to represent the Asset Manager.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/metadata-sources/database-managers
Content-Type: application/json
{
"class" : "DatabaseManagerRequestBody",
"qualifiedName" : "MyDBMS",
"displayName" : "MyDBMS"
}
###
# @name Create a database
# Create an Asset entity to represent the Database.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/database-managers/{{externalSourceGUID}}/{{externalSourceName}}/databases
Content-Type: application/json
{
"class" : "DatabaseProperties",
"qualifiedName" : "MyDBMS.MyDB",
"displayName" : "MyDB",
"databaseImportedFrom" : "ImportSource"
}
###
# @name Create a Topic
# Create an Asset entity to represent the Database.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/topics?
eventBrokerIsHome=false
Content-Type: application/json
{
"class" : "TopicRequestBody",
"qualifiedName" : "Test.MyTopic",
"displayName" : "MyTopic",
"description" : "This is a test topic"
}
###
# @name Create an Event Type for a Topic
# Create an Asset entity to represent the Database.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/topics/c3a5ae62-4b79-49ee-bec2-8887c58d6dc6/event-types?
eventBrokerIsHome=false
Content-Type: application/json
{
"class" : "EventTypeRequestBody",
"qualifiedName" : "Test.MyTopic.EventType1",
"displayName" : "EventType1",
"description" : "This is a test event type for a topic"
}
###
# @name Create a database schema
# Create a Schema Attribute entity to represent the Database Table.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/database-managers/{{externalSourceGUID}}/{{externalSourceName}}/databases/{{databaseGUID}}/schemas
Content-Type: application/json
{
"class" : "DatabaseSchemaProperties",
"qualifiedName" : "MyDBMS.MyDB.Schema1a",
"displayName" : "MyDB.Schema1",
"zoneMembership" : [ "quarantine" ],
"owner" : "dba",
"ownerCategory" : "USER_ID"
}
###
# @name Create a database table
# Create a Schema Attribute entity to represent the Database Table.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/database-managers/{{externalSourceGUID}}/{{externalSourceName}}/databases/schemas/{{databaseSchemaGUID}}/tables
Content-Type: application/json
{
"class" : "DatabaseTableProperties",
"qualifiedName" : "MyDBMS.MyDB.Schema1.TableB",
"displayName" : "MyDB.Schema1.TableB"
}
###
# @name Create a database column
# Create a Schema Attribute entity to represent the Database Table.
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/database-managers/{{externalSourceGUID}}/{{externalSourceName}}/databases/schemas/tables/{{databaseTableGUID}}/columns
Content-Type: application/json
{
"class" : "DatabaseColumnProperties",
"qualifiedName" : "MyDBMS.MyDB.Schema1.TableA.Column2",
"displayName" : "MyDB.Schema1.TableA.Column2",
"dataType" : "string"
}
###
# @name Get topics for event broker
GET {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/event-brokers/db5ff6c5-476b-4aec-a373-0a63c6adea13/TopicMonitor/topics?
startFrom=0&
pageSize=1
###
# @name Find topics
GET {{baseURL}}/servers/cocoMDSx/open-metadata/access-services/data-manager/users/erinoverview/topics/by-search-string/.*.?
startFrom=0&
pageSize=100
###
# @name Find endpoints
POST {{baseURL}}/servers/{{mdrServer}}/open-metadata/access-services/data-manager/users/{{user}}/endpoints/by-search-string?
startFrom=0&
pageSize=100
Content-Type: application/json
{
"class" : "SearchStringRequestBody",
"searchString" : ".*."
}
###
# @name GetDatabaseByName
GET {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/databases/by-name/MyDBMS.MyDB?
startFrom=0&
pageSize=1
###
# @name Get Event Type By Name
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/topics/event-types/by-name?
startFrom=0&
pageSize=0
Content-Type: application/json
{
"class" : "NameRequestBody",
"name" : "Test.MyTopic.EventType1"
}
###
# @name Find Event Type
POST {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/topics/event-types/by-search-string?
startFrom=0&
pageSize=0
Content-Type: application/json
{
"class" : "SearchStringRequestBody",
"searchString" : "Test.MyTopic.EventType1"
}
###
# @name GetDatabaseByGUID
GET {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/databases/{{databaseGUID}}
###
# @name GetDatabaseSchemaByGUID
GET {{baseURL}}/servers/{{server}}/open-metadata/access-services/data-manager/users/{{user}}/databases/schemas/{{databaseSchemaGUID}}
###
# @name Get Nested Schema Attribute
GET {{baseURL}}/servers/cocoMDS2/open-metadata/access-services/data-manager/users/erinoverview/schema-elements/{{guid}}/nested-attributes?
startFrom=0&
pageSizee=0