forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
24 lines
7.5 KiB
HTML
24 lines
7.5 KiB
HTML
<a name="functiongraph_01_0320"></a><a name="functiongraph_01_0320"></a>
|
|
|
|
<h1 class="topictitle1">Function Management</h1>
|
|
<div id="body32001227"><div class="section" id="functiongraph_01_0320__en-us_topic_0000001258995898_section772915245158"><h4 class="sectiontitle">Overview</h4><p id="functiongraph_01_0320__en-us_topic_0000001258995898_p32581415485">Function is a combination of code, runtime, resources, and settings required to achieve a specific purpose. It is the minimum unit that can run independently. A function can be triggered by triggers and automatically schedule required resources and environments to achieve expected results.</p>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_0320__en-us_topic_0000001258995898_section041384015361"><h4 class="sectiontitle">Exporting a Function</h4><p id="functiongraph_01_0320__en-us_topic_0000001258995898_p1631617363388">You can export the functions that you created.</p>
|
|
<ol id="functiongraph_01_0320__en-us_topic_0000001258995898_ol14811318105420"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1848115181549"><span>Log in to the FunctionGraph console, and choose <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b12354193510411">Functions</strong> > <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b735453515418">Function List</strong> in the navigation pane.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li191221718115517"><span>Click a function name.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li118352114573"><span>On the displayed function details page, choose <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b0205103715415">Operation</strong> > <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b16205153718410">Export Function</strong> in the upper right corner.</span><p><div class="note" id="functiongraph_01_0320__en-us_topic_0000001258995898_note0805781516"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="functiongraph_01_0320__en-us_topic_0000001258995898_ul368491815114"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li12684151817120">A user can export only one function at a time.</li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li109416125919">The exported function resource package cannot exceed 50 MB.</li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li951031443">The name of the exported function resource package is in the format of <em id="functiongraph_01_0320__en-us_topic_0000001258995898_i98519429417">function name</em>+<em id="functiongraph_01_0320__en-us_topic_0000001258995898_i4915421042">MD5 value of function code</em>.zip.</li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1211493912412">The exported function resource package does not include alias information.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_0320__en-us_topic_0000001258995898_section172081944916"><h4 class="sectiontitle">Disabling a Function</h4><p id="functiongraph_01_0320__en-us_topic_0000001258995898_p19662173334918">Disabled functions can no longer be executed.</p>
|
|
<ol id="functiongraph_01_0320__en-us_topic_0000001258995898_ol947724013812"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1147724015385"><span>Return to the FunctionGraph console, and choose <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b15194143749">Functions</strong> > <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b119414433412">Function List</strong> in the navigation pane.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li5628195616384"><span>Click the name of the function you want to disable.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1411318461442"><span>On the displayed function details page, click <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b1219247444">Disable Function</strong> in the upper right corner.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1545581554620"><span>On the displayed page, click <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b52781350145">Yes</strong>. The function is disabled.</span><p><div class="note" id="functiongraph_01_0320__en-us_topic_0000001258995898_note64980178597"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="functiongraph_01_0320__en-us_topic_0000001258995898_ul41031750104617"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li8104135013465">Only functions of the latest version can be disabled.</li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li131041250194613">Versions published based on the disabled latest version of a function are also disabled and can never be enabled.</li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li121052050174616">After disabling a function, you can modify its code but cannot execute the function.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_0320__en-us_topic_0000001258995898_section820203111325"><h4 class="sectiontitle">Enabling a Function</h4><p id="functiongraph_01_0320__en-us_topic_0000001258995898_p13624164112326">Disabled functions can be enabled again as required.</p>
|
|
<ol id="functiongraph_01_0320__en-us_topic_0000001258995898_ol10726121153416"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1572612111345"><span>Return to the FunctionGraph console, and choose <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b545854115473">Functions</strong> > <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b1245894114479">Function List</strong> in the navigation pane.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li5913132113375"><span>Click the name of the function you want to enable.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li7831174974216"><span>On the displayed function details page, click <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b572916588410">Enable Function</strong> in the upper right corner.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="functiongraph_01_0320__en-us_topic_0000001258995898_section679611253718"><h4 class="sectiontitle">Deleting a Function</h4><p id="functiongraph_01_0320__en-us_topic_0000001258995898_p760994133712">You can delete unused functions to release resources.</p>
|
|
<ol id="functiongraph_01_0320__en-us_topic_0000001258995898_ol165101140509"><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li75101146508"><span>Return to the FunctionGraph console, and choose <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b5614543184719">Functions</strong> > <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b2061474394713">Function List</strong> in the navigation pane.</span></li><li id="functiongraph_01_0320__en-us_topic_0000001258995898_li1580214470149"><span>In the <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b10233191454613">Function List</strong>, locate the row that contains the target function and click <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b146161039124614">Delete</strong> in the operation column. In the displayed dialog box, enter <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b941815414813">DELETE</strong> and click <strong id="functiongraph_01_0320__en-us_topic_0000001258995898_b1889752713329">OK</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
|