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="" style="height:416px; width:830px" /></p> <p><img src="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" style="height:418px; width:830px" /></p> <p>&nbsp;</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us


Email us

Online customer service

Instant reply

Technical Support

cloud products