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