...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
URL: https://<AAI host>:<AAI port>/aai/v14/network/connectivities/connectivity/{connectivityId} Method: Get Response Body: { ... "access-ltp-id":"ltp id", ...Request Body: { } Response Body: { "results": [ { "connectivity": { "connectivity-id": "{connectivityId}", "bandwidth-profile-name": "some profile", "vpn-type": "some type", "cir": "cir value", "eir": "eir value", "cbs": "cbs value", "ebs": "ebs value", "color-aware": "color value", "coupling-flag": "flag value", "etht-svc-name": "some name", "access-provider-id": "provider id", "access-client-id": "client id", "access-topology-id": "topology id", "access-node-id": "node id", "access-ltp-id": "ltp id", "connectivity-selflink": "some URL", "cvlan ": "some tag", "operational-status": "some status", "relationship-list": { "relationship" : [ { { "related-to" : "service-instance", "related-linkto" : "url of service-instance", "relationship-data": [ "relationshiprelated-keylink" : "service-instance.url of service-instance-id", "relationship-valuedata": "some[ id" ] }, "relationship-key": "service-instance.service-instance-id", { "related-to" : "",vpn-binding "related-link" "relationship-value": "url of vpn-binding",some id" "relationship-data": [ ] "relationship-key" : "vpn-binding.vpn-binding-id", } "relationship-value": "some id" ] ] } ]} } }] |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
From service-instance URL: URL: https://<AAI host>:<AAI port>/aai/v14/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-instance-id={servId} Derive the service-subscription URL: URL: https://<AAI host>:<AAI port>/aai/v14/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type} Method: GET Request Body: { } Response Body: { "results": [ { "service-subscription": { "service-type": "{service-type}", "temp-ub-sub-account-id": "some sub account", "service-instances": { "service-instance": [ { "service-instance-id": "some id 1", "service-instance-name": "some name 1", "environment-context": "some context 1", "workload-context": "some workload 1", "relationship-list": { "relationship" : [ ] } }, { "service-instance-id": "some id 2", "service-instance-name": "some name 2", "environment-context": "some context 2", "workload-context": "some workload 2", "relationship-list": { "relationship" : [ ] } }, { "service-instance-id": "some id 3", "service-instance-name": "some name 3", "environment-context": "some context 3", "workload-context": "some workload 3", "relationship-list": { "relationship" : [ ] } } ] }, "relationship-list": { "relationship" : [ ] } } } ] } For each item in results: - Get item.service-subscription.service-instances - For each data in service-instances: - Get service-instance object |
...