summaryrefslogtreecommitdiffstats
path: root/common/src/test/resources/examples/acm/k8s-participant/k8s.postman2.0_collection.json
blob: e83bc259428697982acb704791474cf990b12415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
{
  "info": {
    "name": "CL-K8s-participant",
    "_postman_id": "90ac155d-08ff-4dce-a4f0-24e8d8aefa70",
    "description": "",
    "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
  },
  "item": [
    {
      "id": "711b8171-7b0f-4461-b5ad-fb00bc03b1a3",
      "name": "Get Instantiated Control loops",
      "request": {
        "url": {
          "protocol": "https",
          "host": "localhost",
          "path": [
            "onap",
            "controlloop",
            "v2",
            "instantiation"
          ],
          "port": "6969"
        },
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "*/*",
            "disabled": false
          }
        ],
        "body": {
          "mode": "raw",
          "disabled": false
        },
        "description": ""
      },
      "response": [
        {
          "header": [],
          "code": 200,
          "name": "Response_200",
          "id": "d10bdd1f-ff18-49ed-9798-1705bb579668"
        }
      ]
    },
    {
      "id": "3b0c5920-42b4-4647-8a15-bfcb02cfbd54",
      "name": "Update a Control loop",
      "request": {
        "url": {
          "protocol": "https",
          "host": "localhost",
          "path": [
            "onap",
            "controlloop",
            "v2",
            "instantiation/command"
          ],
          "port": "6969"
        },
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "description": "",
            "disabled": false
          },
          {
            "key": "X-ONAP-RequestID",
            "value": "709c62b3-8918-41b9-a747-d21eb79c6c20",
            "description": "",
            "disabled": false
          },
          {
            "key": "Accept",
            "value": "*/*",
            "disabled": false
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n  \"orderedState\": \"PASSIVE\",\r\n  \"controlLoopIdentifierList\": [\r\n    {\r\n      \"name\": \"K8SInstance0\",\r\n      \"version\": \"1.0.1\"\r\n    }\r\n  ]\r\n}",
          "disabled": false
        },
        "description": ""
      },
      "response": [
        {
          "header": [],
          "code": 200,
          "name": "Response_200",
          "id": "9b6719f4-d325-45ee-9951-ac50bc8e4d38"
        }
      ]
    },
    {
      "id": "d9c9a188-3fe1-4950-b851-9f76b0c72f63",
      "name": "UnInitialise a Control loop",
      "request": {
        "url": {
          "protocol": "https",
          "host": "localhost",
          "path": [
            "onap",
            "controlloop",
            "v2",
            "instantiation/command"
          ],
          "port": "6969"
        },
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "description": "",
            "disabled": false
          },
          {
            "key": "Accept",
            "value": "*/*",
            "disabled": false
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n  \"orderedState\": \"UNINTIALISED\",\r\n  \"controlLoopIdentifierList\": [\r\n    {\r\n      \"name\": \"K8SInstance0\",\r\n      \"version\": \"1.0.1\"\r\n    }\r\n  ]\r\n}",
          "disabled": false
        },
        "description": ""
      },
      "response": [
        {
          "header": [],
          "code": 200,
          "name": "Response_200",
          "id": "69ae3508-0fef-42c7-b96b-28f3b98f599e"
        }
      ]
    },
    {
      "id": "3626da99-5645-4386-85cf-0bbe296adf6d",
      "name": "Instantiate a Control loop",
      "request": {
        "url": {
          "protocol": "https",
          "host": "localhost",
          "path": [
            "onap",
            "controlloop",
            "v2",
            "instantiation"
          ],
          "port": "6969"
        },
        "method": "POST",
        "header": [
          {
            "key": "X-ONAP-RequestID",
            "value": "709c62b3-8918-41b9-a747-d21eb79c6c20",
            "description": "",
            "disabled": false
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "description": "",
            "disabled": false
          },
          {
            "key": "Accept",
            "value": "*/*",
            "disabled": false
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n  \"controlLoopList\": [\r\n    {\r\n      \"name\": \"K8SInstance0\",\r\n      \"version\": \"1.0.1\",\r\n      \"definition\": {\r\n        \"name\": \"org.onap.domain.sample.GenericK8s_ControlLoopDefinition\",\r\n        \"version\": \"1.2.3\"\r\n      },\r\n      \"state\": \"UNINITIALISED\",\r\n      \"orderedState\": \"UNINITIALISED\",\r\n      \"description\": \"K8s control loop instance 0\",\r\n      \"elements\": {\r\n        \"709c62b3-8918-41b9-a747-d21eb79c6c20\": {\r\n          \"id\": \"709c62b3-8918-41b9-a747-d21eb79c6c20\",\r\n          \"definition\": {\r\n            \"name\": \"org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement\",\r\n            \"version\": \"1.2.3\"\r\n          },\r\n          \"participantId\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"participantType\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"state\": \"UNINITIALISED\",\r\n          \"orderedState\": \"UNINITIALISED\",\r\n          \"description\": \"K8s Control Loop Element for the k8s instance 0 control loop\"\r\n        },\r\n        \"709c62b3-8918-41b9-a747-d21eb79c6c21\": {\r\n          \"id\": \"709c62b3-8918-41b9-a747-d21eb79c6c21\",\r\n          \"definition\": {\r\n            \"name\": \"org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement\",\r\n            \"version\": \"1.2.3\"\r\n          },\r\n          \"participantId\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"participantType\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"state\": \"UNINITIALISED\",\r\n          \"orderedState\": \"UNINITIALISED\",\r\n          \"description\": \"K8s Control Loop Element for the PMSH instance 0 control loop\"\r\n        },\r\n        \"709c62b3-8918-41b9-a747-d21eb79c6c22\": {\r\n          \"id\": \"709c62b3-8918-41b9-a747-d21eb79c6c22\",\r\n          \"definition\": {\r\n            \"name\": \"org.onap.domain.database.Local_K8SMicroserviceControlLoopElement\",\r\n            \"version\": \"1.2.3\"\r\n          },\r\n          \"participantId\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"participantType\": {\r\n            \"name\": \"org.onap.k8s.controlloop.K8SControlLoopParticipant\",\r\n            \"version\": \"2.3.4\"\r\n          },\r\n          \"state\": \"UNINITIALISED\",\r\n          \"orderedState\": \"UNINITIALISED\",\r\n          \"description\": \"K8s Control Loop Element for the local instance 0 control loop\"\r\n        }\r\n      }\r\n    }\r\n  ]\r\n}",
          "disabled": false
        },
        "description": ""
      },
      "response": [
        {
          "header": [],
          "code": 200,
          "name": "Response_200",
          "id": "76e0d5e8-f5c9-456e-b908-c9f24ebc5613"
        }
      ]
    },
    {
      "id": "9e88fc2f-6a65-4693-ab78-d69139d06d02",
      "name": "Commission a Control loop",
      "request": {
        "url": {
          "protocol": "https",
          "host": "localhost",
          "path": [
            "onap",
            "controlloop",
            "v2",
            "commission"
          ],
          "port": "6969"
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/yaml",
            "description": "",
            "disabled": false
          },
          {
            "key": "X-ONAP-RequestID",
            "value": "709c62b3-8918-41b9-a747-d21eb79c6c20",
            "description": "",
            "disabled": false
          },
          {
            "key": "Accept",
            "value": "*/*",
            "disabled": false
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "tosca_definitions_version: tosca_simple_yaml_1_3\ndata_types:\n  onap.datatypes.ToscaConceptIdentifier:\n    derived_from: tosca.datatypes.Root\n    properties:\n      name:\n        type: string\n        required: true\n      version:\n        type: string\n        required: true\nnode_types:\n  org.onap.policy.clamp.controlloop.Participant:\n    version: 1.0.1\n    derived_from: tosca.nodetypes.Root\n    properties:\n      provider:\n        type: string\n        requred: false\n  org.onap.policy.clamp.controlloop.ControlLoopElement:\n    version: 1.0.1\n    derived_from: tosca.nodetypes.Root\n    properties:\n      provider:\n        type: string\n        requred: false\n      participant_id:\n        type: onap.datatypes.ToscaConceptIdentifier\n        requred: true\n  org.onap.policy.clamp.controlloop.ControlLoop:\n    version: 1.0.1\n    derived_from: tosca.nodetypes.Root\n    properties:\n      provider:\n        type: string\n        requred: false\n      elements:\n        type: list\n        required: true\n        entry_schema:\n          type: onap.datatypes.ToscaConceptIdentifier\n  org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement:\n    version: 1.0.1\n    derived_from: org.onap.policy.clamp.controlloop.ControlLoopElement\n    properties:\n      chart:\n        type: string\n        required: true\n      configs:\n        type: list\n        required: false\n      requirements:\n        type: string\n        requred: false\n      templates:\n        type: list\n        required: false\n        entry_schema:\n      values:\n        type: string\n        requred: true\ntopology_template:\n  node_templates:\n    org.onap.k8s.controlloop.K8SControlLoopParticipant:\n      version: 2.3.4\n      type: org.onap.policy.clamp.controlloop.Participant\n      type_version: 1.0.1\n      description: Participant for K8S\n      properties:\n        provider: ONAP\n   \n    org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement:\n      # Chart from any chart repository configured on helm client.\n      version: 1.2.3\n      type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement\n      type_version: 1.0.0\n      description: Control loop element for the K8S microservice for Hello World\n      properties:\n        provider: ONAP\n        participant_id:\n          name: org.onap.k8s.controlloop.K8SControlLoopParticipant\n          version: 2.3.4\n        chart:  \n          chartId:         \n            name: dummy\n            version: 0.1.0 \n          releaseName: test                         \n          namespace: test   \n\n    org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement:  \n      # Chart from local file system    \n      version: 1.2.3\n      type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement\n      type_version: 1.0.0\n      description: Control loop element for the K8S microservice for PMSH\n      properties:\n        provider: ONAP\n        participant_id:\n          name: org.onap.k8s.controlloop.K8SControlLoopParticipant\n          version: 2.3.4\n        chart:          \n          chartId: \n            name: dcae-pmsh         \n            version: 8.0.0\n          namespace: onap \n          releaseName: pmshms\n          repository:\n            repoName: chartmuseum\n            protocol: http\n            address: 10.152.183.120\n            port: 80\n            userName: onapinitializer\n            password: demo123456!\n          overrideParams:\n            global.masterPassword: test\n            \n                 \n\n    org.onap.domain.database.Local_K8SMicroserviceControlLoopElement: \n      # Chart installation without passing repository name     \n      version: 1.2.3\n      type: org.onap.policy.clamp.controlloop.K8SMicroserviceControlLoopElement\n      type_version: 1.0.0\n      description: Control loop element for the K8S microservice for local chart\n      properties:\n        provider: ONAP\n        participant_id:\n          name: org.onap.k8s.controlloop.K8SControlLoopParticipant\n          version: 2.3.4\n        chart:\n          chartId:      \n            name: nginx-ingress\n            version: 0.9.1    \n          releaseName: nginxms\n          namespace: test   \n          repository:\n            repoName: nginx-stable       \n\n    org.onap.domain.sample.GenericK8s_ControlLoopDefinition:\n      version: 1.2.3\n      type: org.onap.policy.clamp.controlloop.ControlLoop\n      type_version: 1.0.0\n      description: Control loop for Hello World\n      properties:\n        provider: ONAP\n        elements:        \n        - name: org.onap.domain.database.HelloWorld_K8SMicroserviceControlLoopElement\n          version: 1.2.3   \n        - name: org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement\n          version: 1.2.3     \n        - name: org.onap.domain.database.Local_K8SMicroserviceControlLoopElement\n          version: 1.2.3                  \n   ",
          "disabled": false
        },
        "description": ""
      },
      "response": [
        {
          "header": [],
          "code": 200,
          "name": "Response_200",
          "id": "ab57b923-a484-486c-a03a-b1ad6bf64d09"
        }
      ]
    }
  ],
  "variable": [],
  "auth": {
    "type": "basic",
    "basic": {
      "username": "runtimeUser",
      "password": "zb!XztG34"
    }
  }
}
s="nt">occurrences: - 0 - UNBOUNDED - send: capability: org.onap.EventConsumer relationship: org.onap.PropagateEvent occurrences: - 0 - UNBOUNDED version: 0.0.1 derived_from: tosca.nodes.Root relationship_types: org.onap.PropagateEvent: properties: config_keys: type: list description: The relationship type used on requirements to org.onap.EventProducer and org.onap.EventConsumer capabilities. Filters events by specific config_keys to be transferred by this relationship. That is, any event with a specific config_key found in the list is transferred. If list is not defined or is empty, events with all config_keys are transferred. required: false entry_schema: type: string version: 0.0.1 derived_from: tosca.relationships.Root topology_template: inputs: pm_subscription_topic: type: string pm_subscription_response_topic: type: string pm_subscription_handler_blueprint_id: type: string pm_subscription_operational_policy_id: type: string pm_subscription_cds_blueprint_id: type: string enable_tls: type: string node_templates: org.onap.PM_Subscription_Handler: type: org.onap.polcy.clamp.ControlLoopElement properties: application_name: PM Subscription Handler provider: Ericsson application_version: 1.0.0 artifact_id: get_input: pm_subscription_handler_blueprint_id description: Is this a reference to the DCAE Cloudify Blueprint that is already stored(or will be stored before CL configuration & instatiation) in DCAE Inventory? artifact_config: enable_tls: get_input: enable_tls pmsh_publish_topic_name: get_input: pm_subscription_topic capabilities: pm-subscription-event-publisher: properties: carrier_protocol_type: DMAAP_message_router data_format: JSON event_format: pm-subscription-event-format event_format_version: 1.0.0 attributes: type: org.onap.EventProducer occurrences: - 0 - UNBOUNDED pm-subscription-event-receiver: properties: carrier_protocol_type: DMAAP_message_router data_format: JSON event_format: pm-subscription-event-response-format event_format_version: 1.0.0 relationships: - type: tosca.relationships.DependsOn - description: any ideas on a better realtionship ? or is it better to just use the root realtionship ? - target: org.onap.PM_Monitoring_Policy attributes: type: org.onap.EventConsumer occurrences: - 0 - UNBOUNDED org.onap.PM_Monitoring_Policy: type: org.onap.DynamicConfig properties: application_name: PM Subscription Handler application_version: 1.0.0 provider: Ericsson data_types: measurementType: type: string DN: type: string nfFilter: properties: nfNames: type: list entry_schema: string modelInvariantIDs: type: list entry_schema: type: string modelVersionIDs: type: list entry_schema: type: string measurementGroup: properties: masurementTypes: type: list entry_schema: type: measurementType managedObjectDNsBasic: type: list entry_schema: type: DN schema: subscription: subscriptionName: type: string required: true administrativeState: type: string required: true filebasedGP: type: integer required: true fileLocation: type: string required: true nfFilter: type: nfFilter measurementGroups: type: list entry_schema: type: measurementGroup description: Should I be showing a dependency between PM Subscription Handler and the PM Monitoring Policy org.onap.PM_Policy: type: org.onap.APP properties: application_name: PM Subscription Operational Policy provider: Ericsson application_version: 1.0.0 artifact_id: get_input: pm_subscription_operational_policy_id artifact_config: NOT_DEFINED requirements: - receive_0: capability: pm-subscription-event-publisher node: org.onap.PM_Subscription_Handler relationship: NOT_DEFINED properties: config_keys: - topic_name: get_input: pm_subscription_topic - send_0: capability: cds-rest-receive node: org.onap.CDS - receive_1: capability: cds-rest-response node: org.onap.CDS - send_1: capability: pm-subscription-event-receiver node: org.onap.PM_Subscription_Handler relationship: NOT_DEFINED properties: config_keys: - topic_name: get_input: pm_subscription_response_topic capabilities: pm-subscription-response-event-publisher: properties: type: org.onap.EventProducer carrier_protocol_type: DMAAP_message_router data_format: JSON event_format: pm-subscription-event-response-format event_format_version: 1.0.0 occurrences: - 0 - UNBOUNDED org.onap.PM_CDS_Blueprint: type: org.onap.APP properties: application_name: PM Subscription CDS Blueprint provider: Ericsson application_version: 1.0.0 artifact_id: get_input: pm_subscription_cds_blueprint_id capabilities: cds-rest-receive: properties: type: org.onap.EventConsumer protocol_type: REST data_format: JSON event_format: cds_action_format event_format_version: 1.0.0 responding_capability: cds-rest-response occurrences: - 0 - UNBOUNDED cds-rest-response: properties: type: org.onap.EventProducer protocol_type: REST data_format: JSON event_format: cds_action_response_format event_format_version: 1.0.0 occurrences: - 0 org.onap.controlloop0: version: 1.2.3 type: org.onap.policy.clamp.ControlLoop properties: application_name: Test Control Loop provider: Ericsson application_version: 1.0.0 status: NOT_DEPLOYED elements: element1: org.onap.PM_Monitoring_Policy