Hi David,

The GET URL used the singular "metadatum" which expects only to return a 
singular object, hence it gives the error about the mismatch.

The "metaname" key is not globally unique, it is only locally unique to its 
containing object, i.e. the service-instance in the BBS use case.
The "cvlan" metaname thus refers to many objects in the /nodes/ query and needs 
to be returned in a list of objects.

To match the return types for a list of objects, use the plural name "metadata" 
in the URL and add the metaname as criteria using query parameters e.g.

GET /aai/v16/nodes/metadata?metaname=cvlan

In order to DELETE an object, you need to match the resource-version for it, so 
you need to identify a specific instance (there are no batch DELETE methods).

To GET and DELETE a specific instance of metadatum having metaname=cvlan, you 
could use the full URL path rather than the /nodes/ query path, e.g. 

GET 
/aai/v16/business/customers/customer/{customerName}/service-subscriptions/service-subscription/{serviceType}/service-instances/service-instance/{serviceInstanceId}/metadata/metadatum/cvlan

DELETE 
/aai/v16/business/customers/customer/{customerName}/service-subscriptions/service-subscription/{serviceType}/service-instances/service-instance/{serviceInstanceId}/metadata/metadatum/cvlan?resource-version=1559200312325

Keong


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

View/Reply Online (#17367): https://lists.onap.org/g/onap-discuss/message/17367
Mute This Topic: https://lists.onap.org/mt/31878112/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to