forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
232 lines
16 KiB
HTML
232 lines
16 KiB
HTML
<a name="UploadChart"></a><a name="UploadChart"></a>
|
|
|
|
<h1 class="topictitle1">Uploading a Chart</h1>
|
|
<div id="body32001227"><div class="section" id="UploadChart__section822418302306"><h4 class="sectiontitle">Function</h4><p id="UploadChart__p922463033010">This API is used to upload a chart.</p>
|
|
</div>
|
|
<div class="section" id="UploadChart__en-us_topic_0000001896129345_atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="UploadChart__p1224133063013">POST /v2/charts</p>
|
|
</div>
|
|
<div class="section" id="UploadChart__section1722411306306"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UploadChart__en-us_topic_0000001896129345_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request header parameters</caption><thead align="left"><tr id="UploadChart__row152251430193014"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UploadChart__p132254308307">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UploadChart__p6226153043015">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UploadChart__p1226123053016">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UploadChart__p182266304308">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UploadChart__row1122513306307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UploadChart__p5226103063010">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UploadChart__p202271330153010">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UploadChart__p4227230143018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UploadChart__p175132048141618">Details:</p>
|
|
<p id="UploadChart__p1513184851611">Request body type or format.</p>
|
|
<p id="UploadChart__p363312163118">Constraints:</p>
|
|
<p id="UploadChart__p86331116121112">The GET method is not verified.</p>
|
|
<p id="UploadChart__p36336166115">Options:</p>
|
|
<ul id="UploadChart__ul166331116111111"><li id="UploadChart__li6633516101110">application/json</li><li id="UploadChart__li1363351614116">application/json;charset=utf-8</li><li id="UploadChart__li0633191617110">application/x-pem-file</li><li id="UploadChart__li14404134425119">multipart/form-data (It can be used when the <strong id="UploadChart__b1058912225107">FormData</strong> parameter exists.)</li></ul>
|
|
<p id="UploadChart__p363331671112">Default value:</p>
|
|
<p id="UploadChart__p5633151617112">N/A</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row122515306301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UploadChart__p7227930113012">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UploadChart__p92271230123015">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UploadChart__p4228130183011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UploadChart__p122286303305">Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see <a href="cce_02_0004.html">API Usage Guidelines</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UploadChart__en-us_topic_0000001896129345_FormDataParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>FormData parameters</caption><thead align="left"><tr id="UploadChart__row1522873013305"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UploadChart__p422923023015">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UploadChart__p102297309303">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UploadChart__p222963011302">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UploadChart__p32291430153013">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UploadChart__row18228123018309"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UploadChart__p1323019302307">parameters</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UploadChart__p423016303307">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UploadChart__p14230153019302">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UploadChart__p2230630133011">Parameter configurations for uploading a chart. The following is an example: "{"override":true,"skip_lint":true,"source":"package"}"</p>
|
|
<ul id="UploadChart__ul182312302303"><li id="UploadChart__li13373144719197">skip_lint: whether lint uploaded chart</li><li id="UploadChart__li6357105516190">override: whether override existed chart</li><li id="UploadChart__li9231123017305">visible: update chart visible</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row7228193093019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UploadChart__p17231103033012">content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UploadChart__p823193011308">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UploadChart__p5231143083018">File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UploadChart__p10231193033016">Chart package file</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UploadChart__section323212304304"><h4 class="sectiontitle">Response Parameters</h4><p id="UploadChart__p16232123083010"><strong id="UploadChart__b82321430143013">Status code: 201</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UploadChart__en-us_topic_0000001896129345_response_ChartResp" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="UploadChart__row42339306301"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="UploadChart__p1323514308305">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="UploadChart__p18235630113016">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="UploadChart__p92354308300">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UploadChart__row2023318303302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p7235183014302">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p1523653013306">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p1823683012305">Chart ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row2233173010305"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p1236103020301">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p142360303306">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p423653083013">Chart name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row623373013304"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p5237230153015">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p16238133020301">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p1523843010302">Chart value</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row152349303303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p1423814308303">translate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p1239113020309">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p122391030153014">Chart translation resources</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row1623403019300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p3239103093020">instruction</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p224063018307">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p524020301307">Chart description</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row18234183013016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p624023033012">version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p182404304302">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p0240153017306">Chart version</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row14234193083012"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p202412302308">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p11241123033012">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p10241630193012">Chart description</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row15234163013307"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p52411730113010">source</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p18241230163018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p1524283018300">Chart source</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row023415308302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p1524243016302">icon_url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p52421330183018">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p324243012309">URL to chart icons</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row723414300302"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p15242183012306">public</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p1243730163018">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p62437304301">Whether the chart is public</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row2234183083019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p12431530123012">chart_url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p5243123013015">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p15243330123015">URL to the chart</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row2234153018303"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p3243133063010">create_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p142449308308">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p4244183014307">Created at</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UploadChart__row92341830183010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UploadChart__p124419306307">update_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UploadChart__p1624493053011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UploadChart__p2024453020309">Updated at</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UploadChart__section1824473073017"><h4 class="sectiontitle">Example Requests</h4><p id="UploadChart__p320212502011">If the <strong id="UploadChart__b12222217192013">FormData </strong>parameter exists, the value of <strong id="UploadChart__b8452102116209">Content-Type </strong>must be <strong id="UploadChart__b1211802819209">multipart/form-data</strong>, and the file path must be specified.</p>
|
|
<pre class="screen" id="UploadChart__screen14754424135514">POST /v2/charts -H "X-Auth-Token:$token" -H "Content-Type:multipart/form-data" -F parameters='{"skip_lint":true,"override":true,"source":"package"}' -F content=@/root/neo4j-3.0.1.tgz</pre>
|
|
</div>
|
|
<div class="section" id="UploadChart__section6246133012309"><h4 class="sectiontitle">Example Responses</h4><p id="UploadChart__p172464309307"><strong id="UploadChart__b162467305309">Status code: 201</strong></p>
|
|
<p id="UploadChart__p4246530203012">Created</p>
|
|
<pre class="screen" id="UploadChart__screen112461430173019">{
|
|
"id" : "e99a7e86-afdd-11eb-aca3-0255ac100b0e",
|
|
"name" : "neo4j",
|
|
"values" : "{\"acceptLicenseAgreement\":\"no\",\"affinity\":{},\"authEnabled\":true,\"clusterDomain\":\"cluster.local\",\"core\":{\"initContainers\":[],\"numberOfServers\":3,\"persistentVolume\":{\"enabled\":true,\"mountPath\":\"/data\",\"size\":\"10Gi\"},\"sidecarContainers\":[]},\"defaultDatabase\":\"neo4j\",\"image\":\"neo4j\",\"imagePullPolicy\":\"IfNotPresent\",\"imageTag\":\"4.0.3-enterprise\",\"name\":\"neo4j\",\"nodeSelector\":{},\"podDisruptionBudget\":{},\"readReplica\":{\"autoscaling\":{\"enabled\":false,\"maxReplicas\":3,\"minReplicas\":1,\"targetAverageUtilization\":70},\"initContainers\":[],\"numberOfServers\":0,\"resources\":{},\"sidecarContainers\":[]},\"resources\":{},\"testImage\":\"markhneedham/k8s-kubectl\",\"testImageTag\":\"master\",\"tolerations\":[],\"useAPOC\":\"true\"}",
|
|
"translate" : "",
|
|
"instruction" : "README.md",
|
|
"version" : "3.0.1",
|
|
"description" : "DEPRECATED Neo4j is the world's leading graph database",
|
|
"source" : "",
|
|
"icon_url" : "https://info.neo4j.com/rs/773-GON-065/images/neo4j_logo.png",
|
|
"public" : false,
|
|
"chart_url" : "neo4j-3.0.1.tgz",
|
|
"create_at" : "2021-05-08T08:53:13Z",
|
|
"update_at" : "2021-05-08T08:53:13Z"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UploadChart__section16249133010305"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UploadChart__en-us_topic_0000001896129345_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UploadChart__row1825043017309"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UploadChart__p82511230183015">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UploadChart__p1225114308309">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UploadChart__row32501030103012"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UploadChart__p5251173015302">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UploadChart__p152511307307">Created</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UploadChart__section17252630123011"><h4 class="sectiontitle">Error Codes</h4><p id="UploadChart__p425216304307">See <a href="cce_02_0250.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="chart_lifecycle_management.html">Chart Management</a></div>
|
|
</div>
|
|
</div>
|
|
|