access-service-fromServiceInstance

The "access-service-fromServiceInstance" query allows a client to provide A&AI a global-customer-id a service-type for a service-subscription, and a service-instance-id to retrieve service-subscription, customer, forwarding-path, configuration, evc, forwarder, forwarder-evc, p-interface, pnf, lag-interface, and logical-link of link-type LAG.



Input

Output

Users

Release(s)

Input

Output

Users

Release(s)

global-customer-id

service-subscription

service-instance-id

service-subscription

customer

forwarding-path

configuration

evc

forwarder

forwarder-evc

p-interface

pnf

lag-interface

logical-link (of link-type LAG)



Beijing



Details

Example payload

{ "start" : ["/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id}"], "query" : "query/access-service-fromServiceInstance" }

The Traversal

Only objects at the end of a line will be returned.

service-instance service-instance > service-subscription service-subscription > customer service-instance > forwarding-path forwarding-path > configuration configuration > evc forwarding-path > forwarder forwarder > configuration configuration > forwarder-evc forwarder > p-interface p-interface > pnf forwarder > lag-interface lag-interface > pnf lag-interface > logical-link (of link-type = LAG)



Example Output

{"results": [ { "id": "163844152", "node-type": "service-instance", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION/service-instances/service-instance/SI-AAI-10391", "properties": { "service-instance-id": "SI-AAI-10391", "service-instance-name": "ServiceInstancevm230w", "service-type": "EXAMPLE_SERVICE_SUBSCRIPTION", "resource-version": "1513355016478", "orchestration-status": "Active " }, "related-to": [ { "id": "204808384", "relationship-label": "org.onap.relationships.inventory.AppliesTo", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP-AAI-10391" }, { "id": "286724168", "relationship-label": "org.onap.relationships.inventory.AppliesTo", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391" }, { "id": "204804128", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "service-subscription", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION" } ] }, { "id": "204804128", "node-type": "service-subscription", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION", "properties": { "service-type": "EXAMPLE_SERVICE_SUBSCRIPTION", "resource-version": "1513355015801" }, "related-to": [ { "id": "163844152", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "service-instance", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION/service-instances/service-instance/SI-AAI-10391" }, { "id": "204804288", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "customer", "url": "/aai/v16/business/customers/customer/customer-AAI-10391" } ] }, { "id": "204804288", "node-type": "customer", "url": "/aai/v16/business/customers/customer/customer-AAI-10391", "properties": { "global-customer-id": "customer-AAI-10391", "subscriber-name": "subscriber-namevm230w", "subscriber-type": "EXAMPLE_SERVICE_SUBSCRIPTION", "resource-version": "1513355015115" }, "related-to": [ { "id": "204804128", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "service-subscription", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION" }] }, { "id": "204808384", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP-AAI-10391", "properties": { "forwarding-path-id": "FP-AAI-10391", "forwarding-path-name": "FPNamevm230w", "resource-version": "1513355113265", "selflink": "link" }, "related-to": [ { "id": "163844152", "relationship-label": "org.onap.relationships.inventory.AppliesTo", "node-type": "service-instance", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION/service-instances/service-instance/SI-AAI-10391" }, { "id": "163848248", "relationship-label": "org.onap.relationships.inventory.Uses", "node-type": "configuration", "url": "/aai/v16/network/configurations/configuration/configuration-AAI-10391-EVC" } ] }, { "id": "163848248", "node-type": "configuration", "url": "/aai/v16/network/configurations/configuration/configuration-AAI-10391-EVC", "properties": { "configuration-id": "configuration-AAI-10391-EVC", "configuration-type": "forwarding-path", "configuration-sub-type": "evc", "resource-version": "1513355298657" }, "related-to": [ { "id": "204812480", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "evc", "url": "/aai/v16/network/configurations/configuration/configuration-AAI-10391-EVC/evcs/evc/EVC-AAI-10391" }, { "id": "204808384", "relationship-label": "org.onap.relationships.inventory.Uses", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP-AAI-10391" } ] }, { "id": "204812480", "node-type": "evc", "url": "/aai/v16/network/configurations/configuration/configuration-AAI-10391-EVC/evcs/evc/EVC-AAI-10391", "properties": { "evc-id": "EVC-AAI-10391", "resource-version": "1513355397127" }, "related-to": [ { "id": "163848248", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "configuration", "url": "/aai/v16/network/configurations/configuration/configuration-AAI-10391-EVC" }] }, { "id": "286724168", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391", "properties": { "forwarding-path-id": "FP2-AAI-10391", "forwarding-path-name": "FPName2vm230w", "resource-version": "1513355211804", "selflink": "link" }, "related-to": [ { "id": "163852344", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "forwarder", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391/forwarders/forwarder/112211" }, { "id": "163844152", "relationship-label": "org.onap.relationships.inventory.AppliesTo", "node-type": "service-instance", "url": "/aai/v16/business/customers/customer/customer-AAI-10391/service-subscriptions/service-subscription/EXAMPLE_SERVICE_SUBSCRIPTION/service-instances/service-instance/SI-AAI-10391" } ] }, { "id": "163852344", "node-type": "forwarder", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391/forwarders/forwarder/112211", "properties": { "sequence": 112211, "resource-version": "1513355538933" }, "related-to": [ { "id": "286724168", "relationship-label": "org.onap.relationships.inventory.BelongsTo", "node-type": "forwarding-path", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391" }, { "id": "122884312", "relationship-label": "org.onap.relationships.inventory.Uses", "node-type": "configuration", "url": "/aai/v16/network/configurations/configuration/configuration1-10391-forwarderEVC" } ] }, { "id": "122884312", "node-type": "configuration", "url": "/aai/v16/network/configurations/configuration/configuration1-10391-forwarderEVC", "properties": { "configuration-id": "configuration1-10391-forwarderEVC", "configuration-type": "forwarder", "configuration-sub-type": "forwarder", "resource-version": "1513355629713" }, "related-to": [ { "id": "163852344", "relationship-label": "org.onap.relationships.inventory.Uses", "node-type": "forwarder", "url": "/aai/v16/network/forwarding-paths/forwarding-path/FP2-AAI-10391/forwarders/forwarder/112211" }] } ]}