Add docs for /instances endpoint in ACM-r 94/141894/2
authorFrancescoFioraEst <francesco.fiora@est.tech>
Fri, 22 Aug 2025 12:02:25 +0000 (13:02 +0100)
committerFrancescoFioraEst <francesco.fiora@est.tech>
Fri, 22 Aug 2025 14:46:29 +0000 (15:46 +0100)
Issue-ID: POLICY-5434
Change-Id: I86b82728b119f272a8c1b0618e1086309d8f13ae
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
docs/clamp/acm/design-impl/clamp-runtime-acm.rst

index 784ec4a..5c6359a 100644 (file)
@@ -104,6 +104,27 @@ Fetch of Automation Composition Instance
 ++++++++++++++++++++++++++++++++++++++++
 - GUI calls GET "/onap/policy/clamp/acm/v2/compositions/{compositionId}/instances" endpoint and receives all instances of a composition as response. The end point supports the pagination by parameters "size" and "page"
 - GUI calls GET "/onap/policy/clamp/acm/v2/compositions/{compositionId}/instances/{instanceId}" endpoint and receives the instance as response.
+- GUI calls GET "/onap/policy/clamp/acm/v2/instances" endpoint and receives all instances as response. The end point supports filter by list of instanceId, list of deployState, list of stateChangeResult and pagination by parameters "size", "page" and "sortOrder"
+
+Examples for GET "/onap/policy/clamp/acm/v2/instances":
+ +----------------------------------------------------+------------------------------------------------------+
+ |  Query Parameters                                  |  result                                              |
+ +====================================================+======================================================+
+ |  <no parameters>                                   | all instances                                        |
+ +----------------------------------------------------+------------------------------------------------------+
+ |  ?page=1&size=4                                    | 4 instances at page 1 if present                     |
+ +----------------------------------------------------+------------------------------------------------------+
+ |  ?size=4                                           | all instances because page is missing                |
+ +----------------------------------------------------+------------------------------------------------------+
+ |  ?sort=name&sortOrder=DESC                         | instances ordered by name in DESC order              |
+ +----------------------------------------------------+------------------------------------------------------+
+ | ?stateChangeResult=FAILED,TIMEOUT                  | instances failed or in timeout                       |
+ +----------------------------------------------------+------------------------------------------------------+
+ | ?stateChangeResult=NO_ERROR&deployState=UNDEPLOYED | instances undeployed with success                    |
+ +----------------------------------------------------+------------------------------------------------------+
+ | ?instanceIds={instances1},{instances2}             | instance1 and  instance2                             |
+ +----------------------------------------------------+------------------------------------------------------+
+
 
 Update of a Automation Composition Instance
 +++++++++++++++++++++++++++++++++++++++++++