Aniello,

According to the AAI Swagger v11, that GET call is incorrect. The correct one 
is: GET 
/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}

Relationships appear at the root level of the returned object. See example 
below: 
https://{{aai_ip}}:{{aai_port}}/aai/{{aai_api_ver}}/business/customers/customer/{{customer-id}}/service-subscriptions/service-subscription/vFW<https://%7b%7baai_ip%7d%7d:%7b%7baai_port%7d%7d/aai/%7b%7baai_api_ver%7d%7d/business/customers/customer/%7b%7bcustomer-id%7d%7d/service-subscriptions/service-subscription/vFW>


{
    "service-type": "vFW",
    "resource-version": "1553778813749",
    "relationship-list": {
        "relationship": [
            {
                "related-to": "tenant",
                "relationship-label": "org.onap.relationships.inventory.Uses",
                "related-link": 
"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/d570c718cbc545029f40e50b75eb13df",
                "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": "d570c718cbc545029f40e50b75eb13df"
                    }
                ],
                "related-to-property": [
                    {
                        "property-key": "tenant.tenant-name",
                        "property-value": "Integration-SB-04"
                    }
                ]
            }
        ]
    }
}


From: <[email protected]> on behalf of MALINCONICO ANIELLO PAOLO 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>
Date: Tuesday, April 2, 2019 at 7:36 AM
To: "[email protected]" <[email protected]>
Subject: [onap-discuss] [AAI] No Node of type relationship found error #aai

relationship-list/<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.polito.it_SRedirect_3A81FC3B_-257B-257Baai-5Fip-257D-257D-3A30233_aai_v11_business_customers_customer_TIM_service-2Dsubscriptions_service-2Dsubscription_EVPL_service-2Dinstances_service-2Dinstance_3d507df3-2D42bb-2D46bf-2Dad38-2D42b73ae4438e_relationship-2Dlist_&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=vmWeib7wPBR-Is4zVv_6_1edxoNxjLKV5R_KDKovSTc&s=ISgbbixC-oi7MLScc2vhQ5xrlFn6U8dstoOJ-KTHq74&e=>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16437): https://lists.onap.org/g/onap-discuss/message/16437
Mute This Topic: https://lists.onap.org/mt/30867138/21656
Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to