FG API 20250630 version

Reviewed-by: Topchii, Maria <mtopchii@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: chenjunjie <chenjunjie@huawei.com>
Co-committed-by: chenjunjie <chenjunjie@huawei.com>
This commit is contained in:
2025-11-18 12:28:20 +00:00
committed by zuul
parent bd13b1d3a9
commit 2d02dc5d79
30 changed files with 2820 additions and 4129 deletions

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -12,7 +12,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -23,8 +23,6 @@
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_23_1031_01.html">Querying Function Tags</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_23_1031_01.html">Querying Function Tags</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_23_1031_02.html">Querying ServiceBridge Functions Bound to a Specified Function</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="functiongraph_06_1022.html">Querying Resource Tags</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_06_1022.html">Querying Resource Tags</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_06_1021.html">Querying Resources</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_06_1021.html">Querying Resources</a></strong><br>
@ -35,12 +33,10 @@
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_23_1031_04.html">Updating the Pinning Status of a Function</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_23_1031_04.html">Updating the Pinning Status of a Function</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_23_1031_03.html">Querying the Available ServiceBridge Version</a></strong><br>
</li>
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -7,12 +7,12 @@
<ul class="ullinks"> <ul class="ullinks">
<li class="ulchildlink"><strong><a href="functiongraph_06_0145.html">Querying the Log Group and Stream of a Function</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_06_0145.html">Querying the Log Group and Stream of a Function</a></strong><br>
</li> </li>
<li class="ulchildlink"><strong><a href="functiongraph_06_0112_01.html">Enabling Log Reporting to LTS</a></strong><br> <li class="ulchildlink"><strong><a href="functiongraph_06_0112_01.html">Enabling the Function of Reporting Logs to LTS</a></strong><br>
</li> </li>
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -12,7 +12,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -10,7 +10,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
<a name="FunctionTriggers"></a><a name="FunctionTriggers"></a> <a name="FunctionTriggers"></a><a name="FunctionTriggers"></a>
<h1 class="topictitle1">Function Triggers</h1> <h1 class="topictitle1">Function Triggers</h1>
<div><p> </p> <div id="body0000002412783488"><p id="FunctionTriggers__p174266771061"> </p>
</div> </div>
<div> <div>
<ul class="ullinks"> <ul class="ullinks">
@ -20,7 +20,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -14,7 +14,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -10,7 +10,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -18,7 +18,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

View File

@ -22,7 +22,7 @@
</ul> </ul>
<div class="familylinks"> <div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">APIs</a></div> <div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_06_1704.html">API</a></div>
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff

View File

