Hello Jimmy,

You can see in shared requests, I’m including relationship-list in my request 
body. But when I query the node, I am not able to see relationship list.

--
Regards,
Subhash Kumar Singh

***************************************************************************************
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!**************************************************************************************

***************************************************************************************
This e-mail and its attachments contain confidential information from HUAWEI, 
which is intended only for the person  or entity whoseaddress is listed above. 
Any use of the information contained herein in any way (including, but not   
limited to, total or partial disclosure,reproduction, or dissemination) by 
persons other than the intended recipient(s) is  prohibited. If you receive 
this e-mail in error, pleasenotify the sender by phone or email immediately and 
delete it!
***************************************************************************************

From: FORSYTH, JAMES [mailto:[email protected]]
Sent: Wednesday, August 30, 2017 9:51 PM
To: Subhash Kumar Singh <[email protected]>; 
'[email protected]' <[email protected]>
Subject: RE: [onap-discuss] Not able to see the relationship data on successful 
create relationship operation

Subhash,

The relationship needs to be contained in a relationship-list. Example:


<?xml version="1.0" encoding="UTF-8"?>
<tenant 
xmlns="http://org.openecomp.aai.inventory/v11<https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=WikKJvkNMVodSE_plqOWWi25uImD35EZtvLi1QsOgqg&e=>">
    <tenant-id>example-tenant-id-val-89637</tenant-id>
    <tenant-name>example-tenant-name-val-36717</tenant-name>
    <resource-version>1503503681119</resource-version>
    <relationship-list>
    <relationship>
               <related-to>service-subscription</related-to>
               <relationship-data>
               
<relationship-key>service-subscription.service-type</relationship-key>
               
<relationship-value>example-service-type-val-51081</relationship-value>
               </relationship-data>
               </relationship>
</relationship-list>
</tenant>

Thanks,
jimmy

From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Subhash Kumar Singh
Sent: Tuesday, August 29, 2017 12:04 PM
To: '[email protected]' 
<[email protected]<mailto:[email protected]>>
Subject: [onap-discuss] Not able to see the relationship data on successful 
create relationship operation

Hello AAI Team,

I am trying to create understand the AAI schema, as a part I tried to create 
relationship between “tenant” and “service-subscription” but
When I query “tenant” I’m not able to find relationship data

Following are the details:

Services :
{
    "service-subscription": [
        {
            "service-type": "example-service-type-val-51081",
            "temp-ub-sub-account-id": 
"example-temp-ub-sub-account-id-val-95105",
            "resource-version": "1504020309586"
        }
    ]
}


Successfully create relationship between “tenant” and “service-subscription” 
(Response 200):

aai/v11/cloud-infrastructure/cloud-regions/cloud-region/example-cloud-owner-val-44086/example-cloud-region-id-val-67393/tenants/tenant/example-tenant-id-val-89637<https://urldefense.proofpoint.com/v2/url?u=https-3A__192.168.17.111-3A8443_aai_v11_cloud-2Dinfrastructure_cloud-2Dregions_cloud-2Dregion_example-2Dcloud-2Downer-2Dval-2D44086_example-2Dcloud-2Dregion-2Did-2Dval-2D67393_tenants_tenant_example-2Dtenant-2Did-2Dval-2D89637&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=qQhFwbNRuQtqMpgzDvDEdc1iPaV4gpjCm66cka3eZD0&e=>
<?xml version="1.0" encoding="UTF-8"?>
<tenant 
xmlns="http://org.openecomp.aai.inventory/v11<https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=WikKJvkNMVodSE_plqOWWi25uImD35EZtvLi1QsOgqg&e=>">
    <tenant-id>example-tenant-id-val-89637</tenant-id>
    <tenant-name>example-tenant-name-val-36717</tenant-name>
    <resource-version>1503503681119</resource-version>

    <relationship 
xmlns="http://org.openecomp.aai.inventory/v11<https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=WikKJvkNMVodSE_plqOWWi25uImD35EZtvLi1QsOgqg&e=>">
               <related-to>service-subscription</related-to>
               <relationship-data>
               
<relationship-key>service-subscription.service-type</relationship-key>
               
<relationship-value>example-service-type-val-51081</relationship-value>
               </relationship-data>
               </relationship>
</tenant>

Get tenant details (no realation-ship data):

aai/v11/cloud-infrastructure/cloud-regions/cloud-region/example-cloud-owner-val-44086/example-cloud-region-id-val-67393/tenants/tenant/example-tenant-id-val-89637<https://urldefense.proofpoint.com/v2/url?u=https-3A__192.168.17.111-3A8443_aai_v11_cloud-2Dinfrastructure_cloud-2Dregions_cloud-2Dregion_example-2Dcloud-2Downer-2Dval-2D44086_example-2Dcloud-2Dregion-2Did-2Dval-2D67393_tenants_tenant_example-2Dtenant-2Did-2Dval-2D89637&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=qQhFwbNRuQtqMpgzDvDEdc1iPaV4gpjCm66cka3eZD0&e=>

<?xml version="1.0" encoding="UTF-8"?>
<tenant 
xmlns="http://org.openecomp.aai.inventory/v11<https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v11&d=DwMFbw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=bDq_BAg1Cmfi52BDc6ra4kspwcGUMaB8rCV6AVrfZbY&s=WikKJvkNMVodSE_plqOWWi25uImD35EZtvLi1QsOgqg&e=>">
<tenant-id>example-tenant-id-val-89637</tenant-id>
<tenant-name>example-tenant-name-val-36717</tenant-name>
<resource-version>1504020829382</resource-version>
</tenant>

Please let me know if I need to pass any additional parameter to see the 
relationship data.

--
Regards,
Subhash Kumar Singh

***************************************************************************************
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!**************************************************************************************

***************************************************************************************
This e-mail and its attachments contain confidential information from HUAWEI, 
which is intended only for the person  or entity whoseaddress is listed above. 
Any use of the information contained herein in any way (including, but not   
limited to, total or partial disclosure,reproduction, or dissemination) by 
persons other than the intended recipient(s) is  prohibited. If you receive 
this e-mail in error, pleasenotify the sender by phone or email immediately and 
delete it!
***************************************************************************************

_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to