-
Notifications
You must be signed in to change notification settings - Fork 51
Initialize EAM /appinstances callback #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
0fceb46
2bd31ab
faa7613
ddef274
8f1b244
d803019
09be1ff
9af3846
3713abe
d439fdc
a6ec5ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -395,6 +395,8 @@ paths: | |
| $ref: '#/components/schemas/EdgeCloudZoneId' | ||
| kubernetesClusterRef: | ||
| $ref: '#/components/schemas/KubernetesClusterRef' | ||
| notificationSink: | ||
| $ref: '#/components/schemas/NotificationSink' | ||
| required: true | ||
| responses: | ||
| '202': | ||
|
|
@@ -434,6 +436,9 @@ paths: | |
| $ref: '#/components/responses/501' | ||
| '503': | ||
| $ref: '#/components/responses/503' | ||
| callbacks: | ||
| onAppStatusChange: | ||
| $ref: '#/components/callbacks/onAppStatusChange' | ||
| get: | ||
| security: | ||
| - openId: | ||
|
|
@@ -679,6 +684,40 @@ components: | |
| schema: | ||
| type: string | ||
| format: uuid | ||
| ######################################################################### | ||
| # Events/Callbacks # | ||
| ######################################################################### | ||
| callbacks: | ||
| onAppStatusChange: | ||
travishepworth marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| '{$request.body.notificationSink.sink}': | ||
| post: | ||
| tags: | ||
| - App Instance CALLBACK Operation | ||
| summary: Provide a notification for a change in status | ||
| of the instantiated application | ||
| description: Instantiating an application is an asyncronous task. After the | ||
| application has been started, the server will return a callback response | ||
| at the specified URL. | ||
| operationId: EdgeApplicationManagementCallback | ||
| parameters: | ||
| - $ref: '#/components/parameters/x-correlator' | ||
| security: | ||
| - notificationsBearerAuth: [] | ||
| requestBody: | ||
| description: Body containing the status of the Application | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/AppCallback' | ||
| responses: | ||
| '202': | ||
|
||
| description: Your server implementation should return this HTTP | ||
| status code if the data was received successfully | ||
| content: {} | ||
| headers: | ||
| x-correlator: | ||
| $ref: '#/components/headers/x-correlator' | ||
|
|
||
| schemas: | ||
| AccessEndpoint: | ||
|
|
@@ -965,6 +1004,20 @@ components: | |
| pattern: ^[A-Za-z][A-Za-z0-9_]{7,63}$ | ||
| description: Human readable name of the Application Provider. | ||
|
|
||
| AppCallback: | ||
travishepworth marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| type: object | ||
| required: | ||
| - status | ||
| - appInstanceId | ||
| properties: | ||
| status: | ||
travishepworth marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| type: string | ||
| enum: [Running, Failed] | ||
| description: Status of the application instance | ||
| (Running, Failed) | ||
| appInstanceId: | ||
| $ref: '#/components/schemas/AppInstanceId' | ||
|
|
||
| ClusterInfo: | ||
| description: Kubernetes cluster information | ||
| required: | ||
|
|
@@ -1163,6 +1216,44 @@ components: | |
| - vfio-pci | ||
| - interface | ||
|
|
||
| NotificationSink: | ||
| description: "" | ||
| type: object | ||
| required: | ||
| - sink | ||
| properties: | ||
| sink: | ||
| description: 'https callback address where the notification | ||
| must be POST-ed' | ||
| type: string | ||
| format: uri | ||
| sinkCredentials: | ||
| description: Sink credential provides authorization information | ||
| necessary to enable delivery of events to a target | ||
| type: object | ||
| properties: | ||
| credentialtype: | ||
| type: string | ||
| description: Type of the credential - MUST be set to | ||
| ACCESSTOKEN for now | ||
| enum: | ||
| - "ACCESSTOKEN" | ||
| accessToken: | ||
| type: string | ||
| description: Access Token granting access to the POST | ||
| operation to create notification | ||
| accessTokenExpireUtc: | ||
| type: string | ||
| format: date-time | ||
| description: An absolute UTC instant at which the access | ||
| token shall be considered expired. | ||
| accessTokenType: | ||
| type: string | ||
| description: Type of access token - MUST be set to bearer | ||
| for now | ||
| enum: | ||
| - "bearer" | ||
|
|
||
| AdditionalStorage: | ||
| description: Additional storage for the application. | ||
| type: array | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.