2012-12-28 17:45:48 +01:00
|
|
|
<!--
|
|
|
|
Retrieves the list of RunningInstances on a GHN.
|
|
|
|
Params:
|
|
|
|
RES_ID - the GHN id on which lookup the RIs
|
|
|
|
Result sample:
|
|
|
|
<Resource>
|
|
|
|
<ID>8ced4e40-ecf1-11df-95dd-c203e806a114</ID>
|
|
|
|
<ServiceName>ResourceManager</ServiceName>
|
|
|
|
<ServiceClass>VREManagement</ServiceClass>
|
|
|
|
<ServiceVersion>1.0.1</ServiceVersion>
|
|
|
|
<MainVersion>2.00.00</MainVersion>
|
|
|
|
<Status>ready</Status>
|
|
|
|
</Resource>
|
|
|
|
-->
|
2020-09-25 12:40:45 +02:00
|
|
|
|
|
|
|
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
|
|
|
|
for $ris in collection('/db/Profiles/RunningInstance')//Document/Data/ic:Profile/Resource
|
|
|
|
where $ris/Profile/GHN/@UniqueID/string() eq '<RES_ID/>'
|
2012-12-28 17:45:48 +01:00
|
|
|
return
|
2013-09-12 18:47:59 +02:00
|
|
|
<RESOURCE/>
|