Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • the GET actions of Api ACM-runtime do not have paginations, in particular the following endpoints:
    • GET /onap/policy/clamp/acm/v2/compositions
    • GET /onap/policy/clamp/acm/v2/compositions/{compositionId}/instances
    • GET /onap/policy/clamp/acm/v2/participants
  • The monitoring should not scan all compositions and instances, but only compositions and instances that are in transitional state.

Pagination and default definition

it needs to define the default max page "paginationDefaultSize" that will be used by AC-runtime and it could insert into the parameters file:

Code Block
languageyml
runtime:
..........
..........
  acmParameters:
    paginationDefaultSize: 10
    toscaElementName: org.onap.policy.clamp.acm.AutomationCompositionElement
    toscaCompositionName: org.onap.policy.clamp.acm.AutomationComposition

Assuming that paginationDefaultSize = 10, the page and size of the pagination will be defined as the example below:

endpointpagesize
GET /onap/policy/clamp/acm/v2/compositions010
GET /onap/policy/clamp/acm/v2/compositions?page=1&size=515
GET /onap/policy/clamp/acm/v2/compositions?page=2210
GET /onap/policy/clamp/acm/v2/compositions?size=20020