forked from community/device-mgt-plugins
parent
c162f379b4
commit
ed0b40215a
@ -1,54 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Binary Security Token Service" context="/api/device-mgt/windows/v1.0/federated">
|
|
||||||
<resource methods="HEAD DELETE POST GET OPTIONS PATCH PUT" url-mapping="/*" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="isDefault" expression="$trp:WSO2_AM_API_DEFAULT_VERSION"/>
|
|
||||||
<filter source="$ctx:isDefault" regex="true">
|
|
||||||
<then>
|
|
||||||
<log level="custom">
|
|
||||||
<property name="STATUS" value="Faulty invoking through default API.Dropping message to avoid recursion.."/>
|
|
||||||
</log>
|
|
||||||
<payloadFactory media-type="xml">
|
|
||||||
<format>
|
|
||||||
<am:fault xmlns:am="http://wso2.org/apimanager">
|
|
||||||
<am:code>500</am:code>
|
|
||||||
<am:type>Status report</am:type>
|
|
||||||
<am:message>Internal Server Error</am:message>
|
|
||||||
<am:description>Faulty invoking through default API</am:description>
|
|
||||||
</am:fault>
|
|
||||||
</format>
|
|
||||||
<args/>
|
|
||||||
</payloadFactory>
|
|
||||||
<property name="HTTP_SC" value="500" scope="axis2"/>
|
|
||||||
<property name="RESPONSE" value="true"/>
|
|
||||||
<header name="To" action="remove"/>
|
|
||||||
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
|
|
||||||
<property name="ContentType" scope="axis2" action="remove"/>
|
|
||||||
<property name="Authorization" scope="transport" action="remove"/>
|
|
||||||
<property name="Host" scope="transport" action="remove"/>
|
|
||||||
<property name="Accept" scope="transport" action="remove"/>
|
|
||||||
<send/>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<header name="WSO2_AM_API_DEFAULT_VERSION" scope="transport" value="true"/>
|
|
||||||
<property name="uri.var.portnum" expression="get-property('http.nio.port')"/>
|
|
||||||
<send>
|
|
||||||
<endpoint>
|
|
||||||
<http uri-template="http://localhost:{uri.var.portnum}/api/device-mgt/windows/v1.0/federated/1.0.0">
|
|
||||||
<timeout>
|
|
||||||
<duration>60000</duration>
|
|
||||||
<responseAction>fault</responseAction>
|
|
||||||
</timeout>
|
|
||||||
</http>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.SynapsePropertiesHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
@ -1,42 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Binary Security Token Service" context="/api/device-mgt/windows/v1.0/federated/1.0.0" version="1.0.0" version-type="context">
|
|
||||||
<resource methods="POST" url-mapping="/authentication" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Binary Security Token Service_APIproductionEndpoint_0">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/federated"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/federated"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
|
||||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler">
|
|
||||||
<property name="policyKey" value="gov:/apimgt/applicationdata/tiers.xml"/>
|
|
||||||
<property name="policyKeyApplication" value="gov:/apimgt/applicationdata/app-tiers.xml"/>
|
|
||||||
<property name="id" value="A"/>
|
|
||||||
<property name="policyKeyResource" value="gov:/apimgt/applicationdata/res-tiers.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
|
||||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
@ -1,54 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Configuration Management" context="/api/device-mgt/windows/v1.0/configuration">
|
|
||||||
<resource methods="HEAD DELETE POST GET OPTIONS PATCH PUT" url-mapping="/*" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="isDefault" expression="$trp:WSO2_AM_API_DEFAULT_VERSION"/>
|
|
||||||
<filter source="$ctx:isDefault" regex="true">
|
|
||||||
<then>
|
|
||||||
<log level="custom">
|
|
||||||
<property name="STATUS" value="Faulty invoking through default API.Dropping message to avoid recursion.."/>
|
|
||||||
</log>
|
|
||||||
<payloadFactory media-type="xml">
|
|
||||||
<format>
|
|
||||||
<am:fault xmlns:am="http://wso2.org/apimanager">
|
|
||||||
<am:code>500</am:code>
|
|
||||||
<am:type>Status report</am:type>
|
|
||||||
<am:message>Internal Server Error</am:message>
|
|
||||||
<am:description>Faulty invoking through default API</am:description>
|
|
||||||
</am:fault>
|
|
||||||
</format>
|
|
||||||
<args/>
|
|
||||||
</payloadFactory>
|
|
||||||
<property name="HTTP_SC" value="500" scope="axis2"/>
|
|
||||||
<property name="RESPONSE" value="true"/>
|
|
||||||
<header name="To" action="remove"/>
|
|
||||||
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
|
|
||||||
<property name="ContentType" scope="axis2" action="remove"/>
|
|
||||||
<property name="Authorization" scope="transport" action="remove"/>
|
|
||||||
<property name="Host" scope="transport" action="remove"/>
|
|
||||||
<property name="Accept" scope="transport" action="remove"/>
|
|
||||||
<send/>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<header name="WSO2_AM_API_DEFAULT_VERSION" scope="transport" value="true"/>
|
|
||||||
<property name="uri.var.portnum" expression="get-property('http.nio.port')"/>
|
|
||||||
<send>
|
|
||||||
<endpoint>
|
|
||||||
<http uri-template="http://localhost:{uri.var.portnum}/api/device-mgt/windows/v1.0/configuration/1.0.0">
|
|
||||||
<timeout>
|
|
||||||
<duration>60000</duration>
|
|
||||||
<responseAction>fault</responseAction>
|
|
||||||
</timeout>
|
|
||||||
</http>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.SynapsePropertiesHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
@ -1,64 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Configuration Management" context="/api/device-mgt/windows/v1.0/configuration/1.0.0" version="1.0.0" version-type="context">
|
|
||||||
<resource methods="PUT GET" url-mapping="/*" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Configuration Management_APIproductionEndpoint_0">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/configuration"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/configuration"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="GET" url-mapping="/license" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Configuration Management_APIproductionEndpoint_1">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/configuration"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/configuration"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
|
||||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler">
|
|
||||||
<property name="policyKey" value="gov:/apimgt/applicationdata/tiers.xml"/>
|
|
||||||
<property name="policyKeyApplication" value="gov:/apimgt/applicationdata/app-tiers.xml"/>
|
|
||||||
<property name="id" value="A"/>
|
|
||||||
<property name="policyKeyResource" value="gov:/apimgt/applicationdata/res-tiers.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
|
||||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
@ -1,54 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Device Management Administrative Service" context="/api/device-mgt/windows/v1.0/admin/devices">
|
|
||||||
<resource methods="HEAD DELETE POST GET OPTIONS PATCH PUT" url-mapping="/*" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="isDefault" expression="$trp:WSO2_AM_API_DEFAULT_VERSION"/>
|
|
||||||
<filter source="$ctx:isDefault" regex="true">
|
|
||||||
<then>
|
|
||||||
<log level="custom">
|
|
||||||
<property name="STATUS" value="Faulty invoking through default API.Dropping message to avoid recursion.."/>
|
|
||||||
</log>
|
|
||||||
<payloadFactory media-type="xml">
|
|
||||||
<format>
|
|
||||||
<am:fault xmlns:am="http://wso2.org/apimanager">
|
|
||||||
<am:code>500</am:code>
|
|
||||||
<am:type>Status report</am:type>
|
|
||||||
<am:message>Internal Server Error</am:message>
|
|
||||||
<am:description>Faulty invoking through default API</am:description>
|
|
||||||
</am:fault>
|
|
||||||
</format>
|
|
||||||
<args/>
|
|
||||||
</payloadFactory>
|
|
||||||
<property name="HTTP_SC" value="500" scope="axis2"/>
|
|
||||||
<property name="RESPONSE" value="true"/>
|
|
||||||
<header name="To" action="remove"/>
|
|
||||||
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
|
|
||||||
<property name="ContentType" scope="axis2" action="remove"/>
|
|
||||||
<property name="Authorization" scope="transport" action="remove"/>
|
|
||||||
<property name="Host" scope="transport" action="remove"/>
|
|
||||||
<property name="Accept" scope="transport" action="remove"/>
|
|
||||||
<send/>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<header name="WSO2_AM_API_DEFAULT_VERSION" scope="transport" value="true"/>
|
|
||||||
<property name="uri.var.portnum" expression="get-property('http.nio.port')"/>
|
|
||||||
<send>
|
|
||||||
<endpoint>
|
|
||||||
<http uri-template="http://localhost:{uri.var.portnum}/api/device-mgt/windows/v1.0/admin/devices/1.0.0">
|
|
||||||
<timeout>
|
|
||||||
<duration>60000</duration>
|
|
||||||
<responseAction>fault</responseAction>
|
|
||||||
</timeout>
|
|
||||||
</http>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.SynapsePropertiesHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
@ -1,174 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="admin--Windows Device Management Administrative Service" context="/api/device-mgt/windows/v1.0/admin/devices/1.0.0" version="1.0.0" version-type="context">
|
|
||||||
<resource methods="POST" url-mapping="/lock-devices" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_0">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/location" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_1">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/reboot" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_2">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/wipe-devices" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_3">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/ring-devices" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_4">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/disenroll-devices" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_5">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<resource methods="POST" url-mapping="/lock-reset-devices" faultSequence="fault">
|
|
||||||
<inSequence>
|
|
||||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
|
||||||
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
|
|
||||||
<then>
|
|
||||||
<send>
|
|
||||||
<endpoint name="admin--Windows Device Management Administrative Service_APIproductionEndpoint_6">
|
|
||||||
<http uri-template="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
<property name="ENDPOINT_ADDRESS" value="https://localhost:9443/api/device-mgt/windows/v1.0/admin/devices"/>
|
|
||||||
</endpoint>
|
|
||||||
</send>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<sequence key="_sandbox_key_error_"/>
|
|
||||||
</else>
|
|
||||||
</filter>
|
|
||||||
</inSequence>
|
|
||||||
<outSequence>
|
|
||||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
|
||||||
<send/>
|
|
||||||
</outSequence>
|
|
||||||
</resource>
|
|
||||||
<handlers>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
|
||||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler">
|
|
||||||
<property name="policyKey" value="gov:/apimgt/applicationdata/tiers.xml"/>
|
|
||||||
<property name="policyKeyApplication" value="gov:/apimgt/applicationdata/app-tiers.xml"/>
|
|
||||||
<property name="id" value="A"/>
|
|
||||||
<property name="policyKeyResource" value="gov:/apimgt/applicationdata/res-tiers.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
|
||||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
|
||||||
</handler>
|
|
||||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
|
||||||
</handlers>
|
|
||||||
</api>
|
|
Loading…
Reference in new issue