Check you USER_ID – it doesnt match your basic auth. What response did you get back ?
Brian From: [email protected] <[email protected]> On Behalf Of Vivekanandan Muthukrishnan Sent: Thursday, July 25, 2019 2:12 PM To: [email protected] Subject: [onap-discuss] [VID] Creating new Owning Entity/lineOfBusiness failed Hi VID team, I am trying to create new lineOfBusiness, project, Owning Entity. I tried with the below REST calls and it is not working. The REST API gets HTML response, I am not sure whether am i missing something in the below REST calls. Kindly note that i can see the default ones created by Robot init script. Can we not add more of these types into VID? Is there any alternate ways to get these details into VID? Could someone help me to create the below new resources would be great. Code snippets export VID_REST_SVC_IP=$(kubectl get svc -n onap | grep vid | grep -v 'vid-' | awk '{print $3}') export VID_REST_SVC_PORT=8080 curl -L -v -X POST "http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/lineOfBusiness"<https://urldefense.proofpoint.com/v2/url?u=http-3A__-24-257BVID-5FREST-5FSVC-5FIP-257D-3A-24-257BVID-5FREST-5FSVC-5FPORT-257D_vid_maintenance_category-5Fparameter_lineOfBusiness-2522&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=IBSCXujVgG59sG-iGlyi3c3SP9Avrd27DK3_7tzLgtM&s=Fas-AxydtRC8uU2gSNwLWkWeb9CNIQtIHKPi89CL9bA&e=> \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "USER_ID: bdemo" \ -H "X-FromAppId: robot-ete" \ -H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \ -u demo:Kp8bJ4SXszM0WX \ -d data='{"options":["LOB-Testing"]}' # Followed Robot logs to insert a platform curl -v -X POST "http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/platform"<https://urldefense.proofpoint.com/v2/url?u=http-3A__-24-257BVID-5FREST-5FSVC-5FIP-257D-3A-24-257BVID-5FREST-5FSVC-5FPORT-257D_vid_maintenance_category-5Fparameter_platform-2522&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=IBSCXujVgG59sG-iGlyi3c3SP9Avrd27DK3_7tzLgtM&s=9i3ntVqDnT8BZhE_3nsxnG7mULpd9_eZH8Pq4nJkDWk&e=> \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "USER_ID: bdemo" \ -H "X-FromAppId: robot-ete" \ -H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \ -u demo:Kp8bJ4SXszM0WX \ -d data='{"options":["Platform-Testing"]}' curl -v -X POST "http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/project"<https://urldefense.proofpoint.com/v2/url?u=http-3A__-24-257BVID-5FREST-5FSVC-5FIP-257D-3A-24-257BVID-5FREST-5FSVC-5FPORT-257D_vid_maintenance_category-5Fparameter_project-2522&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=IBSCXujVgG59sG-iGlyi3c3SP9Avrd27DK3_7tzLgtM&s=WFa4TimBfZ5gZrtk_sY3oX9zgaxcIBkhH-XjOdagKB0&e=> \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "USER_ID: bdemo" \ -H "X-FromAppId: robot-ete" \ -H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \ -u demo:Kp8bJ4SXszM0WX \ -d data='{"options":["Project-Testing"]}' curl -v -X POST "http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/owningEntity"<https://urldefense.proofpoint.com/v2/url?u=http-3A__-24-257BVID-5FREST-5FSVC-5FIP-257D-3A-24-257BVID-5FREST-5FSVC-5FPORT-257D_vid_maintenance_category-5Fparameter_owningEntity-2522&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=IBSCXujVgG59sG-iGlyi3c3SP9Avrd27DK3_7tzLgtM&s=MvlINfZeV1apIrYz_QdOCSlvGl595MxDC8cGjimJrJU&e=> \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "USER_ID: demo" \ -H "X-FromAppId: robot-ete" \ -H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \ -u demo:Kp8bJ4SXszM0WX \ -d data='{"options":["OE-Testing"]}' -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18305): https://lists.onap.org/g/onap-discuss/message/18305 Mute This Topic: https://lists.onap.org/mt/32601626/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
