aboutsummaryrefslogtreecommitdiffstats
path: root/dispatcherAPI.md
blob: 138033709676ab0eb5fc92a2be554465c335685f (plain)
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
# Dispatcher API


<a name="overview"></a>
## Overview
High-level API for deploying/deploying composed services using Cloudify Manager.


### Version information
*Version* : 2.0.0




<a name="paths"></a>
## Paths

<a name="get"></a>
### GET /

#### Description
Get API version information, links to API operations, and location data


#### Responses

|HTTP Code|Description|Schema|
|---|---|---|
|**200**|Success|[DispatcherInfo](#dispatcherinfo)|

<a name="dispatcherinfo"></a>
**DispatcherInfo**

|Name|Description|Schema|
|---|---|---|
|**apiVersion**  <br>*optional*|version of API supported by this server|string|
|**links**  <br>*optional*|Links to API resources|[links](#get-links)|
|**locations**  <br>*optional*|Information about DCAE locations known to this dispatcher|object|
|**serverVersion**  <br>*optional*|version of software running on this server|string|

<a name="get-links"></a>
**links**

|Name|Description|Schema|
|---|---|---|
|**dcaeServiceInstances**  <br>*optional*|root of DCAE service instance resource tree|string|
|**status**  <br>*optional*|link to server status information|string|


<a name="events-post"></a>
### POST /events

#### Description
Signal an event that triggers deployment or undeployment of a DCAE service


#### Parameters

|Type|Name|Description|Schema|Default|
|---|---|---|---|---|
|**Body**|**dcae_event**  <br>*required*||[DCAEEvent](#dcaeevent)||


#### Responses

|HTTP Code|Description|Schema|
|---|---|---|
|**202**|Success:  The content that was posted is valid, the dispatcher has<br>  found the needed blueprint (for a deploy operation) or the existing deployment<br>  (for an undeploy operation), and is initiating the necessary orchestration steps.|[DCAEEventResponse](#dcaeeventresponse)|
|**400**|Bad request: See the message in the response for details.|[DCAEErrorResponse](#dcaeerrorresponse)|
|**415**|Bad request: The Content-Type header does not indicate that the content is<br>'application/json'|[DCAEErrorResponse](#dcaeerrorresponse)|
|**500**|Problem on the server side, possible with downstream systems.  See the message<br>in the response for more details.|[DCAEErrorResponse](#dcaeerrorresponse)|


#### Consumes

* `application/json`


#### Produces

* `application/json`




<a name="definitions"></a>
## Definitions

<a name="dcaeerrorresponse"></a>
### DCAEErrorResponse
Object reporting an error.


|Name|Description|Schema|
|---|---|---|
|**message**  <br>*optional*|Human-readable description of the reason for the error|string|
|**status**  <br>*required*|HTTP status code for the response|integer|


<a name="dcaeevent"></a>
### DCAEEvent
Data describing an event that should trigger a deploy or undeploy operation for one 
or more DCAE services.


|Name|Description|Schema|
|---|---|---|
|**aai_additional_info**  <br>*optional*|Additional information, not carried in the event, obtained from an A&AI query or set of queries.  Data in this object is available for populating deployment-specific values in the blueprint.|object|
|**dcae_service_action**  <br>*required*|Indicates whether the event requires a  DCAE service to be deployed or undeployed.<br>Valid values are 'deploy' and 'undeploy'.|string|
|**dcae_service_location**  <br>*required*|The location at which the DCAE service is to be deployed or from which it is to be<br>undeployed.|string|
|**dcae_service_type**  <br>*optional*|Identifier for the service of which the target entity is a part.|string|
|**dcae_target_name**  <br>*required*|The name of the entity that's the target for monitoring by a DCAE service.  This uniquely identifies the monitoring target.   For 'undeploy' operations, this value will be used to select the specific DCAE service instance to be undeployed.|string|
|**dcae_target_type**  <br>*required*|The type of the entity that's the target for monitoring by a DCAE service.  In 1607, this field will have one of eight distinct values, based on which mobility VM is to<br>  be monitored.  For 'deploy' operations, this value will be used to select the<br>  service blueprint to deploy.|string|
|**event**  <br>*required*|The original A&AI event object.  <br>The data included here is available for populating deployment-specific values in the<br>service blueprint.|object|


<a name="dcaeeventresponse"></a>
### DCAEEventResponse
Response body for a POST to /events.


|Name|Description|Schema|
|---|---|---|
|**deploymentIds**  <br>*required*|An array of deploymentIds, one for each service being deployed in response to this<br>event.  A deploymentId uniquely identifies an attempt to deploy a service.|< string > array|
|**requestId**  <br>*required*|A unique identifier assigned to the request.  Useful for tracing a request through<br>logs.|string|