UNPKG

@itentialopensource/adapter-onap_appc

Version:

This adapter integrates with system: sample.

1,270 lines 66 kB
{ "info": { "_postman_id": "f84d824d-14e6-4c7c-a0f3-eaa8b379b091", "name": "onap_appc", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "HealthCheckAppc", "event": [ { "listen": "prerequest", "script": { "id": "1b160c32-774d-4e03-a7d4-24ccfaaa9ada", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"HealthCheck\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"request-parameters\\\":{\\\"vnf-name\\\":\\\"{{vnf-name}}\\\",\\\"host-ip-address\\\":\\\"{{host-ip-address}}\\\"},\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:health-check", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:health-check" ] } }, "response": [ { "name": "HealthCheckAppc", "status": "OK", "code": 200, "body": { "identifier": "scope represented", "state": "healthy", "time": "01-01-1000:0000" } } ] }, { "name": "ConfigModify", "event": [ { "listen": "prerequest", "script": { "id": "619f7526-957b-47d2-934d-cf75f26cedc4", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ConfigModify\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\",\\\"targetname\\\":\\\"12\\\",\\\"timeoutvalue\\\":\\\"11\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:config-modify", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:config-modify" ] } }, "response": [ { "name": "ConfigModify", "status": "OK", "code": 200, "body": { "input": { "common-header": { "timestamp": "2017-10-25T11:10:04.244Z", "api-ver": "2.00", "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced200", "request-id": "664be3d2-6c12-4f4b-a3e7-c349acced200", "sub-request-id": "1", "flags": { "force": "TRUE", "ttl": 60000 } }, "action": "ConfigModify", "action-identifiers": { "vnf-id": "<VNF_ID>" }, "payload": { "config-url": "5f517fd4-bf3d-43bc-8147-1b61776d7ded", "config-json": { "pg-streams": { "pg-stream": [ { "id": "fw_udp1", "is-enabled": "true" }, { "id": "fw_udp2", "is-enabled": "true" }, { "id": "fw_udp3", "is-enabled": "true" }, { "id": "fw_udp4", "is-enabled": "true" }, { "id": "fw_udp5", "is-enabled": "true" } ] } } } } } } ] }, { "name": "Configure", "event": [ { "listen": "prerequest", "script": { "id": "b30d8248-dc8a-446b-9af9-00979e906fc0", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Configure\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"request-parameters\\\":{\\\"vnf-name\\\":\\\"{{vnf-name}}\\\",\\\"host-ip-address\\\":\\\"{{host-ip-address}}\\\"},\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:configure", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:configure" ] } }, "response": [] }, { "name": "ConfigScaleOut", "event": [ { "listen": "prerequest", "script": { "id": "505a21fd-c626-49e4-bf0a-0f6f67187ea2", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ConfigModify\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\",\\\"targetname\\\":\\\"12\\\",\\\"timeoutvalue\\\":\\\"11\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:config-scale-out", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:config-scale-out" ] } }, "response": [] }, { "name": "ActionStatus", "event": [ { "listen": "prerequest", "script": { "id": "f02ca53f-f1cb-4a2d-a497-9f7e6762f086", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ActionStatus\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n },\r\n \"payload\": \"{\\\"request-id\\\":\\\"{{request-id}}\\\",\\\"sub-request-id\\\":\\\"{{sub-request-id}}\\\",\\\"originator-id\\\":\\\"{{originator-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:action-status", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:action-status" ] }, "description": "The ActionStatus command returns that state of any action request that has been previously submitted to an APPC instance for a specified VNF. This enables the client to know the status of a previous request and helps them decide if they should reissue a request." }, "response": [] }, { "name": "AttachVolume", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"AttachVolume\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"volumeId\\\":\\\"{{volumeId}}\\\",\\\"device\\\":\\\"{{device}}\\\",\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:attach-volume", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:attach-volume" ] }, "description": "The AttachVolume command attaches a cinder volume to a VM via an Openstack command. Cinder is a Block Storage service for OpenStack. It’s designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Audit", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Audit\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n },\r\n \"payload\": \"{\\\"publish-config\\\":\\\"Y\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:audit", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:audit" ] }, "description": "The Audit command compares the configuration of the VNF associated with the current request against the most recent configuration that is stored in APPC’s configuration database. A successful Audit means that the current VNF configuration matches the latest APPC stored configuration. A failed Audit indicates that the configurations do not match. This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration). The Audit action does not require any payload parameters. NOTE: Audit does not return a payload containing details of the comparison, only the Success/Failure status." }, "response": [] }, { "name": "CheckLock", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"CheckLock\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n },\r\n \"payload\": \"{}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:checklock", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:checklock" ] }, "description": "The CheckLock command returns true if the specified VNF is locked; otherwise, false is returned. A CheckLock command is deemed successful if the processing completes without error, whether the VNF is locked or not. The command returns only a single response with a final status. Note that APPC locks the target VNF during any VNF command processing, so a VNF can have a locked status even if no Lock command has been explicitly called. The CheckLock command returns a specific response structure that extends the default LCM response. The CheckLock action does not require any payload parameters." }, "response": [] }, { "name": "ConfigBackup", "event": [ { "listen": "prerequest", "script": { "id": "619f7526-957b-47d2-934d-cf75f26cedc4", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ConfigBackup\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\",\\\"targetname\\\":\\\"12\\\",\\\"timeoutvalue\\\":\\\"11\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:config-backup", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:config-backup" ] }, "description": "Stores the current VNF configuration on a local file system (not in APPC). This is limited to Ansible and Chef. There can only be one stored configuration (if there is a previously saved configuration, it is replaced with the current VNF configuration). A successful ConfigBackup request returns a success response. A failed ConfigBackup action returns a failure response code and the specific failure message in the response block." }, "response": [] }, { "name": "ConfigRestore", "event": [ { "listen": "prerequest", "script": { "id": "619f7526-957b-47d2-934d-cf75f26cedc4", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ConfigRestore\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\",\\\"targetname\\\":\\\"12\\\",\\\"timeoutvalue\\\":\\\"11\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:config-restore", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:config-restore" ] }, "description": "Applies a previously saved configuration to the active VNF configuration. This is limited to Ansible and Chef. There can only be one stored configuration. A successful ConfigRestore request returns a success response. A failed ConfigRestore action returns a failure response code and the specific failure message in the response block." }, "response": [] }, { "name": "DetachVolume", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"DetachVolume\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"volumeId\\\":\\\"{{volumeId}}\\\",\\\"device\\\":\\\"{{device}}\\\",\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:detach-volume", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:detach-volume" ] }, "description": "The DetachVolume command detaches a cinder volume from a VM via an Openstack command. Cinder is a Block Storage service for OpenStack. It’s designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self-service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Evacuate", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Evacuate\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\",\\\"rebuild-vm\\\":\\\"{{rebuild-vm}}\\\",\\\"targethost-id\\\":\\\"{{targethost-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:evacuate", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:evacuate" ] }, "description": "Evacuates a specified VM from its current host to another. After a successful evacuate, a rebuild VM is performed if a snapshot is available (and the VM boots from a snapshot). The host on which the VM resides needs to be down. If the target host is not specified in the request, it will be selected by relying on internal rules to evacuate. The Evacuate action will fail if the specified target host is not UP/ENABLED. After Evacuate, the rebuild VM can be disabled by setting the optional rebuild-vm parameter to false. A successful Evacuate action returns a success response. A failed Evacuate action returns a failure. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Lock", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Lock\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n }\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:lock", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:lock" ] }, "description": "Use the Lock command to ensure exclusive access during a series of critical LCM commands. The Lock action will return a successful result if the VNF is not already locked or if it was locked with the same request-id, otherwise the action returns a response with a reject status code. Lock is a command intended for APPC and does not execute an actual VNF command. Instead, lock will ensure that ONAP is granted exclusive access to the VNF. When a VNF is locked, any subsequent sequential commands with same request-id will be accepted. Commands associated with other request-ids will be rejected. APPC locks the target VNF during any VNF command processing. If a lock action is then requested on that VNF, it will be rejected because the VNF was already locked, even though no actual lock command was explicitly invoked. The lock automatically clears after 900 seconds (15 minutes). This 900 second value can be adjusted in the properties file" }, "response": [] }, { "name": "Migrate", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Migrate\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:migrate", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:migrate" ] }, "description": "Migrates a running target VM from its current host to another. A destination node will be selected by relying on internal rules to migrate. Migrate calls a command in order to perform the operation. Migrate suspends the guest virtual machine, and moves an image of the guest virtual machine’s disk to the destination host physical machine. The guest virtual machine is then resumed on the destination host physical machine and the disk storage that it used on the source host physical machine is freed. The migrate action will leave the VM in the same Openstack state the VM had been in prior to the migrate action. If a VM was stopped before migration, a separate VM-level restart command would be needed to restart the VM after migration. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "QuiesceTraffic", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"QuiesceTraffic\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n },\r\n \"payload\": \"{\\\"operations-timeout\\\":\\\"3600\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:quiesce-traffic", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:quiesce-traffic" ] }, "description": "The QuiesceTraffic LCM action gracefully stops the traffic on the VNF (i.e., no service interruption for traffic in progress). All application processes are assumed to be running but no traffic is being processed. This command is executed using an Ansible playbook or Chef cookbook." }, "response": [] }, { "name": "Reboot", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Reboot\",\r\n \"action-identifiers\": {\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"type\\\":\\\"HARD\\\",\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:reboot", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:reboot" ] }, "description": "The Reboot is used to reboot a VM. There are two types supported: HARD and SOFT. A SOFT reboot attempts a graceful shutdown and restart of the server. A HARD reboot attempts a forced shutdown and restart of the server. The HARD reboot corresponds to the power cycles of the server. NOTE: The command implementation is based on OpenStack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Rebuild", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Rebuild\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\",\\\"snapshot-id\\\":\\\"{{snapshot-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:rebuild", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:rebuild" ] }, "description": "Recreates a target VM instance to a known, stable state. Rebuild calls an OpenStack command immediately and therefore does not expect any prerequisite operations to be performed, such as shutting off a VM. Rebuild VM uses the snapshot provided by the snapshot-id (if provided). If not provided, the latest snapshot is used. If there are no snapshots, it uses the (original) Glance image. APPC rejects a rebuild request if it determines the VM boots from a Cinder Volume NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Restart", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Restart\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:restart", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:restart" ] }, "description": "Use the Restart command to restart a VM." }, "response": [] }, { "name": "ResumeTraffic", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"ResumeTraffic\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\"\r\n },\r\n \"payload\":\"{}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:resume-traffic", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:resume-traffic" ] }, "description": "The ResumeTraffic LCM action resumes processing traffic on a VNF that has been previously quiesced. This command is executed using an Ansible playbook or Chef cookbook. Request Structure: The payload does not have any parameters." }, "response": [] }, { "name": "Snapshot", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Snapshot\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:snapshot", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:snapshot" ] }, "description": "Creates a snapshot of a VM. The Snapshot command returns a customized response containing a reference to the newly created snapshot instance if the action is successful. This command can be applied to a VM in any VNF type. The only restriction is that the particular VNF should be built based on the generic heat stack. Note: Snapshot is not reliable unless the VM is in a stopped, paused, or quiesced (no traffic being processed) status. It is up to the caller to ensure that the VM is in one of these states. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "Start", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"Start\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vserver-id\":\"{{vserver-id}}\"\r\n },\r\n \"payload\": \"{\\\"vm-id\\\":\\\"{{vm-id}}\\\",\\\"identity-url\\\":\\\"{{identity-url}}\\\",\\\"tenant-id\\\":\\\"{{tenant-id}}\\\"}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:start", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:start" ] }, "description": "Use the Start command to start a VM that is stopped. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/." }, "response": [] }, { "name": "StartApplication", "event": [ { "listen": "prerequest", "script": { "id": "619f7526-957b-47d2-934d-cf75f26cedc4", "type": "text/javascript", "exec": [ "// Get the current DateTime", "var moment = require('moment');", "var date = new Date().toISOString();", "var newdate = moment(date).subtract(80, 'minutes').toISOString();", "var serverDate = moment(newdate).format('YYYY-MM-DDTHH:mm:ss.SS');", "pm.globals.set(\"serverDate\", serverDate+'Z');", "", "//Get UUID", "var uuid = require('uuid'); ", "var orginatorId = uuid.v4();", "pm.globals.set(\"orginatorId\",orginatorId);" ] } } ], "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=", "description": "username/password : admin/admin" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n \"action\": \"StartApplication\",\r\n \"action-identifiers\": {\r\n \"vnf-id\": \"{{vnf-id}}\",\r\n \"vf-module-id\":\"\",\r\n \"vnfc-name\":\"\",\r\n \"vserver-id\":\"\"\r\n },\r\n \"payload\": \"{\\\"configuration-parameters\\\":{\\\"vnf_name\\\":\\\"{{vnf-name}}\\\",\\\"targetname\\\":\\\"12\\\",\\\"timeoutvalue\\\":\\\"11\\\"}}\"\r\n }\r\n}" }, "url": { "raw": "{{url}}/restconf/operations/appc-provider-lcm:start-application", "host": [ "{{url}}" ], "path": [ "restconf", "operations", "appc-provider-lcm:start-application" ] }, "description": "Starts the VNF application, if needed, after a VM is instantiated/configured or after VM start or restart. Supported using Chef cookbook or Ansible playbook only. A successful StartApplication request returns a success response. A failed StartApplication action returns a failure response code and the specific failure message in the response block." }, "response": [] }, { "name": "Stop", "request": { "method": "POST", "header": [ { "key": "X-TransactionId", "value": "9999" }, { "key": "X-FromAppId", "value": "121" }, { "key": "Real-Time", "value": "true" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Basic YWRtaW46YWRtaW4=" } ], "body": { "mode": "raw", "raw": "{\r\n \"input\": {\r\n \"common-header\": {\r\n \"timestamp\": \"{{serverDate}}\",\r\n \"api-ver\": \"2.00\",\r\n \"originator-id\": \"{{orginatorId}}\",\r\n \"request-id\": \"Postman\",\r\n \"sub-request-id\": \"Postman\",\r\n \"flags\": {\r\n \"mode\": \"NORMAL\",\r\n \"force\": \"TRUE\",\r\n \"ttl\": 36000\r\n }\r\n },\r\n