@ -368,6 +368,15 @@
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0108__p1865545025514">Indicates whether to enable the log feature. Default: false. If this parameter is set to true and log_config is not passed when a function is created, FunctionGraph automatically creates a log group and log stream.</p> <td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0108__p1865545025514">Indicates whether to enable the log feature. Default: false. If this parameter is set to true and log_config is not passed when a function is created, FunctionGraph automatically creates a log group and log stream.</p>
</td> </td>
</tr> </tr>
<tr id="functiongraph_06_0108__row10686105995915"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0108__p156863597599">domain_names</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0108__p1468685985910">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0108__p17686125911590">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0108__p19686659155913">Private domain names of the VPC. To call a DNS API to resolve private domain names, specify an agency with the permissions to read DNS resources.</p>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
</li><li id="functiongraph_06_0204__li188288813429">Define a FunctionGraph function.<p id="functiongraph_06_0204__p9194425443"><a name="functiongraph_06_0204__li188288813429"></a><a name="li188288813429"></a>Open a text editor, define a function, and save the function file as <strong id="functiongraph_06_0204__b1195569185918">index.py</strong> under the same directory as the <strong id="functiongraph_06_0204__b8955119125920">helloworld.py</strong> file. The function code is as follows:</p> </li><li id="functiongraph_06_0204__li188288813429">Define a FunctionGraph function.<p id="functiongraph_06_0204__p9194425443"><a name="functiongraph_06_0204__li188288813429"></a><a name="li188288813429"></a>Open a text editor, define a function, and save the function file as <strong id="functiongraph_06_0204__b1195569185918">index.py</strong> under the same directory as the <strong id="functiongraph_06_0204__b8955119125920">helloworld.py</strong> file. The function code is as follows:</p>
<pre class="screen" id="functiongraph_06_0204__screen0893153994618">import json <pre class="screen" id="functiongraph_06_0204__screen0893153994618">import json
import helloworld import helloworld
def handler (event, context): def handler (event, context):
output =json.dumps(event) output =json.dumps(event)
helloworld.printhello() helloworld.printhello()
@ -25,7 +25,7 @@ def handler (event, context):
<div class="section" id="functiongraph_06_0204__section17199193504710"><h4 class="sectiontitle">Step 2: Upload the Project to an OBS Bucket</h4><ol id="functiongraph_06_0204__ol24191851124820"><li id="functiongraph_06_0204__li74191151154818">In the function project, select the <strong id="functiongraph_06_0204__b1626951965917">helloworld.py</strong> and <strong id="functiongraph_06_0204__b8269171913593">index.py</strong> files and compress them into <strong id="functiongraph_06_0204__b1826991975916">fss_examples_python2.7.zip</strong>.</li><li id="functiongraph_06_0204__li1966633145116"><a name="functiongraph_06_0204__li1966633145116"></a><a name="li1966633145116"></a>Upload the <strong id="functiongraph_06_0204__b895113224599">fss_examples_python2.7.zip</strong> package to the OBS bucket and record the link URL of the OBS bucket.</li></ol> <div class="section" id="functiongraph_06_0204__section17199193504710"><h4 class="sectiontitle">Step 2: Upload the Project to an OBS Bucket</h4><ol id="functiongraph_06_0204__ol24191851124820"><li id="functiongraph_06_0204__li74191151154818">In the function project, select the <strong id="functiongraph_06_0204__b1626951965917">helloworld.py</strong> and <strong id="functiongraph_06_0204__b8269171913593">index.py</strong> files and compress them into <strong id="functiongraph_06_0204__b1826991975916">fss_examples_python2.7.zip</strong>.</li><li id="functiongraph_06_0204__li1966633145116"><a name="functiongraph_06_0204__li1966633145116"></a><a name="li1966633145116"></a>Upload the <strong id="functiongraph_06_0204__b895113224599">fss_examples_python2.7.zip</strong> package to the OBS bucket and record the link URL of the OBS bucket.</li></ol>
</div> </div>
<div class="section" id="functiongraph_06_0204__section20413632205210"><h4 class="sectiontitle">Step 3: Call the Function Creation API to Create a Function Using the Link URL of the OBS Bucket</h4><p id="functiongraph_06_0204__p14668451125116">URI: <strong id="functiongraph_06_0204__b18262164055910">POST /v2/</strong><em id="functiongraph_06_0204__i719604615596">{project_id}</em><strong id="functiongraph_06_0204__b76323421596">/fgs/functions</strong></p> <div class="section" id="functiongraph_06_0204__section20413632205210"><h4 class="sectiontitle">Step 3: Call the Function Creation API to Create a Function Using the Link URL of the OBS Bucket</h4><p id="functiongraph_06_0204__p14668451125116">URI: <strong id="functiongraph_06_0204__b18262164055910">POST /v2/</strong><em id="functiongraph_06_0204__i719604615596">{project_id}</em><strong id="functiongraph_06_0204__b76323421596">/fgs/functions</strong></p>
<p id="functiongraph_06_0204__p19789173461318">For details, see <a href="functiongraph_06_0108.html">Creating a Function</a>.</p> <p id="functiongraph_06_0204__p19789173461318">For details about the API, see <a href="functiongraph_06_0108.html">Creating a Function</a>.</p>
<ul id="functiongraph_06_0204__ul104224515521"><li id="functiongraph_06_0204__li5840141415149">Sample request<pre class="screen" id="functiongraph_06_0204__screen795591013534">POST https://{Endpoint}/v2/{project_id}/fgs/functions <ul id="functiongraph_06_0204__ul104224515521"><li id="functiongraph_06_0204__li5840141415149">Sample request<pre class="screen" id="functiongraph_06_0204__screen795591013534">POST https://{Endpoint}/v2/{project_id}/fgs/functions
{ {
"code_type": "obs", "code_type": "obs",

View File

@ -8,9 +8,14 @@
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="functiongraph_06_1700__row18499125320264"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_06_1700__p149975315260">2024-10-31</p> <tbody><tr id="functiongraph_06_1700__row4670195810115"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_06_1700__p867114581614">2025-06-30</p>
</td> </td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><p id="functiongraph_06_1700__p199952034151415">Updated the description of the supported runtime versions in the following sections: <a href="functiongraph_06_0127.html">Querying Dependencies</a>, <a href="functiongraph_06_0152.html">Creating a Dependency Version</a>, <a href="functiongraph_06_0153.html">Querying Dependency Versions</a>, <a href="functiongraph_06_0154.html">Querying a Dependency Version</a>, <a href="functiongraph_06_0105.html">Querying Functions</a>, <a href="functiongraph_06_0108.html">Creating a Function</a>, <a href="functiongraph_06_0107.html">Querying the Code of a Function</a>, <a href="functiongraph_06_0110.html">Modifying the Code of a Function</a>, <a href="functiongraph_06_0106.html">Querying the Metadata of a Function</a>, <a href="functiongraph_06_0111.html">Modifying the Metadata of a Function</a>, <a href="functiongraph_06_1018.html">Updating Max. Instances of a Function</a>, <a href="functiongraph_23_1031_02.html">Querying ServiceBridge Functions Bound to a Specified Function</a>, <a href="functiongraph_06_0113.html">Querying the Versions of a Function</a>, <a href="functiongraph_06_0144.html">Publishing a Function Version</a>, and <a href="functiongraph_06_0108_0.html">Importing a Function</a>.</p> <td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><ol id="functiongraph_06_1700__ol157359610186"><li id="functiongraph_06_1700__li873520611813">Updated the API for <a href="functiongraph_06_0108.html">creating a function</a>.</li><li id="functiongraph_06_1700__li12230178121819">Added an <a href="ErrorCode.html">error code</a>.</li></ol>
</td>
</tr>
<tr id="functiongraph_06_1700__row18499125320264"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_06_1700__p149975315260">2024-10-31</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.2 "><p id="functiongraph_06_1700__p199952034151415">Updated the description of the supported runtime versions in the following sections: <a href="functiongraph_06_0127.html">Querying Dependencies</a>, <a href="functiongraph_06_0152.html">Creating a Dependency Version</a>, <a href="functiongraph_06_0153.html">Querying Dependency Versions</a>, <a href="functiongraph_06_0154.html">Querying a Dependency Version</a>, <a href="functiongraph_06_0105.html">Querying Functions</a>, <a href="functiongraph_06_0108.html">Creating a Function</a>, <a href="functiongraph_06_0107.html">Querying the Code of a Function</a>, <a href="functiongraph_06_0110.html">Modifying the Code of a Function</a>, <a href="functiongraph_06_0106.html">Querying the Metadata of a Function</a>, <a href="functiongraph_06_0111.html">Modifying the Metadata of a Function</a>, <a href="functiongraph_06_1018.html">Updating Max. Instances of a Function</a>, <a href="functiongraph_06_0113.html">Querying the Versions of a Function</a>, <a href="functiongraph_06_0144.html">Publishing a Function Version</a>, and <a href="functiongraph_06_0108_0.html">Importing a Function</a>.</p>
</td> </td>
</tr> </tr>
<tr id="functiongraph_06_1700__row1267743015494"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_06_1700__p567763019495">2023-06-26</p> <tr id="functiongraph_06_1700__row1267743015494"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.3.1.1 "><p id="functiongraph_06_1700__p567763019495">2023-06-26</p>

View File

@ -1,7 +1,7 @@
<a name="functiongraph_06_1704"></a><a name="functiongraph_06_1704"></a> <a name="functiongraph_06_1704"></a><a name="functiongraph_06_1704"></a>
<h1 class="topictitle1">APIs</h1> <h1 class="topictitle1">API</h1>
<div id="body2586631"><p id="functiongraph_06_1704__p8060118"></p> <div id="body0000002103798893"><p id="functiongraph_06_1704__p8060118"></p>
</div> </div>
<div> <div>
<ul class="ullinks"> <ul class="ullinks">

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff