Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 1 | .. This work is licensed under a |
| 2 | Creative Commons Attribution 4.0 International License. |
| 3 | |
Vijay VK | 6b0fa46 | 2019-05-20 16:06:11 +0100 | [diff] [blame] | 4 | deployment-handler |
| 5 | ================== |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 6 | |
| 7 | .. toctree:: |
| 8 | :maxdepth: 3 |
| 9 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 10 | .. csv-table:: |
| 11 | :header: "API name", "Swagger JSON", "Swagger YAML" |
| 12 | :widths: 10,5,5 |
| 13 | |
| 14 | "deployment-handler", ":download:`link <deployment-handler-API.json>`", ":download:`link <deployment-handler-API.yaml>`" |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 15 | |
| 16 | Description |
| 17 | ~~~~~~~~~~~ |
| 18 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 19 | High-level API for deploying/undeploying composed DCAE services using |
| 20 | Cloudify Manager. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 21 | |
| 22 | License |
| 23 | ~~~~~~~ |
| 24 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 25 | `Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>`_ |
| 26 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 27 | DCAE-DEPLOYMENTS |
| 28 | ~~~~~~~~~~~~~~~~ |
| 29 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 30 | operations on dcae-deployments |
| 31 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 32 | DELETE ``/dcae-deployments/{deploymentId}`` |
| 33 | ------------------------------------------- |
| 34 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 35 | Description |
| 36 | +++++++++++ |
| 37 | |
| 38 | .. raw:: html |
| 39 | |
| 40 | Uninstall the DCAE service and remove all associated data from the orchestrator. |
| 41 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 42 | Parameters |
| 43 | ++++++++++ |
| 44 | |
| 45 | .. csv-table:: |
| 46 | :delim: | |
| 47 | :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description" |
| 48 | :widths: 20, 15, 10, 10, 10, 20, 30 |
| 49 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 50 | deploymentId | path | Yes | string | | | Deployment identifier for the service to be uninstalled. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 51 | |
| 52 | Request |
| 53 | +++++++ |
| 54 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 55 | Responses |
| 56 | +++++++++ |
| 57 | |
| 58 | **202** |
| 59 | ^^^^^^^ |
| 60 | |
| 61 | Success: The dispatcher has initiated the uninstall operation. |
| 62 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 63 | Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>` |
| 64 | |
| 65 | **Example:** |
| 66 | |
| 67 | .. code-block:: javascript |
| 68 | |
| 69 | { |
| 70 | "links": { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 71 | "self": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 72 | "status": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 73 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 74 | "requestId": "somestring" |
| 75 | } |
| 76 | |
| 77 | **400** |
| 78 | ^^^^^^^ |
| 79 | |
| 80 | Bad request: See the message in the response for details. |
| 81 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 82 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 83 | |
| 84 | **Example:** |
| 85 | |
| 86 | .. code-block:: javascript |
| 87 | |
| 88 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 89 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 90 | "status": 1 |
| 91 | } |
| 92 | |
| 93 | **500** |
| 94 | ^^^^^^^ |
| 95 | |
| 96 | Problem on the server side. See the message |
| 97 | in the response for more details. |
| 98 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 99 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 100 | |
| 101 | **Example:** |
| 102 | |
| 103 | .. code-block:: javascript |
| 104 | |
| 105 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 106 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 107 | "status": 1 |
| 108 | } |
| 109 | |
| 110 | **502** |
| 111 | ^^^^^^^ |
| 112 | |
| 113 | Error reported to the dispatcher by a downstream system. See the message |
| 114 | in the response for more details. |
| 115 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 116 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 117 | |
| 118 | **Example:** |
| 119 | |
| 120 | .. code-block:: javascript |
| 121 | |
| 122 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 123 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 124 | "status": 1 |
| 125 | } |
| 126 | |
| 127 | **504** |
| 128 | ^^^^^^^ |
| 129 | |
| 130 | Error communicating with a downstream system. See the message |
| 131 | in the response for more details. |
| 132 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 133 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 134 | |
| 135 | **Example:** |
| 136 | |
| 137 | .. code-block:: javascript |
| 138 | |
| 139 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 140 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 141 | "status": 1 |
| 142 | } |
| 143 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 144 | GET ``/dcae-deployments`` |
| 145 | ------------------------- |
| 146 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 147 | Description |
| 148 | +++++++++++ |
| 149 | |
| 150 | .. raw:: html |
| 151 | |
| 152 | List service deployments known to the orchestrator, optionally restricted to a single service type |
| 153 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 154 | Parameters |
| 155 | ++++++++++ |
| 156 | |
| 157 | .. csv-table:: |
| 158 | :delim: | |
| 159 | :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description" |
| 160 | :widths: 20, 15, 10, 10, 10, 20, 30 |
| 161 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 162 | serviceTypeId | query | No | string | | | Service type identifier for the type whose deployments are to be listed |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 163 | |
| 164 | Request |
| 165 | +++++++ |
| 166 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 167 | Responses |
| 168 | +++++++++ |
| 169 | |
| 170 | **200** |
| 171 | ^^^^^^^ |
| 172 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 173 | Success. (Note that if no matching deployments are found, the request is still |
| 174 | a success; the deployments array is empty in that case.) |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 175 | |
| 176 | Type: :ref:`DCAEDeploymentsListResponse <d_c51e57d9583f6119caf83dd017cf214c>` |
| 177 | |
| 178 | **Example:** |
| 179 | |
| 180 | .. code-block:: javascript |
| 181 | |
| 182 | { |
| 183 | "deployments": [ |
| 184 | { |
| 185 | "href": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 186 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 187 | { |
| 188 | "href": "somestring" |
| 189 | } |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 190 | ], |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 191 | "requestId": "somestring" |
| 192 | } |
| 193 | |
| 194 | **500** |
| 195 | ^^^^^^^ |
| 196 | |
| 197 | Problem on the server side. See the message |
| 198 | in the response for more details. |
| 199 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 200 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 201 | |
| 202 | **Example:** |
| 203 | |
| 204 | .. code-block:: javascript |
| 205 | |
| 206 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 207 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 208 | "status": 1 |
| 209 | } |
| 210 | |
| 211 | **502** |
| 212 | ^^^^^^^ |
| 213 | |
| 214 | Error reported to the dispatcher by a downstream system. See the message |
| 215 | in the response for more details. |
| 216 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 217 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 218 | |
| 219 | **Example:** |
| 220 | |
| 221 | .. code-block:: javascript |
| 222 | |
| 223 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 224 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 225 | "status": 1 |
| 226 | } |
| 227 | |
| 228 | **504** |
| 229 | ^^^^^^^ |
| 230 | |
| 231 | Error communicating with a downstream system. See the message |
| 232 | in the response for more details. |
| 233 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 234 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 235 | |
| 236 | **Example:** |
| 237 | |
| 238 | .. code-block:: javascript |
| 239 | |
| 240 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 241 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 242 | "status": 1 |
| 243 | } |
| 244 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 245 | GET ``/dcae-deployments/{deploymentId}/operation/{operationId}`` |
| 246 | ---------------------------------------------------------------- |
| 247 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 248 | Description |
| 249 | +++++++++++ |
| 250 | |
| 251 | .. raw:: html |
| 252 | |
| 253 | Get status of a deployment operation |
| 254 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 255 | Parameters |
| 256 | ++++++++++ |
| 257 | |
| 258 | .. csv-table:: |
| 259 | :delim: | |
| 260 | :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description" |
| 261 | :widths: 20, 15, 10, 10, 10, 20, 30 |
| 262 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 263 | deploymentId | path | Yes | string | | | |
| 264 | operationId | path | Yes | string | | | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 265 | |
| 266 | Request |
| 267 | +++++++ |
| 268 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 269 | Responses |
| 270 | +++++++++ |
| 271 | |
| 272 | **200** |
| 273 | ^^^^^^^ |
| 274 | |
| 275 | Status information retrieved successfully |
| 276 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 277 | Type: :ref:`DCAEOperationStatusResponse <d_f0103f05736b04468a4f85fe90da2e16>` |
| 278 | |
| 279 | **Example:** |
| 280 | |
| 281 | .. code-block:: javascript |
| 282 | |
| 283 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 284 | "error": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 285 | "links": { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 286 | "self": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 287 | "uninstall": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 288 | }, |
| 289 | "operationType": "somestring", |
| 290 | "requestId": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 291 | "status": "somestring" |
| 292 | } |
| 293 | |
| 294 | **404** |
| 295 | ^^^^^^^ |
| 296 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 297 | The operation information does not exist (possibly because the service has been |
| 298 | uninstalled and deleted). |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 299 | |
| 300 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 301 | |
| 302 | **Example:** |
| 303 | |
| 304 | .. code-block:: javascript |
| 305 | |
| 306 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 307 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 308 | "status": 1 |
| 309 | } |
| 310 | |
| 311 | **500** |
| 312 | ^^^^^^^ |
| 313 | |
| 314 | Problem on the server side. See the message |
| 315 | in the response for more details. |
| 316 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 317 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 318 | |
| 319 | **Example:** |
| 320 | |
| 321 | .. code-block:: javascript |
| 322 | |
| 323 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 324 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 325 | "status": 1 |
| 326 | } |
| 327 | |
| 328 | **502** |
| 329 | ^^^^^^^ |
| 330 | |
| 331 | Error reported to the dispatcher by a downstream system. See the message |
| 332 | in the response for more details. |
| 333 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 334 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 335 | |
| 336 | **Example:** |
| 337 | |
| 338 | .. code-block:: javascript |
| 339 | |
| 340 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 341 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 342 | "status": 1 |
| 343 | } |
| 344 | |
| 345 | **504** |
| 346 | ^^^^^^^ |
| 347 | |
| 348 | Error communicating with a downstream system. See the message |
| 349 | in the response for more details. |
| 350 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 351 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 352 | |
| 353 | **Example:** |
| 354 | |
| 355 | .. code-block:: javascript |
| 356 | |
| 357 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 358 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 359 | "status": 1 |
| 360 | } |
| 361 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 362 | PUT ``/dcae-deployments/{deploymentId}`` |
| 363 | ---------------------------------------- |
| 364 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 365 | Description |
| 366 | +++++++++++ |
| 367 | |
| 368 | .. raw:: html |
| 369 | |
| 370 | Request deployment of a DCAE service |
| 371 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 372 | Parameters |
| 373 | ++++++++++ |
| 374 | |
| 375 | .. csv-table:: |
| 376 | :delim: | |
| 377 | :header: "Name", "Located in", "Required", "Type", "Format", "Properties", "Description" |
| 378 | :widths: 20, 15, 10, 10, 10, 20, 30 |
| 379 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 380 | deploymentId | path | Yes | string | | | Unique deployment identifier assigned by the API client. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 381 | |
| 382 | Request |
| 383 | +++++++ |
| 384 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 385 | .. _d_eea14e4929853a5aa415f44cd4868302: |
| 386 | |
| 387 | Body |
| 388 | ^^^^ |
| 389 | |
| 390 | Request for deploying a DCAE service. |
| 391 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 392 | .. csv-table:: |
| 393 | :delim: | |
| 394 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 395 | :widths: 20, 10, 15, 15, 30, 25 |
| 396 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 397 | inputs | No | | | | Object containing inputs needed by the service blueprint to create an instance of the service. Content of the object depends on the service being deployed. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 398 | serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed. |
| 399 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 400 | .. _i_08ada55a389e24cd45beef83306fd08e: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 401 | |
| 402 | **Inputs schema:** |
| 403 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 404 | Object containing inputs needed by the service blueprint to create an instance |
| 405 | of the service. Content of the object depends on the service being deployed. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 406 | |
| 407 | .. code-block:: javascript |
| 408 | |
| 409 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 410 | "inputs": {}, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 411 | "serviceTypeId": "somestring" |
| 412 | } |
| 413 | |
| 414 | Responses |
| 415 | +++++++++ |
| 416 | |
| 417 | **202** |
| 418 | ^^^^^^^ |
| 419 | |
| 420 | Success: The content that was posted is valid, the dispatcher has |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 421 | found the needed blueprint, created an instance of the topology in the |
| 422 | orchestrator, and started an installation workflow. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 423 | |
| 424 | Type: :ref:`DCAEDeploymentResponse <d_6157bd3de5c8c7de78f2ab86397667e0>` |
| 425 | |
| 426 | **Example:** |
| 427 | |
| 428 | .. code-block:: javascript |
| 429 | |
| 430 | { |
| 431 | "links": { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 432 | "self": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 433 | "status": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 434 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 435 | "requestId": "somestring" |
| 436 | } |
| 437 | |
| 438 | **400** |
| 439 | ^^^^^^^ |
| 440 | |
| 441 | Bad request: See the message in the response for details. |
| 442 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 443 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 444 | |
| 445 | **Example:** |
| 446 | |
| 447 | .. code-block:: javascript |
| 448 | |
| 449 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 450 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 451 | "status": 1 |
| 452 | } |
| 453 | |
| 454 | **409** |
| 455 | ^^^^^^^ |
| 456 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 457 | A service with the specified deployment Id already exists. Using PUT to update |
| 458 | the service is not a supported operation. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 459 | |
| 460 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 461 | |
| 462 | **Example:** |
| 463 | |
| 464 | .. code-block:: javascript |
| 465 | |
| 466 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 467 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 468 | "status": 1 |
| 469 | } |
| 470 | |
| 471 | **415** |
| 472 | ^^^^^^^ |
| 473 | |
| 474 | Bad request: The Content-Type header does not indicate that the content is |
| 475 | 'application/json' |
| 476 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 477 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 478 | |
| 479 | **Example:** |
| 480 | |
| 481 | .. code-block:: javascript |
| 482 | |
| 483 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 484 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 485 | "status": 1 |
| 486 | } |
| 487 | |
| 488 | **500** |
| 489 | ^^^^^^^ |
| 490 | |
| 491 | Problem on the server side. See the message |
| 492 | in the response for more details. |
| 493 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 494 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 495 | |
| 496 | **Example:** |
| 497 | |
| 498 | .. code-block:: javascript |
| 499 | |
| 500 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 501 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 502 | "status": 1 |
| 503 | } |
| 504 | |
| 505 | **502** |
| 506 | ^^^^^^^ |
| 507 | |
| 508 | Error reported to the dispatcher by a downstream system. See the message |
| 509 | in the response for more details. |
| 510 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 511 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 512 | |
| 513 | **Example:** |
| 514 | |
| 515 | .. code-block:: javascript |
| 516 | |
| 517 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 518 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 519 | "status": 1 |
| 520 | } |
| 521 | |
| 522 | **504** |
| 523 | ^^^^^^^ |
| 524 | |
| 525 | Error communicating with a downstream system. See the message |
| 526 | in the response for more details. |
| 527 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 528 | Type: :ref:`DCAEErrorResponse <d_74f3f4f847dfb6bd181fcae06ad880b4>` |
| 529 | |
| 530 | **Example:** |
| 531 | |
| 532 | .. code-block:: javascript |
| 533 | |
| 534 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 535 | "message": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 536 | "status": 1 |
| 537 | } |
| 538 | |
| 539 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 540 | INFO |
| 541 | ~~~~ |
| 542 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 543 | version and links |
| 544 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 545 | GET ``/`` |
| 546 | --------- |
| 547 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 548 | Description |
| 549 | +++++++++++ |
| 550 | |
| 551 | .. raw:: html |
| 552 | |
| 553 | Returns version information and links to API operations |
| 554 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 555 | Request |
| 556 | +++++++ |
| 557 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 558 | Responses |
| 559 | +++++++++ |
| 560 | |
| 561 | **200** |
| 562 | ^^^^^^^ |
| 563 | |
| 564 | Success |
| 565 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 566 | .. _i_2e7b26d45eaa7203222963d454a86a88: |
| 567 | |
| 568 | **Response Schema:** |
| 569 | |
| 570 | .. csv-table:: |
| 571 | :delim: | |
| 572 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 573 | :widths: 20, 10, 15, 15, 30, 25 |
| 574 | |
| 575 | apiVersion | No | string | | | version of API supported by this server |
| 576 | |
| 577 | links | No | :ref:`links <i_bcea41e897f5de95cd50fa873acb5f65>` | | | Links to API resources |
| 578 | |
| 579 | serverVersion | No | string | | | version of software running on this server |
| 580 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 581 | .. _i_bcea41e897f5de95cd50fa873acb5f65: |
| 582 | |
| 583 | **Links schema:** |
| 584 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 585 | Links to API resources |
| 586 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 587 | .. csv-table:: |
| 588 | :delim: | |
| 589 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 590 | :widths: 20, 10, 15, 15, 30, 25 |
| 591 | |
| 592 | events | No | string | | | path for the events endpoint |
| 593 | |
| 594 | info | No | string | | | path for the server information endpoint |
| 595 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 596 | **Example:** |
| 597 | |
| 598 | .. code-block:: javascript |
| 599 | |
| 600 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 601 | "apiVersion": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 602 | "links": { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 603 | "events": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 604 | "info": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 605 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 606 | "serverVersion": "somestring" |
| 607 | } |
| 608 | |
| 609 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 610 | POLICY |
| 611 | ~~~~~~ |
| 612 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 613 | policy update API consumed by policy-handler and debug API to find policies |
| 614 | on components |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 615 | |
| 616 | GET ``/policy/components`` |
| 617 | -------------------------- |
| 618 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 619 | Description |
| 620 | +++++++++++ |
| 621 | |
| 622 | .. raw:: html |
| 623 | |
| 624 | debug API to find policies on components |
| 625 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 626 | Request |
| 627 | +++++++ |
| 628 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 629 | Responses |
| 630 | +++++++++ |
| 631 | |
| 632 | **200** |
| 633 | ^^^^^^^ |
| 634 | |
| 635 | deployment-handler found components with or without policies in cloudify |
| 636 | |
| 637 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 638 | POST ``/policy`` |
| 639 | ---------------- |
| 640 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 641 | Description |
| 642 | +++++++++++ |
| 643 | |
| 644 | .. raw:: html |
| 645 | |
| 646 | policy update API consumed by policy-handler |
| 647 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 648 | Request |
| 649 | +++++++ |
| 650 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 651 | .. _d_6ea6e6f48a0302e963a67833bbd0ff4a: |
| 652 | |
| 653 | Body |
| 654 | ^^^^ |
| 655 | |
| 656 | request to update policies on DCAE components. |
| 657 | |
| 658 | .. csv-table:: |
| 659 | :delim: | |
| 660 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 661 | :widths: 20, 10, 15, 15, 30, 25 |
| 662 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 663 | catch_up | Yes | boolean | | | flag to indicate whether the request contains all the policies in PDP or not |
Lusheng Ji | eaac78d | 2018-06-06 00:20:03 -0400 | [diff] [blame] | 664 | errored_policies | No | | | | whether policy-engine returned an error on the policy. |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 665 | errored_scopes | No | array of string | | | on cartchup - list of policy scope_prefix values on wchich the policy-engine experienced an error other than not-found data. |
Lusheng Ji | eaac78d | 2018-06-06 00:20:03 -0400 | [diff] [blame] | 666 | latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object). |
| 667 | removed_policies | Yes | | | | whether policy was removed from policy-engine. |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 668 | scope_prefixes | No | array of string | | | on catchup - list of all scope_prefixes used by the policy-handler to retrieve the policies from policy-engine. |
| 669 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 670 | .. _i_0e88fa72c5312eaae3990753181ce5fe: |
| 671 | |
| 672 | **Errored_policies schema:** |
| 673 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 674 | whether policy-engine returned an error on the policy. |
| 675 | dictionary of (policy_id -> true). |
| 676 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
| 677 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 678 | Map of {"key":"boolean"} |
| 679 | |
| 680 | .. _i_cbc40bad95bddbd536eeab0a92f483af: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 681 | |
| 682 | **Latest_policies schema:** |
| 683 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 684 | dictionary of (policy_id -> DCAEPolicy object). |
| 685 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
| 686 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 687 | Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"} |
| 688 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 689 | .. _i_0ce52a29e44aa0cc7929fe7b555551bc: |
| 690 | |
| 691 | **Removed_policies schema:** |
| 692 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 693 | whether policy was removed from policy-engine. |
| 694 | dictionary of (policy_id -> true). |
| 695 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
| 696 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 697 | Map of {"key":"boolean"} |
| 698 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 699 | .. code-block:: javascript |
| 700 | |
| 701 | { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 702 | "catch_up": true, |
| 703 | "errored_policies": {}, |
| 704 | "errored_scopes": [ |
| 705 | "somestring", |
| 706 | "somestring" |
| 707 | ], |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 708 | "latest_policies": { |
| 709 | "DCAEPolicy": { |
| 710 | "policy_body": { |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 711 | "config": {}, |
| 712 | "policyName": "somestring", |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 713 | "policyVersion": "somestring" |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 714 | }, |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 715 | "policy_id": "somestring" |
| 716 | } |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 717 | }, |
| 718 | "removed_policies": {}, |
| 719 | "scope_prefixes": [ |
| 720 | "somestring", |
| 721 | "somestring" |
| 722 | ] |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 723 | } |
| 724 | |
| 725 | Responses |
| 726 | +++++++++ |
| 727 | |
| 728 | **200** |
| 729 | ^^^^^^^ |
| 730 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 731 | deployment-handler always responds with ok to /policy before processing |
| 732 | the request |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 733 | |
| 734 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 735 | Data Structures |
| 736 | ~~~~~~~~~~~~~~~ |
| 737 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 738 | DCAEDeploymentRequest Model Structure |
| 739 | ------------------------------------- |
| 740 | |
| 741 | Request for deploying a DCAE service. |
| 742 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 743 | .. csv-table:: |
| 744 | :delim: | |
| 745 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 746 | :widths: 20, 10, 15, 15, 30, 25 |
| 747 | |
Lusheng Ji | eaac78d | 2018-06-06 00:20:03 -0400 | [diff] [blame] | 748 | inputs | No | | | | Object containing inputs needed by the service blueprint to create an instance of the service. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 749 | serviceTypeId | Yes | string | | | The service type identifier (a unique ID assigned by DCAE inventory) for the service to be deployed. |
| 750 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 751 | **Inputs schema:** |
| 752 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 753 | Object containing inputs needed by the service blueprint to create an instance |
| 754 | of the service. Content of the object depends on the service being deployed. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 755 | |
| 756 | .. _d_6157bd3de5c8c7de78f2ab86397667e0: |
| 757 | |
| 758 | DCAEDeploymentResponse Model Structure |
| 759 | -------------------------------------- |
| 760 | |
| 761 | Response body for a PUT or DELETE to /dcae-deployments/{deploymentId} |
| 762 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 763 | .. csv-table:: |
| 764 | :delim: | |
| 765 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 766 | :widths: 20, 10, 15, 15, 30, 25 |
| 767 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 768 | links | Yes | :ref:`links <i_4a894329f99280d2268e250444b59376>` | | | Links that the API client can access. |
| 769 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 770 | requestId | Yes | string | | | Unique identifier for the request |
| 771 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 772 | .. _i_4a894329f99280d2268e250444b59376: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 773 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 774 | **Links schema:** |
| 775 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 776 | Links that the API client can access. |
| 777 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 778 | .. csv-table:: |
| 779 | :delim: | |
| 780 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 781 | :widths: 20, 10, 15, 15, 30, 25 |
| 782 | |
| 783 | self | No | string | | | Link used to retrieve information about the service being deployed |
| 784 | |
| 785 | status | No | string | | | Link used to retrieve information about the status of the installation workflow |
| 786 | |
| 787 | .. _d_c51e57d9583f6119caf83dd017cf214c: |
| 788 | |
| 789 | DCAEDeploymentsListResponse Model Structure |
| 790 | ------------------------------------------- |
| 791 | |
| 792 | Object providing a list of deployments |
| 793 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 794 | .. csv-table:: |
| 795 | :delim: | |
| 796 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 797 | :widths: 20, 10, 15, 15, 30, 25 |
| 798 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 799 | deployments | Yes | array of :ref:`deployments <i_98a80d81e7d1973d54db7713913d37e8>` | | | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 800 | requestId | Yes | string | | | Unique identifier for the request |
| 801 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 802 | .. _i_98a80d81e7d1973d54db7713913d37e8: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 803 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 804 | **Deployments schema:** |
| 805 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 806 | .. csv-table:: |
| 807 | :delim: | |
| 808 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 809 | :widths: 20, 10, 15, 15, 30, 25 |
| 810 | |
| 811 | href | No | string | | | URL for the service deployment |
| 812 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 813 | .. _d_74f3f4f847dfb6bd181fcae06ad880b4: |
| 814 | |
| 815 | DCAEErrorResponse Model Structure |
| 816 | --------------------------------- |
| 817 | |
| 818 | Object reporting an error. |
| 819 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 820 | .. csv-table:: |
| 821 | :delim: | |
| 822 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 823 | :widths: 20, 10, 15, 15, 30, 25 |
| 824 | |
| 825 | message | No | string | | | Human-readable description of the reason for the error |
| 826 | status | Yes | integer | | | HTTP status code for the response |
| 827 | |
| 828 | .. _d_f0103f05736b04468a4f85fe90da2e16: |
| 829 | |
| 830 | DCAEOperationStatusResponse Model Structure |
| 831 | ------------------------------------------- |
| 832 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 833 | Response body for a request for status of an installation or uninstallation |
| 834 | operation. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 835 | |
| 836 | .. csv-table:: |
| 837 | :delim: | |
| 838 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 839 | :widths: 20, 10, 15, 15, 30, 25 |
| 840 | |
| 841 | error | No | string | | | If status is 'failed', this field will be present and contain additional information about the reason the operation failed. |
| 842 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 843 | links | No | :ref:`links <i_2feace8c1d3584ec637edc0eb1b92699>` | | | If the operation succeeded, links that the client can follow to take further action. Note that a successful 'uninstall' operation removes the DCAE service instance completely, so there are no possible further actions, and no links. |
| 844 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 845 | operationType | Yes | string | | | Type of operation being reported on. ('install' or 'uninstall') |
| 846 | |
| 847 | requestId | Yes | string | | | A unique identifier assigned to the request. Useful for tracing a request through logs. |
| 848 | |
| 849 | status | Yes | string | | | Status of the installation or uninstallation operation. Possible values are 'processing', |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 850 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 851 | .. _i_2feace8c1d3584ec637edc0eb1b92699: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 852 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 853 | **Links schema:** |
| 854 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 855 | If the operation succeeded, links that the client can follow to take further |
| 856 | action. Note that a successful 'uninstall' operation removes the DCAE service |
| 857 | instance completely, so there are no possible further actions, and no links. |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 858 | |
| 859 | .. csv-table:: |
| 860 | :delim: | |
| 861 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 862 | :widths: 20, 10, 15, 15, 30, 25 |
| 863 | |
| 864 | self | No | string | | | Link used to retrieve information about the service. |
| 865 | |
| 866 | uninstall | No | string | | | Link used to trigger an 'uninstall' operation for the service. (Use the DELETE method.) |
| 867 | |
| 868 | .. _d_1e3e880a733b457b648bd8c99e6c859c: |
| 869 | |
| 870 | DCAEPolicy Model Structure |
| 871 | -------------------------- |
| 872 | |
| 873 | policy object |
| 874 | |
| 875 | .. csv-table:: |
| 876 | :delim: | |
| 877 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 878 | :widths: 20, 10, 15, 15, 30, 25 |
| 879 | |
Eric Debeau | 1af3053 | 2019-05-14 17:45:22 +0000 | [diff] [blame] | 880 | policy_body | Yes | :ref:`DCAEPolicyBody <d_7ffe00ee1aaae6811199d64ff3fea344>` | | | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 881 | policy_id | Yes | string | | | unique identifier of policy regardless of its version |
| 882 | |
| 883 | .. _d_7ffe00ee1aaae6811199d64ff3fea344: |
| 884 | |
| 885 | DCAEPolicyBody Model Structure |
| 886 | ------------------------------ |
| 887 | |
| 888 | policy_body - the whole object received from policy-engine |
| 889 | |
| 890 | .. csv-table:: |
| 891 | :delim: | |
| 892 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 893 | :widths: 20, 10, 15, 15, 30, 25 |
| 894 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 895 | config | Yes | :ref:`config <i_ba9593ef6832fb8401f266e173acaa5c>` | | | the policy-config - the config data provided by policy owner |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 896 | policyName | Yes | string | | | unique policy name that contains the version and extension |
| 897 | policyVersion | Yes | string | | | stringified int that is autoincremented by policy-engine |
| 898 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 899 | .. _i_ba9593ef6832fb8401f266e173acaa5c: |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 900 | |
| 901 | **Config schema:** |
| 902 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 903 | the policy-config - the config data provided by policy owner |
| 904 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 905 | DCAEPolicyRequest Model Structure |
| 906 | --------------------------------- |
| 907 | |
| 908 | request to update policies on DCAE components. |
| 909 | |
| 910 | .. csv-table:: |
| 911 | :delim: | |
| 912 | :header: "Name", "Required", "Type", "Format", "Properties", "Description" |
| 913 | :widths: 20, 10, 15, 15, 30, 25 |
| 914 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 915 | catch_up | Yes | boolean | | | flag to indicate whether the request contains all the policies in PDP or not |
Lusheng Ji | eaac78d | 2018-06-06 00:20:03 -0400 | [diff] [blame] | 916 | errored_policies | No | | | | whether policy-engine returned an error on the policy. |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 917 | errored_scopes | No | array of string | | | on cartchup - list of policy scope_prefix values on wchich the policy-engine experienced an error other than not-found data. |
Lusheng Ji | eaac78d | 2018-06-06 00:20:03 -0400 | [diff] [blame] | 918 | latest_policies | Yes | | | | dictionary of (policy_id -> DCAEPolicy object). |
| 919 | removed_policies | Yes | | | | whether policy was removed from policy-engine. |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 920 | scope_prefixes | No | array of string | | | on catchup - list of all scope_prefixes used by the policy-handler to retrieve the policies from policy-engine. |
| 921 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 922 | **Errored_policies schema:** |
| 923 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 924 | whether policy-engine returned an error on the policy. |
| 925 | dictionary of (policy_id -> true). |
| 926 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
| 927 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 928 | Map of {"key":"boolean"} |
| 929 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 930 | **Latest_policies schema:** |
| 931 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 932 | dictionary of (policy_id -> DCAEPolicy object). |
| 933 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
| 934 | |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 935 | Map of {"key":":ref:`DCAEPolicy <d_1e3e880a733b457b648bd8c99e6c859c>`"} |
| 936 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 937 | **Removed_policies schema:** |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 938 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 939 | whether policy was removed from policy-engine. |
| 940 | dictionary of (policy_id -> true). |
| 941 | In example: replace additionalProp1,2,3 with policy_id1,2,3 values |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 942 | |
Lusheng Ji | b2a561b | 2018-03-27 23:24:33 -0400 | [diff] [blame] | 943 | Map of {"key":"boolean"} |
Lusheng Ji | 6553a13 | 2017-10-12 02:47:00 +0000 | [diff] [blame] | 944 | |