Table of Contents |
---|
This example is taken from the results of the running the robot demo vFWCL instantiate tests.
vf-module
GET https://{{AAI1_PUB_IP}}:30233/aai/v14/network/generic-vnfs/generic-vnf/0519e79a-6b2a-4dfb-98ea-7f8500806696/vf-modules/vf-moduleMore information for A&AI REST API can be found in here
vf-module
GET https://{{AAI1_PUB_IP}}:30233/aai/v14/network/generic-vnfs/generic-vnf/0519e79a-6b2a-4dfb-98ea-7f8500806696/vf-modules/vf-module?depth=all
Code Block | ||
---|---|---|
| ||
| ||
{ "vf-module-id": "6e4b778a-f559-4518-b070-48abc260f99d", "vf-module-name": "Vfmodule_Ete_vFWCLvFWSNK_938f7652_0", "heat-stack-id": "Vfmodule_Ete_vFWCLvFWSNK_938f7652_0/9116a634-f191-4dee-a696-6e1b1ce28097", "orchestration-status": "active", "is-base-vf-module": true, "automated-assignment": false, "resource-version": "1563486286838", "model-invariant-id": "857eb10e-1c4c-484a-ba4b-ab657b6dad9c", "model-version-id": "2f26cb20-d402-4597-bab1-273f6f4acc60", "model-customization-id": "a590ece6-4a4f-429e-aff4-1bb8969b2c08", "module-index": 0, "relationship-list": { "relationship": [ { "related-to": "vserver", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5c2533a6-1f4e-4b7e-8434-1e77195888a2", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a7808" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "5c2533a6-1f4e-4b7e-8434-1e77195888a2" } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "property-value": "Ete_vFWCLvFWSNK_938f7652_0" } ] "relationship": [ }, { "related-to": "vserver", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5c2533a6e69b8b2d-1f4eb248-4b7e4eb1-8434aa0f-1e77195888a292afdaddba31", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a7808" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "5c2533a6e69b8b2d-1f4eb248-4b7e4eb1-8434aa0f-1e77195888a292afdaddba31" } ], "related-to-property": [-property": [ { "property-key": "vserver.vserver-name", "property-value": "demofwl01snk7652" {} ] "property-key": "vserver.vserver-name", } ] } } |
vnfc
GET https://{{AAI1_PUB_IP}}:30233/aai/v14/network/vnfcs/vnfc/demofwl01pgnb5b9?depth=all
Code Block | ||
---|---|---|
| ||
{ "propertyvnfc-valuename": "Ete_vFWCLvFWSNK_938f7652_0"demofwl01pgnb5b9", "nfc-naming-code": "vFWCLvPKG", "nfc-function": "vFWCLvPKG", } "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1562777145165", ] "relationship-list": { },"relationship": [ { "related-to": "vserver", "relationship-label": "org.onaptosca.relationships.inventory.UsesHostedOn", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a780841d6d38489bd40b09ea8a6b6b852dcbd/vservers/vserver/e69b8b2db22654cc-b248bd9a-4eb1425f-aa0fad4a-92afdaddba3143ef2726d440", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a780841d6d38489bd40b09ea8a6b6b852dcbd" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "e69b8b2db22654cc-b248bd9a-4eb1425f-aa0fad4a-92afdaddba3143ef2726d440" } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "property-value": "demofwl01snk7652demofwl01pgnb5b9" } ] } ] } }} } |
Info | ||
---|---|---|
| ||
The returned VNFC structures does not have CP list which is the simplest way to get the IP addresses allocated for particular VM/v-server |
vserver
GET https://{{AAI1_PUB_IP}}:{{AAI1_PUB_PORT}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/e69b8b2d-b248-4eb1-aa0f-92afdaddba31?depth=all
...
Code Block | ||
---|---|---|
| ||
{ "flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39", "flavor-name": "m1.medium", "flavor-vcpus": 2, "flavor-ram": 4096, "flavor-disk": 40, "flavor-ephemeral": 0, "flavor-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/flavors/764efb04-5a46-4806-a766-2bdd24559f39", "resource-version": "1563486309607", "relationship-list": { "relationship": [ { "related-to": "vserver", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/587c6bda-629d-4e2e-9cb0-abf2ac03a3f7", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a7808" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "587c6bda-629d-4e2e-9cb0-abf2ac03a3f7" } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "property-value": "demofwl01pgn7652" } ] }, { "related-to": "vserver", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5c2533a6-1f4e-4b7e-8434-1e77195888a2", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a7808" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "5c2533a6-1f4e-4b7e-8434-1e77195888a2" } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "property-value": "Ete_vFWCLvFWSNK_938f7652_0" } ] }, { "related-to": "vserver", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/e69b8b2d-b248-4eb1-aa0f-92afdaddba31", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "tenant.tenant-id", "relationship-value": "6bbd2981b210461dbc8fe846df1a7808" }, { "relationship-key": "vserver.vserver-id", "relationship-value": "e69b8b2d-b248-4eb1-aa0f-92afdaddba31" } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "property-value": "demofwl01snk7652" } ] } ] } } |
l3-network
GET https://{{AAI1_PUB_IP}}:30233/aai/v14/network/l3-networks
Info | ||
---|---|---|
| ||
No examples found so far. It would be the best structure to keep information about created Network kinds. This network objects are associated with the heat stack in the same way how vf-module is associated with it today. Because of that it is the best place to keep information about created networks in OVN. |