Files
doc-exports/docs/fg/api-ref/functiongraph_06_0152.html
chenjunjie 3b66ea69c4 FG API 20241106 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>
2025-06-25 09:46:34 +00:00

423 lines
35 KiB
HTML

<a name="functiongraph_06_0152"></a><a name="functiongraph_06_0152"></a>
<h1 class="topictitle1">Creating a Dependency Version</h1>
<div id="body12763356154415"><div class="section" id="functiongraph_06_0152__section197631756204413"><h4 class="sectiontitle">Function</h4><p id="functiongraph_06_0152__p1376319569446">This API is used to create a dependency version.</p>
</div>
<div class="section" id="functiongraph_06_0152__section1576945618440"><h4 class="sectiontitle">URI</h4><p id="functiongraph_06_0152__p11769165614418">POST /v2/{project_id}/fgs/dependencies/version</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__table677616565442" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row377535617442"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="functiongraph_06_0152__p3776756194417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="functiongraph_06_0152__p677625617447">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="functiongraph_06_0152__p47761556154415">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="functiongraph_06_0152__p1377615624418">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row167751756114413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0152__p1077665616449">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0152__p37771556164417">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0152__p57771856184414">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0152__p8777105616446">Project ID. For details, see <a href="functiongraph_06_0260.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0152__section278295654410"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row137833565447"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="functiongraph_06_0152__p19784175654420">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="functiongraph_06_0152__p11784856134411">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="functiongraph_06_0152__p078416566449">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="functiongraph_06_0152__p1778419564444">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row1378325614417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0152__p1778465624410">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0152__p197901956194413">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0152__p279095624418">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0152__p17921956154410">User token.</p>
<p id="functiongraph_06_0152__p167920562444">It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row1178305612443"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0152__p17792185620448">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0152__p1479310563448">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0152__p187931569441">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0152__p47931564447">Message body type (format).</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__request_CreateDependencyRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row5799185612448"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="functiongraph_06_0152__p780525615443">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="functiongraph_06_0152__p118057561445">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="functiongraph_06_0152__p12806756154412">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="functiongraph_06_0152__p178061156124416">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row880475634413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p10806656194419">depend_file</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p1581115613443">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p14811256124414">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p981215615440">This parameter is mandatory when depend_type is set to zip. It is in the file stream format and must be a ZIP file encoded using Base64. The size of the ZIP file cannot exceed 40 MB. For a larger file, upload it through OBS.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row15804356194415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p8812105612448">depend_link</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p8812195694417">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p08121356134410">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p8812175613441">URL of the dependency in the OBS console when depend_type is set to obs.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row380415612446"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p4813656164410">depend_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p17813156134412">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p10813165610449">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p12813156144410">Import mode. Options: obs and zip.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row5804135634413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p5813156134412">runtime</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p2081885617447">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p18191056194413">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p145811569446">Environment for executing a function. Options: Python2.7 Python 3.6 Python 3.9 Python 3.10 Go 1.x Java 8 Java 11 Node.js 6.10 Node.js 8.10 Node.js 10.16 Node.js 12.13 Node.js 14.18 Node.js 16.17 Node.js 18.15 C# (.NET Core 2.1) C# (.NET Core 3.1) Custom PHP 7.3 HTTP Custom image-based functions</p>
<p id="functiongraph_06_0152__p358185634411">Enumeration values:</p>
<ul id="functiongraph_06_0152__ul75817568443"><li id="functiongraph_06_0152__li125985610448"><strong id="functiongraph_06_0152__b3591956164415">Java8</strong></li><li id="functiongraph_06_0152__li125965616443"><strong id="functiongraph_06_0152__b1764155611443">Java11</strong></li><li id="functiongraph_06_0152__li1164105694411"><strong id="functiongraph_06_0152__b264115634415">Node.js6.10</strong></li><li id="functiongraph_06_0152__li19641856134416"><strong id="functiongraph_06_0152__b1269156144416">Node.js8.10</strong></li><li id="functiongraph_06_0152__li169175614418"><strong id="functiongraph_06_0152__b1970125611448">Node.js10.16</strong></li><li id="functiongraph_06_0152__li187025616448"><strong id="functiongraph_06_0152__b177012565444">Node.js12.13</strong></li><li id="functiongraph_06_0152__li870656134416"><strong id="functiongraph_06_0152__b571135615448">Node.js14.18</strong></li><li id="functiongraph_06_0152__li123611520101416"><strong id="functiongraph_06_0152__b3790142015147">Node.js16.17</strong></li><li id="functiongraph_06_0152__li21112718149"><strong id="functiongraph_06_0152__b43705277145">Node.js18.15</strong></li><li id="functiongraph_06_0152__li9719568440"><strong id="functiongraph_06_0152__b1372125614413">Python2.7</strong></li><li id="functiongraph_06_0152__li1572185614416"><strong id="functiongraph_06_0152__b67285644415">Python3.6</strong></li><li id="functiongraph_06_0152__li124382438142"><strong id="functiongraph_06_0152__b3848243121417">Python3.10</strong></li><li id="functiongraph_06_0152__li147245684414"><strong id="functiongraph_06_0152__b1272155664420">Go1.x</strong></li><li id="functiongraph_06_0152__li117820561443"><strong id="functiongraph_06_0152__b1378756164419">C#(.NET Core 2.1)</strong></li><li id="functiongraph_06_0152__li57895614446"><strong id="functiongraph_06_0152__b778175617448">C#(.NET Core 3.1)</strong></li><li id="functiongraph_06_0152__li117845634415"><strong id="functiongraph_06_0152__b47825634413">Custom</strong></li><li id="functiongraph_06_0152__li97885634414"><strong id="functiongraph_06_0152__b1978145620447">PHP7.3</strong></li><li id="functiongraph_06_0152__li578155615447"><strong id="functiongraph_06_0152__b1278155610443">Python3.9</strong></li><li id="functiongraph_06_0152__li9791956144413"><strong id="functiongraph_06_0152__b179356154420">http</strong></li><li id="functiongraph_06_0152__li1679135619449"><strong id="functiongraph_06_0152__b17797563443">Custom Image</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0152__row280575613446"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p108392563448">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p188396567449">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p19839356144420">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p1883945654420">Dependence name. It can contain a maximum of 96 characters, and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row580565613440"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="functiongraph_06_0152__p58397565441">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="functiongraph_06_0152__p6840145619442">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="functiongraph_06_0152__p17840185613442">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="functiongraph_06_0152__p18840105664411">Description of the dependency, which can contain a maximum of 512 characters.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0152__section78401356114419"><h4 class="sectiontitle">Response Parameters</h4><p id="functiongraph_06_0152__p584018564444"><strong id="functiongraph_06_0152__b128401556134420">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__response_CreateDependencyVersionResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row584695616443"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="functiongraph_06_0152__p18860135616445">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="functiongraph_06_0152__p198601256194416">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="functiongraph_06_0152__p14861115654411">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row188481956144418"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p1686175614417">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p16861125610444">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p6861165684416">Dependence version ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row17848195613446"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p8861195610440">owner</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p18862056174417">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p158621656154412">Dependency owner.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row0849145619444"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p886825616445">link</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p88681456104420">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1086819562447">URL of the dependency in OBS.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row13849135694417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p38691656204414">runtime</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p1986919562448">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p7517112542819">Environment for executing a function. Options: Python2.7 Python 3.6 Python 3.9 Python 3.10 Go 1.x Java 8 Java 11 Node.js 6.10 Node.js 8.10 Node.js 10.16 Node.js 12.13 Node.js 14.18 Node.js 16.17 Node.js 18.15 C# (.NET Core 2.1) C# (.NET Core 3.1) Custom PHP 7.3 HTTP Custom image-based functions</p>
<p id="functiongraph_06_0152__p12518162517282">Enumeration values:</p>
<ul id="functiongraph_06_0152__ul1518192542811"><li id="functiongraph_06_0152__li15184253283"><strong id="functiongraph_06_0152__b17518325152816">Java8</strong></li><li id="functiongraph_06_0152__li851812254285"><strong id="functiongraph_06_0152__b19518162515280">Java11</strong></li><li id="functiongraph_06_0152__li19518102592816"><strong id="functiongraph_06_0152__b13518182582818">Node.js6.10</strong></li><li id="functiongraph_06_0152__li35181325112811"><strong id="functiongraph_06_0152__b1751822522811">Node.js8.10</strong></li><li id="functiongraph_06_0152__li3518725182815"><strong id="functiongraph_06_0152__b195181025192817">Node.js10.16</strong></li><li id="functiongraph_06_0152__li65181225142816"><strong id="functiongraph_06_0152__b1251832512287">Node.js12.13</strong></li><li id="functiongraph_06_0152__li8518192582812"><strong id="functiongraph_06_0152__b185181425132811">Node.js14.18</strong></li><li id="functiongraph_06_0152__li3518132522811"><strong id="functiongraph_06_0152__b155181425142811">Node.js16.17</strong></li><li id="functiongraph_06_0152__li205182254287"><strong id="functiongraph_06_0152__b8518192511286">Node.js18.15</strong></li><li id="functiongraph_06_0152__li15518425152813"><strong id="functiongraph_06_0152__b151882592815">Python2.7</strong></li><li id="functiongraph_06_0152__li125182250281"><strong id="functiongraph_06_0152__b13518182519281">Python3.6</strong></li><li id="functiongraph_06_0152__li151882515287"><strong id="functiongraph_06_0152__b3518162552818">Python3.10</strong></li><li id="functiongraph_06_0152__li8518112542816"><strong id="functiongraph_06_0152__b1451822592819">Go1.x</strong></li><li id="functiongraph_06_0152__li25181825102813"><strong id="functiongraph_06_0152__b351815256281">C#(.NET Core 2.1)</strong></li><li id="functiongraph_06_0152__li25181250284"><strong id="functiongraph_06_0152__b15519142514282">C#(.NET Core 3.1)</strong></li><li id="functiongraph_06_0152__li1451942519283"><strong id="functiongraph_06_0152__b6519202502817">Custom</strong></li><li id="functiongraph_06_0152__li10519625172815"><strong id="functiongraph_06_0152__b1451982517282">PHP7.3</strong></li><li id="functiongraph_06_0152__li251992552816"><strong id="functiongraph_06_0152__b1351982515288">Python3.9</strong></li><li id="functiongraph_06_0152__li12519025102815"><strong id="functiongraph_06_0152__b1351912258281">http</strong></li><li id="functiongraph_06_0152__li4519325122814"><strong id="functiongraph_06_0152__b14519172514288">Custom Image</strong></li></ul>
</td>
</tr>
<tr id="functiongraph_06_0152__row178495565446"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p12889165664414">etag</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p58901756144414">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p20890205612442">Unique identifier of the dependency.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row18849656134410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p6890135615448">size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p4890656114411">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p13890185634411">Dependency size.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row2849155612446"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p19891356144416">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p18911556184415">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1889665619449">Dependency name.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row3854125617445"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p1789655644416">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p11897155694412">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1689785664411">Dependency description.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row785455615447"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p5897135624413">file_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p14897115620446">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1989814568446">Dependency file name.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row18547563448"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p178986563443">version</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p148981356114414">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p089865664416">Dependency version.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row17859156184415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p11899175616441">dep_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p58991256144418">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1904656154420">Dependency ID.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row38592056104411"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0152__p9904175634417">last_modified</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0152__p18904195618440">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0152__p1190519562442">Time when the dependency was last updated.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0152__p69051556124419"><strong id="functiongraph_06_0152__b15905195616443">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row1590525674419"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="functiongraph_06_0152__p129071356194410">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="functiongraph_06_0152__p1990718564447">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="functiongraph_06_0152__p2907556184410">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row49052563447"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0152__p14908195614411">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0152__p2090814563444">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0152__p11908195618444">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row29051756114417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0152__p4908056164416">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0152__p1512135715443">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0152__p191385714415">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0152__p1613155764419"><strong id="functiongraph_06_0152__b1213357174414">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__table6131357194416" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row1313657134416"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="functiongraph_06_0152__p71410576448">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="functiongraph_06_0152__p714357144413">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="functiongraph_06_0152__p20152572443">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row1813125710441"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0152__p615105734417">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0152__p01575710445">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0152__p41518578440">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row181435774413"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="functiongraph_06_0152__p131525744417">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="functiongraph_06_0152__p1916195764411">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="functiongraph_06_0152__p1167574446">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0152__p916185715443"><strong id="functiongraph_06_0152__b151675724411">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__table916105714445" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row216757184418"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="functiongraph_06_0152__p1517357144417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="functiongraph_06_0152__p1717175784416">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="functiongraph_06_0152__p1017105719445">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row016257144416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0152__p1817155754416">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0152__p217175719449">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0152__p1017125734416">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row11615744417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="functiongraph_06_0152__p31711574442">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="functiongraph_06_0152__p1718105710440">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="functiongraph_06_0152__p131885717446">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="functiongraph_06_0152__p618155716442"><strong id="functiongraph_06_0152__b11181573448">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__table191820576441" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0152__row10181057154419"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="functiongraph_06_0152__p01965719444">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="functiongraph_06_0152__p171955764411">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="functiongraph_06_0152__p13191657104418">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row91855774416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0152__p619657134412">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0152__p419957124410">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0152__p1201257134419">Error code.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row61885717447"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="functiongraph_06_0152__p162085744418">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="functiongraph_06_0152__p14201575440">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="functiongraph_06_0152__p14201157144418">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0152__section120657174414"><h4 class="sectiontitle">Example Requests</h4><ul id="functiongraph_06_0152__ul202125744414"><li id="functiongraph_06_0152__li172115713445">Create a dependency version by directly uploading a ZIP file.<pre class="screen" id="functiongraph_06_0152__screen15211257154413">POST https://{Endpoint}/v2/{project_id}/fgs/dependencies/version
{
"depend_file" : "xxx",
"depend_type" : "zip",
"runtime" : "Node.js8.10",
"name" : "xxx"
}</pre>
</li><li id="functiongraph_06_0152__li13161057124415">Create a dependency by uploading a ZIP file from OBS.<pre class="screen" id="functiongraph_06_0152__screen91611257184410">POST https://{Endpoint}/v2/{project_id}/fgs/dependencies/version
{
"depend_link" : "https://{bucket}.{obs_endpoint}/depends/****/4f4ae4eb-dcdc-4dd3-bffd-79600bd972b3.zip",
"depend_type" : "obs",
"runtime" : "Node.js8.10",
"name" : "xxx"
}</pre>
</li></ul>
</div>
<div class="section" id="functiongraph_06_0152__section916245712442"><h4 class="sectiontitle">Example Responses</h4><p id="functiongraph_06_0152__p10162857184412"><strong id="functiongraph_06_0152__b616218578446">Status code: 200</strong></p>
<p id="functiongraph_06_0152__p14162165718449">ok</p>
<pre class="screen" id="functiongraph_06_0152__screen31625576447">{
"id" : "4f4ae4eb-dcdc-4dd3-bffd-79600bd972b3",
"owner" : "*****",
"link" : "https://{bucket}.{obs_endpoint}/depends/****/4f4ae4eb-dcdc-4dd3-bffd-79600bd972b3.zip",
"runtime" : "Python3.6",
"etag" : "83863be4b6c3a86aef995dbc83aae68f",
"size" : 577118,
"name" : "python-kafka",
"description" : "Python library for Kafka operations.",
"file_name" : "python-kafka.zip",
"version" : 0,
"dep_id" : "edbd67fa-f107-40b3-af75-a85f0577ad61",
"last_modified" : 1660029887
}</pre>
</div>
<div class="section" id="functiongraph_06_0152__section191621057164410"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0152__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="functiongraph_06_0152__row16251057114417"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="functiongraph_06_0152__p2016275774415">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="functiongraph_06_0152__p916211578446">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_06_0152__row152585714444"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0152__p15162105717446">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0152__p3162125717447">ok</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row025257184419"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0152__p7162115710447">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0152__p91621757174410">Unauthorized.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row1825155711443"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0152__p1216275794412">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0152__p19162145717449">Forbidden.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row1026157114414"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0152__p216216578448">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0152__p1162657104417">Not found.</p>
</td>
</tr>
<tr id="functiongraph_06_0152__row426135713442"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0152__p17162125719447">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0152__p131621357114412">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="functiongraph_06_0152__section316295719443"><h4 class="sectiontitle">Error Codes</h4><p id="functiongraph_06_0152__p13162145712441">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="Dependencies.html">Dependencies</a></div>
</div>
</div>