3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2020 Orange
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # ============LICENSE_END=========================================================
20 REQ_ID=`shuf -i 1-1000000 -n 1`
21 SUB_REQ_ID=$REQ_ID"-"`shuf -i 1-1000 -n 1`
23 curl --location --request POST 'http://localhost:8081/api/v1/execution-service/process' \
24 --header 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \
25 --header 'Content-Type: application/json' \
28 "originatorId": "onap-me-cm-adapter",
29 "requestId": "'$REQ_ID'",
30 "subRequestId": "'$SUB_REQ_ID'"
32 "actionIdentifiers": {
33 "blueprintName": "APACHE",
34 "blueprintVersion": "1.0.0",
35 "actionName": "resource-assignment",
39 "resource-assignment-request": {
43 "resolution-key": "ra-test-resolution",
44 "resource-assignment-properties": {
46 "aic-cloud-region": "RegionOne",
47 "vnf-model-customization-uuid": "d73864db-1f6e-4e54-a533-a96773c926a4",
48 "service-instance-id": "2afee7c4-8b16-4f2f-a567-48fb7948abcf",
49 "vnf-id": "51274ece-55ca-4cbc-b7c4-0da0dcc65d38",
50 "vnf_name": "sample-vnf-name",
51 "k8s-rb-profile-namespace": "vfw-namespace",
52 "k8s-rb-profile-k8s-version": "1.18.9"
56 }' | jq '.payload | .["resource-assignment-response"] | .["meshed-template"] | .vnf | fromjson | .["resource-accumulator-resolved-data"] '