@@ -456,21 +456,30 @@ policy through the :opsmgr:`API </reference/api/controlled-features/update-contr
456
456
--include \
457
457
--request GET "https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/groups/{PROJECT-ID}/controlledFeature?pretty=true"
458
458
459
- .. important::
459
+ Save the response that the API returns. After you make changes in
460
+ the |onprem| application, you must add these policies back to
461
+ the project.
460
462
461
- Save the response that the API returns. After you make changes in
462
- the |onprem| application, you must add these policies back to
463
- the project.
463
+ .. important::
464
+
465
+ Note the highlighted fields and values in the following sample
466
+ response. You must send these same fields and values in later
467
+ steps when you remove and add feature control policies.
464
468
465
- Your response should be similar to:
469
+ The ``externalManagementSystem.version`` field corresponds to the
470
+ |k8s-op-short| version. You must send the exact same field value
471
+ in your requests later in this task.
466
472
473
+ Your response should be similar to:
474
+
467
475
.. code-block:: json
476
+ :emphasize-lines: 3-7
468
477
469
478
{
470
479
"created": "2020-02-25T04:09:42Z",
471
480
"externalManagementSystem": {
472
481
"name": "mongodb-enterprise-operator",
473
- "systemId": "6d6c139ae5528707b6e8e3b2" ,
482
+ "systemId": null ,
474
483
"version": "1.4.2"
475
484
},
476
485
"policies": [
@@ -484,12 +493,19 @@ policy through the :opsmgr:`API </reference/api/controlled-features/update-contr
484
493
}
485
494
],
486
495
"updated": "2020-02-25T04:10:12Z"
487
- }
496
+ }
488
497
489
498
#. :opsmgr:`Update </reference/api/controlled-features/update-controlled-features-for-one-project/>`
490
499
the ``policies`` array with an empty list:
491
500
501
+ .. note::
502
+
503
+ The values you provide for the ``externalManagementSystem``
504
+ object, like the ``externalManagementSystem.version`` field, must
505
+ match values that you received in the response in Step 1.
506
+
492
507
.. code-block:: sh
508
+ :emphasize-lines: 8-12
493
509
494
510
curl --user "{USERNAME}:{APIKEY}" --digest \
495
511
--header "Accept: application/json" \
@@ -500,7 +516,7 @@ policy through the :opsmgr:`API </reference/api/controlled-features/update-contr
500
516
'{
501
517
"externalManagementSystem": {
502
518
"name": "mongodb-enterprise-operator",
503
- "systemId": "6d6c139ae5528707b6e8e3b2" ,
519
+ "systemId": null ,
504
520
"version": "1.4.2"
505
521
},
506
522
"policies": []
@@ -514,7 +530,14 @@ policy through the :opsmgr:`API </reference/api/controlled-features/update-contr
514
530
#. :opsmgr:`Update </reference/api/controlled-features/update-controlled-features-for-one-project/>`
515
531
the ``policies`` array with the original feature control policies:
516
532
533
+ .. note::
534
+
535
+ The values you provide for the ``externalManagementSystem``
536
+ object, like the ``externalManagementSystem.version`` field, must
537
+ match values that you received in the response in Step 1.
538
+
517
539
.. code-block:: sh
540
+ :emphasize-lines: 8-12
518
541
519
542
curl --user "{USERNAME}:{APIKEY}" --digest \
520
543
--header "Accept: application/json" \
@@ -525,7 +548,7 @@ policy through the :opsmgr:`API </reference/api/controlled-features/update-contr
525
548
'{
526
549
"externalManagementSystem": {
527
550
"name": "mongodb-enterprise-operator",
528
- "systemId": "6d6c139ae5528707b6e8e3b2" ,
551
+ "systemId": null ,
529
552
"version": "1.4.2"
530
553
},
531
554
"policies": [
0 commit comments