-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapplications.yaml
331 lines (331 loc) · 12.1 KB
/
applications.yaml
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
x-generated: Automatically generated by CDP protoc plugin. Do not edit manually.
swagger: '2.0'
x-endpoint-name: applications
x-products: CDP
x-form-factors: public
x-cdp-releases: BETA
info:
version: 0.9.135 (BETA)
title: Cloudera Applications Service
license:
name: Apache 2.0
description: Applications is a web service for managing application lifecycle.
termsOfService: https://www.cloudera.com/legal/commercial-terms-and-conditions.html
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/api/v1/applications/createApplication:
post:
summary: Create Application
description: Creates an application.
operationId: createApplication
x-entitlement: DSP_APPLICATIONS_API_LIMITED_BETA
parameters:
- name: input
in: body
required: true
schema:
$ref: '#/definitions/CreateApplicationRequest'
responses:
200:
description: Expected response to a valid request.
schema:
$ref: '#/definitions/CreateApplicationResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
x-mutating: true
/api/v1/applications/deleteApplication:
post:
summary: Delete Application
description: Deletes an application.
operationId: deleteApplication
x-entitlement: DSP_APPLICATIONS_API_LIMITED_BETA
parameters:
- name: input
in: body
required: true
schema:
$ref: '#/definitions/DeleteApplicationRequest'
responses:
200:
description: Expected response to a valid request.
schema:
$ref: '#/definitions/DeleteApplicationResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
x-mutating: true
/api/v1/applications/describeApplication:
post:
summary: Describe Application
description: Describes an application.
operationId: describeApplication
x-entitlement: DSP_APPLICATIONS_API_LIMITED_BETA
parameters:
- name: input
in: body
required: true
schema:
$ref: '#/definitions/DescribeApplicationRequest'
responses:
200:
description: Expected response to a valid request.
schema:
$ref: '#/definitions/DescribeApplicationResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
x-mutating: false
/api/v1/applications/listApplications:
post:
summary: List of Applications
description: Provides a list of applications.
operationId: listApplications
x-entitlement: DSP_APPLICATIONS_API_LIMITED_BETA
x-paging-default-max-items: 20
parameters:
- name: input
in: body
required: true
schema:
$ref: '#/definitions/ListApplicationsRequest'
responses:
200:
description: Expected response to a valid request.
schema:
$ref: '#/definitions/ListApplicationsResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
x-mutating: false
definitions:
Error:
type: object
description: An object returned on an error.
properties:
code:
type: string
description: The error code.
message:
type: string
description: The error message.
ApplicationType:
type: string
description: "CDP Application Type.\n `AIRFLOW` - Airflow `CSS` - Cloudera Semantic Search `NOTEBOOK` - Standalone Notebook Service `RAY` - Standalone Ray Service"
enum:
- CSS
ApplicationHealthStatus:
type: string
description: "Health status of an Application.\n `HEALTHY` - Application is in a Healthy status. `UNHEALTHY` - Application is in an Unhealthy status. `UNKNOWN` - Application is in an Unknown status"
enum:
- HEALTHY
- UNHEALTHY
- UNKNOWN
ApplicationState:
type: string
description: "Health state of an Application.\n `INFRA_PROVISIONING` - Application is provisioning and configuring required infra. `INFRA_PROVISIONED` - Underlying infra has been provisioned and configured. `INFRA_PROVISIONING_FAILED` - Underlying infra has been provisioned and configured. `STARTING` - Application is starting. `STARTED` - Application has started. `STARTING_FAILED` - Application starting failed. `STOPPING` - Application is stopping. `STOPPED` - Application is stopped. `STOPPING_FAILED` - Application stopping failed. `DELETING` - Application is being deleted. `DELETED` - Application is deleted. `DELETING_FAILED` - Application deleting failed."
enum:
- INFRA_PROVISIONING
- INFRA_PROVISIONED
- INFRA_PROVISIONING_FAILED
- STARTING
- STARTED
- STARTING_FAILED
- STOPPING
- STOPPED
- STOPPING_FAILED
- DELETING
- DELETED
- DELETING_FAILED
ApplicationSpotPolicy:
type: string
description: "Application policy for using spot tier in public cloud\n `DEFAULT` - By default application infra services and workload master would run on on-demand instances and the application workload executor will run on spot instances. `WORKLOAD` - `WORKLOAD` will run all application workloads including workload master (driver) on spot instamces. `NONE` - `NONE` will run all application services on on-demand instances. `ALL` - `ALL` will run all application services on spot instances."
enum:
- DEFAULT
- WORKLOAD
- NONE
x-form-factors: public
ApplicationInfo:
type: object
description: Details of an application.
properties:
applicationCrn:
type: string
description: The CRN of application.
name:
type: string
description: The name of application.
type:
description: The type of application.
$ref: '#/definitions/ApplicationType'
applicationVersion:
type: string
description: The version of the installed application.
size:
type: string
description: 'The size of the application refers to the specific amount of resources, such as CPU, memory, GPU and storage, that are allocated and guaranteed for that instance. Example Values: `TINY`,`SMALL`, `LARGE`, `XLARGE`, etc'
applicationSpotPolicy:
description: Spot instance policy of an application.
$ref: '#/definitions/ApplicationSpotPolicy'
x-form-factors: public
status:
description: The health status of the application.
$ref: '#/definitions/ApplicationHealthStatus'
actualState:
description: The actual state of the application.
$ref: '#/definitions/ApplicationState'
desiredState:
description: The desired state of the application.
$ref: '#/definitions/ApplicationState'
clusterCrn:
type: string
description: The compute cluster used by the application.
environmentCrn:
type: string
description: The Environment CRN for the application.
tags:
type: object
description: Tags to added to the cloud provider resources created.
additionalProperties:
type: string
x-form-factors: public
environmentName:
type: string
description: The Environment name for the application.
DescribeApplicationRequest:
type: object
description: Request object for the DescribeApplication method.
required:
- environment
- application
properties:
environment:
type: string
description: The name or CRN of the environment.
application:
type: string
description: The name or CRN of the pplication.
DescribeApplicationResponse:
type: object
description: Response object for the DescribeApplication method.
properties:
application:
description: The details of the application.
$ref: '#/definitions/ApplicationInfo'
ListApplicationsRequest:
type: object
description: Request object for the ListApplications method.
properties:
environment:
type: string
description: The name or CRN of the environment.
pageSize:
type: integer
format: int32
minimum: 5
maximum: 20
x-paging-page-size: true
description: The page size.
pageToken:
type: string
x-paging-input-token: true
description: A token to specify where to start paginating. This is the nextToken from a previously truncated response.
ListApplicationsResponse:
type: object
description: Response object for the ListApplications method.
properties:
applications:
type: array
x-paging-result: true
items:
$ref: '#/definitions/ApplicationInfo'
description: A detailed list of applications within the environment.
nextPageToken:
type: string
x-paging-output-token: true
description: The token to use when requesting the next set of results. If not present, there are no additional results.
CreateApplicationRequest:
type: object
description: Request object for the CreateApplication method.
required:
- environment
- name
- type
properties:
environment:
type: string
description: The name or CRN of the environment in which application should be created.
name:
type: string
description: The application name.
type:
description: The type of application.
$ref: '#/definitions/ApplicationType'
applicationVersion:
type: string
description: The version of the application to be installed. If not specified, latest supported version for the application will be used.
size:
type: string
description: 'The size of the application refers to the specific amount of resources, such as CPU, memory, GPU and storage, that are allocated and guaranteed for that instance. Example Values: `TINY`,`SMALL`, `LARGE`, `XLARGE`, etc'
applicationSpotPolicy:
description: By default application infra services would run on on-demand instances and the application workloads on spot instances. Setting this config to `ALL` will run all application services on spot instances. Setting it to `NONE` will run all application services on on-demand instances.
$ref: '#/definitions/ApplicationSpotPolicy'
x-form-factors: public
clusterCrn:
type: string
description: The CRN of the cluster in which application should be created. If not specified, default environment cluster wil be used.
tags:
type: object
description: Tags to add to the cloud provider resources created.
additionalProperties:
type: string
x-form-factors: public
skipValidation:
type: boolean
description: Skip pre-flight validations if requested.
default: false
CreateApplicationResponse:
type: object
description: Response object for the CreateApplication method.
properties:
application:
description: The details of the application.
$ref: '#/definitions/ApplicationInfo'
requestId:
type: integer
format: int64
description: The request id to track the progress of the create operation.
DeleteApplicationRequest:
type: object
description: Request object for the DeleteApplication method.
required:
- environment
- application
properties:
environment:
type: string
description: The name or CRN of the environment.
application:
type: string
description: The name or CRN of the application.
DeleteApplicationResponse:
type: object
description: Response object for the DeleteApplication method.
properties:
application:
description: The details of the application.
$ref: '#/definitions/ApplicationInfo'
requestId:
type: integer
format: int64
description: The request id to track the progress of the delete operation.
x-audit: true