Versions Compared

Key

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

The "genericVnfs-fromPserver" query is a more efficient version of the vnfs-fromPserver query, and allows a client to provide A&AI with a pserver hostname and retrieve the generic-vnfs related to it. This query also supports pre-filtering the vnf results.

...

InputOutputUsersRelease(s)

pserver

optional vnfType, nfRole, nfNamingCode, and/or nfFunction

generic-vnfs
Casablanca


Details

...

Code Block
languagejs
{ 
"start":["cloud-infrastructure/pservers?fqdn={fqdn}"],
"query":"query/genericVnfs-fromPserver?vnfType={vnf-type}&nfFunction={nf-function}"
}

OR

{ 
"start":["cloud-infrastructure/pservers?hostname={hostname}"],
"query":"query/genericVnfs-fromPserver?nfNamingCode={nf-naming-code}"
}


The Traversal

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

Code Block
pserver > generic-vnf
pserver > vserver > generic-vnf

Example Output

Code Block
languagejs
{
    "results": [
        {
            "id": "124981392",
            "node-type": "generic-vnf",
            "url": "/aai/v15/network/generic-vnfs/generic-vnf/71a31568-a2a8-4505-a303-d3a486ff24e5",
            "properties": {
                "vnf-id": "71a31568-a2a8-4505-a303-d3a486ff24e5",
                "vnf-name": "US2929ORLFL0136UJDM06",
                "vnf-type": "DM",
                "service-id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
                "prov-status": "PROV",
                "equipment-role": "UCPE",
                "orchestration-status": "Activated",
                "ipv4-oam-address": "12.80.1.17",
                "nm-lan-v6-address": "2001:1890:e00e:fffe::dc01",
                "vmemory-units": "",
                "vdisk-units": "",
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "resource-version": "1518401336774",
                "nm-profile-name": "CP_PROFILE_AVPN_DM_SNMP_shared"
            },
            "related-to": [
                {
                    "id": "280850472",
                    "relationship-label": "org.onap.relationships.inventory.ComposedOf",
                    "node-type": "service-instance",
                    "url": "/aai/v15/business/customers/customer/300HDV/service-subscriptions/service-subscription/uCPE/service-instances/service-instance/12cc7627-cce5-4011-b342-1a3891017aba"
                },
                {
                    "id": "25850048",
                    "relationship-label": "tosca.relationships.HostedOn",
                    "node-type": "pserver",
                    "url": "/aai/v15/cloud-infrastructure/pservers/pserver/US2929ORLFL0136UJZZ01"
                }
            ]
        },
        {
            "id": "141865152",
            "node-type": "generic-vnf",
            "url": "/aai/v15/network/generic-vnfs/generic-vnf/9efb0471-8f30-4f7f-9225-57778a2bcdef",
            "properties": {
                "vnf-id": "9efb0471-8f30-4f7f-9225-57778a2bcdef",
                "vnf-name": "US2929ORLFL0136UVHN01",
                "vnf-type": "HN",
                "service-id": "ebc3bc3d-62fd-4a3f-a037-f619df4ff034",
                "prov-status": "PROV",
                "equipment-role": "UCPE",
                "orchestration-status": "Activated",
                "management-option": "AT&T Managed-Basic",
                "ipv4-oam-address": "12.80.1.21",
                "nm-lan-v6-address": "2001:1890:e00e:fffe::dc05",
                "vcpu": 2,
                "vmemory": 4,
                "vmemory-units": "GB",
                "vdisk": 8,
                "vdisk-units": "GB",
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "resource-version": "1539267371623",
                "nm-profile-name": "CP_PROFILE_AVPN_HN_SNMP_AVPN_HN_SNMP_shared"
            },
            "related-to": [
                {
                    "id": "29900944",
                    "relationship-label": "org.onap.relationships.inventory.ComposedOf",
                    "node-type": "service-instance",
                    "url": "/aai/v15/business/customers/customer/300HDV/service-subscriptions/service-subscription/DHV/service-instances/service-instance/9e288bd5-81c2-492a-87a1-1cb924ef3cd7"
                },
                {
                    "id": "53162112",
                    "relationship-label": "org.onap.relationships.inventory.BelongsTo",
                    "node-type": "entitlement",
                    "url": "/aai/v15/network/generic-vnfs/generic-vnf/9efb0471-8f30-4f7f-9225-57778a2bcdef/entitlements/entitlement/92718B2A0F91410B912F2A2C87AAA307/SFW4E2E3105645"
                },
                {
                    "id": "178462760",
                    "relationship-label": "org.onap.relationships.inventory.BelongsTo",
                    "node-type": "entitlement",
                    "url": "/aai/v15/network/generic-vnfs/generic-vnf/9efb0471-8f30-4f7f-9225-57778a2bcdef/entitlements/entitlement/1EEF79979AD14EE498D31A7EF9DC9004/SFW4E2E3105661"
                },
                {
                    "id": "83234944",
                    "relationship-label": "tosca.relationships.HostedOn",
                    "node-type": "vserver",
                    "url": "/aai/v15/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/US2929ORLFL0136UJZZ01%3A%3AuCPE/vservers/vserver/0357c973-2d7b-4d1b-8282-3a67b9da0ff4"
                },
                {
                    "id": "118546544",
                    "relationship-label": "org.onap.relationships.inventory.Uses",
                    "node-type": "vnf-image",
                    "url": "/aai/v15/service-design-and-creation/vnf-images/vnf-image/937a2c2e-2bbd-4fe6-886c-e6b912bd718e"
                }
            ]
        },
        {
            "id": "27107488",
            "node-type": "generic-vnf",
            "url": "/aai/v15/network/generic-vnfs/generic-vnf/02d053c0-a2a0-4076-9c69-d09aad971e28",
            "properties": {
                "vnf-id": "02d053c0-a2a0-4076-9c69-d09aad971e28",
                "vnf-name": "US2929ORLFL0136UJSW04",
                "vnf-type": "SW",
                "service-id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
                "prov-status": "PROV",
                "equipment-role": "UCPE",
                "orchestration-status": "Activated",
                "ipv4-oam-address": "12.80.1.20",
                "nm-lan-v6-address": "2001:1890:e00e:fffe::dc04",
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "resource-version": "1516639583782",
                "nm-profile-name": "CP_PROFILE_AVPN_SW_SNMP_shared"
            },
            "related-to": [
                {
                    "id": "280850472",
                    "relationship-label": "org.onap.relationships.inventory.ComposedOf",
                    "node-type": "service-instance",
                    "url": "/aai/v15/business/customers/customer/300HDV/service-subscriptions/service-subscription/uCPE/service-instances/service-instance/12cc7627-cce5-4011-b342-1a3891017aba"
                },
                {
                    "id": "185483392",
                    "relationship-label": "tosca.relationships.HostedOn",
                    "node-type": "vserver",
                    "url": "/aai/v15/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/US2929ORLFL0136UJZZ01%3A%3AuCPE/vservers/vserver/b0bffe38-4cb7-44e5-913f-3a9790a59a6f"
                }
            ]
        },
        {
            "id": "110780608",
            "node-type": "generic-vnf",
            "url": "/aai/v15/network/generic-vnfs/generic-vnf/33621b1e-c32c-42b8-8e11-14ae51759363",
            "properties": {
                "vnf-id": "33621b1e-c32c-42b8-8e11-14ae51759363",
                "vnf-name": "US2929ORLFL0136UJTE10",
                "vnf-type": "TE",
                "service-id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
                "prov-status": "PROV",
                "equipment-role": "UCPE",
                "orchestration-status": "Activated",
                "ipv4-oam-address": "12.80.1.19",
                "nm-lan-v6-address": "2001:1890:e00e:fffe::dc03",
                "in-maint": false,
                "is-closed-loop-disabled": false,
                "resource-version": "1516639583080",
                "nm-profile-name": "CP_PROFILE_*ANY_TE_SNMP_TE_SNMP_Profile"
            },
            "related-to": [
                {
                    "id": "280850472",
                    "relationship-label": "org.onap.relationships.inventory.ComposedOf",
                    "node-type": "service-instance",
                    "url": "/aai/v15/business/customers/customer/300HDV/service-subscriptions/service-subscription/uCPE/service-instances/service-instance/12cc7627-cce5-4011-b342-1a3891017aba"
                },
                {
                    "id": "370032800",
                    "relationship-label": "tosca.relationships.HostedOn",
                    "node-type": "vserver",
                    "url": "/aai/v15/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/US2929ORLFL0136UJZZ01%3A%3AuCPE/vservers/vserver/7675f45c-6eb7-4eb1-8a60-62761385d747"
                },
                {
                    "id": "60018832",
                    "relationship-label": "org.onap.relationships.inventory.Uses",
                    "node-type": "ipsec-configuration",
                    "url": "/aai/v15/network/ipsec-configurations/ipsec-configuration/61afcbc8-a8d2-4114-9d9f-8e4d603c1f59"
                }
            ]
        }
    ]
}