Function Management

<p><strong>1.&nbsp;Log on Function Compute</strong></p> <p>Unfold the Menu on the left after successful login, and choose All Products &ndash; Compute &ndash; Function Compute to enter into the overview page</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183319-1ea5ac1a9971.png" style="height:416px; width:830px" /></p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183618-136ee3d59e6a.png" style="height:418px; width:830px" /></p> <p>&nbsp;</p> <p><strong>2. View the Function List</strong></p> <p>Click the Function Management on the left to enter the Function List. You can select the region and view the functions created by current tenants.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183525-1320457c9579.png" style="height:419px; width:830px" /></p> <p>&nbsp;</p> <p><strong>3. Create a function</strong></p> <p><strong>(1)&nbsp;</strong><strong>Set basic configuration of the function</strong></p> <p>Requirements for the entry of Java function or zip package function.</p> <ul> <li>Full class name + method name for java, such as: com.paic.faas.action.APIGateway2OBS2Face</li> <li>Entry method name in index.js for nodejs</li> <li>Entry method name in index.js for python2 and python3</li> </ul> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183641-1828d0f19012.png" style="height:418px; width:830px" /></p> <p><strong>(2)&nbsp;</strong><strong>Function codes</strong></p> <p>Two options for function codes, online editing and local upload.</p> <p><strong>1)&nbsp;</strong><strong>Online editing</strong></p> <p>For simple functions without dependency, such as the simple codes below, the input and output of the function have to be in json format.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183714-108aed6492a7.png" style="height:419px; width:830px" /></p> <p><strong>2)&nbsp;</strong><strong>Local upload</strong></p> <p>Online editing is sufficient for simple functions. However, for complicated functions that need to be split into multiple functions and files, local upload is recommended. And functions written in JAVA can only be locally uploaded. The packaging rules for a specific language are detailed in the development documentation.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183725-10b349659714.png" style="height:417px; width:830px" /></p> <p><strong>(3)&nbsp;</strong><strong>Triggering mode </strong></p> <p>You may bind the function with multiple triggers. Click the &ldquo;Complete&rdquo; to finish the function creation.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183735-1d3c890097b5.png" style="height:417px; width:830px" /></p> <p>&nbsp;</p> <p><strong>4. Manage the function details</strong></p> <p><strong>(1)&nbsp;</strong><strong>Change the function settings</strong></p> <p>Enter into the details page, click [Function settings], and click [Edit] on the right side of [Function settings] navigation bar to change the basic configuration.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183807-1d2bbdd897ee.png" style="height:417px; width:830px" /></p> <p><strong>(2)&nbsp;</strong><strong>View call logs</strong></p> <p>Click [Call Log] to view the logs by date, hour and call status, and click the right side to see details of call logs.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183824-1c186d479ab3.png" style="height:419px; width:830px" /></p> <p><strong>(3)&nbsp;</strong><strong>Function test</strong></p> <p>Click [Function Test] on the right page of details, input test parameters in &ldquo;Test Parameters (JSON format), click [Start Test] and result output in json will be presented in the [Test Results] on the right.</p> <p><img src="https://obs-cn-shanghai.yun.pingan.com/pacloud/20191801183947-15a6fae79d3e.png" style="height:418px; width:830px" /></p> <p>&nbsp;</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products