select o.svc_operation_id o.svc_id o.operation o.url o.descr o.man from svc_operation o where o.svc_operation_id= select instance_data->'params' as params, instance_data::text as instance_data from instance_state where instance_uid= order by version desc limit 1 select p.svc_operation_cfs_param_id p.svc_operation_cfs_param p.label p.data_type null as data_descriptor p.value_list >p.func p.ref_svc_id p.is_required p.default_value p.default_compute p.regex p.unique_scope p.maxlength p.minlength p.maxvalue p.minvalue p.descr p.man p.sort p.nested_ref p.config::text null as nested_ref_data p.state_path ( select 1 from svc_operation_cfs_param m join svc_operation om on (m.svc_operation_id=om.svc_operation_id) join svc_operation oc on (om.svc_id=oc.svc_id AND om.operation='modify' AND oc.operation='create') join svc_operation_cfs_param c on (oc.svc_operation_id=c.svc_operation_id AND m.svc_operation_cfs_param=c.svc_operation_cfs_param) where c.svc_operation_cfs_param_id=p.svc_operation_cfs_param_id order by c.svc_operation_cfs_param_id limit 1 ) as is_modifiable p.is_sensitive from svc_operation_cfs_param p where p.svc_operation_id= order by p.sort, p.svc_operation_cfs_param_id select sp.svc_operation_cfs_param_id ,sp.svc_operation_cfs_subparam_id ,sp.svc_operation_cfs_subparam ,sp.label ,sp.data_type ,sp.value_list ,sp.is_required ,sp.descr ,sp.man ,sp.default_value ,sp.minlength ,sp.maxlength ,sp.regex ,sp.sort ,sp.is_sensitive from svc_operation_cfs_subparam sp where sp.svc_operation_cfs_param_id= order by sp.sort