diff --git a/v1/Application.cfc b/v1/Application.cfc
index ce54dfe..1be4ff5 100644
--- a/v1/Application.cfc
+++ b/v1/Application.cfc
@@ -51,7 +51,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="Deck API";
- variables.framework.docs.APIVersion="0.122"; /*$ git config --global --unset user.password*/
+ variables.framework.docs.APIVersion="0.123"; /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
diff --git a/v1/resources/instance.cfc b/v1/resources/instance.cfc
index 64f6626..2241c9e 100644
--- a/v1/resources/instance.cfc
+++ b/v1/resources/instance.cfc
@@ -363,7 +363,7 @@
-
+
diff --git a/v1/resources/instance_operation_default.cfc b/v1/resources/instance_operation_default.cfc
index b5272be..34c9df7 100644
--- a/v1/resources/instance_operation_default.cfc
+++ b/v1/resources/instance_operation_default.cfc
@@ -228,48 +228,5 @@
-
-
- select distinct r.resource_realm, r.sort
- from resource_realm r
- join resource_realm_access a on
- (r.resource_realm_id=a.resource_realm_id
- AND (a.contract_id=
- OR a.contract_id=0) /*0 means access to any contract*/
- AND a.is_enabled)
- join svc s on r.resource_realm_type_id=s.resource_realm_type_id
- where s.svc_id=
- order by r.sort, r.resource_realm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- --->
-
\ No newline at end of file
diff --git a/v1/resources/instance_operation_run.cfc b/v1/resources/instance_operation_run.cfc
index a13c33b..d9eb3a6 100644
--- a/v1/resources/instance_operation_run.cfc
+++ b/v1/resources/instance_operation_run.cfc
@@ -129,10 +129,6 @@
-
insert into instance_operation_param (instance_operation_uid,param,param_value)
@@ -360,7 +356,9 @@
-
+
select sop.svc_operation_cfs_param
@@ -392,8 +390,7 @@
where io.instance_operation_uid=
-
-
+
select r.resource_realm_id, r.resource_realm, sop.svc_operation_cfs_param, iop.param_value, a.contract_id, a.is_enabled
from instance_operation_cfs_param iop
@@ -419,17 +416,27 @@
-
+
+ --->
+
+ select sop.svc_operation_param
+ from instance_operation io
+ join instance e on (io.instance_uid=e.instance_uid)
+ join svc_operation so on (e.service_id=so.svc_id AND io.operation=so.operation)
+ join svc_operation_param sop on (so.svc_operation_id=sop.svc_operation_id)
+ where io.instance_operation_uid=
+ AND LOWER(sop.svc_operation_param)=LOWER('resourceRealm')
+
-
+
+
select io.operation
@@ -447,7 +454,7 @@
where io.instance_operation_uid=
-
+
select r.resource_realm_id, r.resource_realm, iop.param, iop.param_value, a.contract_id, a.is_enabled
from resource_realm r