Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example is taken from the results of the running the robot demo vFWCL instantiate tests.

More information for A&AI REST API can be found in here

https://nexus.onap.org/service/local/repositories/releases/archive/org/onap/aai/aai-common/aai-schema/1.3.0/aai-schema-1.3.0.jar/!/onap/aai_swagger_html/aai_swagger_v14.html

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
collapsetrue
{
    "vnfc-name": "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": "tosca.relationships.HostedOn",
                "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/41d6d38489bd40b09ea8a6b6b852dcbd/vservers/vserver/b22654cc-bd9a-425f-ad4a-43ef2726d440",
                "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": "41d6d38489bd40b09ea8a6b6b852dcbd"
                    },
                    {
                        "relationship-key": "vserver.vserver-id",
                        "relationship-value": "b22654cc-bd9a-425f-ad4a-43ef2726d440"
                    }
                ],
                "related-to-property": [
                    {
                        "property-key": "vserver.vserver-name",
                        "property-value": "demofwl01pgnb5b9"
                    }
                ]
            }
        ]
    }
}


Info
titleNote: vnfc

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

...