{ "info": { "_postman_id": "b69368a6-2e65-4eeb-85f3-13d6b0b083ab", "name": "Create VNF & PNF in AAI for Apex S3P", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Add Customer", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "{\r\n \"global-customer-id\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\",\r\n \"subscriber-name\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\",\r\n \"subscriber-type\": \"INFRA\"\r\n}" }, "url": { "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v11", "business", "customers", "customer", "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf" ] } }, "response": [] }, { "name": "Add CloudRegion", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Real-Time", "value": "true", "type": "text" }, { "key": "X-TransactionId", "value": "AAI-Temp-Tool", "type": "text" }, { "key": "X-FromAppId", "value": "AAI-Temp-Tool", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"cloud-owner\": \"CloudOwner\",\n \"cloud-region-id\": \"RegionOne\",\n \"cloud-type\": \"openstack\",\n \"owner-defined-type\": \"owner-defined-type\",\n \"cloud-region-version\": \"titanium_cloud\",\n \"identity-url\": \"http://10.195.194.213:5000/v2.0\",\n \"cloud-zone\": \"CloudZone\",\n \"sriov-automation\": true,\n \"tenants\": {\n \"tenant\": [\n {\n \"tenant-id\": \"7320ec4a5b9d4589ba7c4412ccfd290f\",\n \"tenant-name\": \"nso-vnf\",\n \"vservers\": {\n \"vserver\": [\n {\n \"vserver-id\": \"c82153dc-8d84-4e69-9673-5e0a60030779\",\n \"vserver-name\": \"viptela_scripts\",\n \"vserver-name2\": \"viptela_scripts\",\n \"prov-status\": \"Running\",\n \"vserver-selflink\": \"http://10.195.194.213:8774/v2.1/7320ec4a5b9d4589ba7c4412ccfd290f/servers/c82153dc-8d84-4e69-9673-5e0a60030779\",\n \"in-maint\": false,\n \"is-closed-loop-disabled\": false\n }\n ]\n }\n }\n ]\n }\n}" }, "url": { "raw": "{{AAI-URL}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "cloud-infrastructure", "cloud-regions", "cloud-region", "CloudOwner", "RegionOne" ] } }, "response": [] }, { "name": "Add Service Subscription", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "{\r\n \"service-type\": \"vFWDT\",\r\n \"relationship-list\": {\r\n \"relationship\": [\r\n {\r\n \"related-to\": \"tenant\",\r\n \"related-link\": \"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"tenant.tenant-name\",\r\n \"property-value\": \"nso-vnf\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}" }, "url": { "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v11", "business", "customers", "customer", "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", "service-subscriptions", "service-subscription", "vFWDT" ] } }, "response": [] }, { "name": "Add Model", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "{\r\n \"model-invariant-id\": \"vTEST_VITELA\",\r\n \"model-type\": \"model_type\",\r\n \"model-vers\": {\r\n \"model-ver\": [\r\n {\r\n \"model-version-id\": \"vTEST\",\r\n \"model-name\": \"vTEST\",\r\n \"model-version\": \"v1.4.0\"\r\n }\r\n ]\r\n }\r\n}\r\n" }, "url": { "raw": "{{AAI-URL}}/aai/v14/service-design-and-creation/models/model/vTEST_VITELA", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "service-design-and-creation", "models", "model", "vTEST_VITELA" ] } }, "response": [] }, { "name": "Add Service Instance", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "{\r\n \"service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"service-instance-name\": \"Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659\",\r\n \"environment-context\": \"General_Revenue-Bearing\",\r\n \"workload-context\": \"Production\",\r\n \"model-invariant-id\": \"vTEST_VITELA\",\r\n \"model-version-id\": \"vTEST\",\r\n \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/55322ada-145a-492e-b196-0d171539a4b2/service-data/service-topology/\",\r\n \"orchestration-status\": \"Active\"\r\n}" }, "url": { "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v11", "business", "customers", "customer", "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", "service-subscriptions", "service-subscription", "vFWDT", "service-instances", "service-instance", "55322ada-145a-492e-b196-0d171539a4b2" ] } }, "response": [] }, { "name": "Add dummy-vnf", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Real-Time", "value": "true", "type": "text" }, { "key": "X-TransactionId", "value": "AAI-Temp-Tool", "type": "text" }, { "key": "X-FromAppId", "value": "AAI-Temp-Tool", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"vnf-id\": \"de305d54-75b4-431b-adb2-eb6b9e5460141\",\r\n \"vnf-name\": \"vfw-cnf-cds-test-1-vnf\",\r\n \"vnf-type\": \"vfw_cnf_cds/null\",\r\n \"service-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"prov-status\": \"ACTIVE\",\r\n \"orchestration-status\": \"Assigned\",\r\n \"in-maint\": false,\r\n \"is-closed-loop-disabled\": false,\r\n \"model-invariant-id\": \"vTEST_VITELA\",\r\n \"model-version-id\": \"vTEST\",\r\n \"model-customization-id\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"relationship-list\": {\r\n \"relationship\": [\r\n {\r\n \"related-to\": \"service-instance\",\r\n \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\",\r\n \"related-link\": \"/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"customer.global-customer-id\",\r\n \"relationship-value\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\"\r\n },\r\n {\r\n \"relationship-key\": \"service-subscription.service-type\",\r\n \"relationship-value\": \"vFWDT\"\r\n },\r\n {\r\n \"relationship-key\": \"service-instance.service-instance-id\",\r\n \"relationship-value\": \"55322ada-145a-492e-b196-0d171539a4b2\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"service-instance.service-instance-name\",\r\n \"property-value\": \"Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659\"\r\n }\r\n ]\r\n },\r\n {\r\n \"related-to\": \"tenant\",\r\n \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\",\r\n \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"tenant.tenant-name\",\r\n \"property-value\": \"nso-vnf\"\r\n }\r\n ]\r\n },\r\n {\r\n \"related-to\": \"vserver\",\r\n \"relationship-label\": \"tosca.relationships.HostedOn\",\r\n \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f/vservers/vserver/c82153dc-8d84-4e69-9673-5e0a60030779\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n },\r\n {\r\n \"relationship-key\": \"vserver.vserver-id\",\r\n \"relationship-value\": \"c82153dc-8d84-4e69-9673-5e0a60030779\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"vserver.vserver-name\",\r\n \"property-value\": \"viptela_scripts\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}" }, "url": { "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/de305d54-75b4-431b-adb2-eb6b9e5460141", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "generic-vnfs", "generic-vnf", "de305d54-75b4-431b-adb2-eb6b9e5460141" ] } }, "response": [] }, { "name": "Verify dummy-vnf", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Real-Time", "value": "true", "type": "text" }, { "key": "X-TransactionId", "value": "AAI-Temp-Tool", "type": "text" }, { "key": "X-FromAppId", "value": "AAI-Temp-Tool", "type": "text" } ], "url": { "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/de305d54-75b4-431b-adb2-eb6b9e5460141", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "generic-vnfs", "generic-vnf", "de305d54-75b4-431b-adb2-eb6b9e5460141" ] } }, "response": [] }, { "name": "Add simple-cl-pnf", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Real-Time", "value": "true", "type": "text" }, { "key": "X-TransactionId", "value": "AAI-Temp-Tool", "type": "text" }, { "key": "X-FromAppId", "value": "AAI-Temp-Tool", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"pnf-name\": \"PNF101\",\n \"pnf-name2\": \"the-hostname\",\n \"pnf-id\": \"927b2580-36d9-4f13-8421-3c9d43b7a57e\",\n \"equip-type\": \"example-equip-type-val-20348\",\n \"equip-vendor\": \"example-equip-vendor-val-52182\",\n \"equip-model\": \"example-equip-model-val-8370\",\n \"management-option\": \"example-management-option-val-72881\",\n \"ipaddress-v4-oam\": \"10.195.200.23\",\n \"in-maint\": false,\n \"ipaddress-v6-oam\": \"\"\n }" }, "url": { "raw": "{{AAI-URL}}/aai/v15/network/pnfs/pnf/PNF101", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v15", "network", "pnfs", "pnf", "PNF101" ] } }, "response": [] }, { "name": "Verify simple-cl-pnf", "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "url": { "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/PNF101", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "pnfs", "pnf", "PNF101" ] } }, "response": [] }, { "name": "Add simple-cl-pnf-failure", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Real-Time", "value": "true", "type": "text" }, { "key": "X-TransactionId", "value": "AAI-Temp-Tool", "type": "text" }, { "key": "X-FromAppId", "value": "AAI-Temp-Tool", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"pnf-name\": \"simple-cl-pnf-failure\",\n \"pnf-name2\": \"the-hostname\",\n \"pnf-id\": \"927b2580-36d9-4f13-8421-3c9d43b7a77e\",\n \"equip-type\": \"example-equip-type-val-20348\",\n \"equip-vendor\": \"example-equip-vendor-val-52182\",\n \"equip-model\": \"example-equip-model-val-8370\",\n \"management-option\": \"example-management-option-val-72881\",\n \"ipaddress-v4-oam\": \"10.195.200.23\",\n \"in-maint\": false,\n \"ipaddress-v6-oam\": \"\"\n }" }, "url": { "raw": "{{AAI-URL}}/aai/v15/network/pnfs/pnf/simple-cl-pnf-failure", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v15", "network", "pnfs", "pnf", "simple-cl-pnf-failure" ] } }, "response": [] }, { "name": "Verify simple-cl-pnf-failure", "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "url": { "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf-failure", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "pnfs", "pnf", "simple-cl-pnf-failure" ] } }, "response": [] }, { "name": "Delete dummy-vnf", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/57b008b9-b367-4359-93fd-74d3ce0ee1a0?resource-version=1633120087974", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "generic-vnfs", "generic-vnf", "57b008b9-b367-4359-93fd-74d3ce0ee1a0" ], "query": [ { "key": "resource-version", "value": "1633120087974" } ] } }, "response": [] }, { "name": "Delete simple-cl-pnf", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf?resource-version=1621307213843", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "pnfs", "pnf", "simple-cl-pnf" ], "query": [ { "key": "resource-version", "value": "1621307213843" } ] } }, "response": [] }, { "name": "Delete simple-cl-pnf-failure", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Real-Time", "type": "text", "value": "true" }, { "key": "X-TransactionId", "type": "text", "value": "AAI-Temp-Tool" }, { "key": "X-FromAppId", "type": "text", "value": "AAI-Temp-Tool" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf-failure?resource-version=1621307213843", "host": [ "{{AAI-URL}}" ], "path": [ "aai", "v14", "network", "pnfs", "pnf", "simple-cl-pnf-failure" ], "query": [ { "key": "resource-version", "value": "1621307213843" } ] } }, "response": [] } ], "auth": { "type": "basic", "basic": [ { "key": "password", "value": "demo123456!", "type": "string" }, { "key": "username", "value": "aai@aai.onap.org", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }