forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
246 lines
18 KiB
HTML
246 lines
18 KiB
HTML
<a name="RejectAttachment"></a><a name="RejectAttachment"></a>
|
|
|
|
<h1 class="topictitle1">Rejecting a Shared Attachment</h1>
|
|
<div id="body1708331107508"><div class="section" id="RejectAttachment__section4735134018573"><h4 class="sectiontitle">Function</h4><p id="RejectAttachment__p17735184011575">This API is used to reject a shared attachment.</p>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section1173504045712"><h4 class="sectiontitle">URI</h4><p id="RejectAttachment__p167352040175717">POST /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}/reject</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__table1737140185718" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="RejectAttachment__row97364407578"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="RejectAttachment__p77377403574">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="RejectAttachment__p5737340115710">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="RejectAttachment__p3737640145712">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="RejectAttachment__p07381640175717">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="RejectAttachment__row273654085719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p13738940125712">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p073854085714">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p373814025713">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p873820406572">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1773674055716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p97399404578">er_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p673984075711">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p147395402574">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p147391340195710">Enterprise router ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row173614011573"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p67391340165719">attachment_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p37401940125717">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p17409404575">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p87409404575">Attachment ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section10740240155713"><h4 class="sectiontitle">Request Parameters</h4><p id="RejectAttachment__p1374014025711">None</p>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section187407408577"><h4 class="sectiontitle">Response Parameters</h4><p id="RejectAttachment__p16740140105717"><strong id="RejectAttachment__b1274019405578">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__response_AttachmentResponseBody" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameters</caption><thead align="left"><tr id="RejectAttachment__row9741124065713"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="RejectAttachment__p11741144014572">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="RejectAttachment__p167417406577">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="RejectAttachment__p1774134014571">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="RejectAttachment__row107413403576"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="RejectAttachment__p57417402572">attachment</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="RejectAttachment__p174216407570"><a href="#RejectAttachment__response_AttachmentResponse">AttachmentResponse</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="RejectAttachment__p374244018570">Attachment basic information</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1174110405574"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="RejectAttachment__p8742940155714">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="RejectAttachment__p117421940195717">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="RejectAttachment__p7742204019570">Request ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="RejectAttachment__response_AttachmentResponse"></a><a name="response_AttachmentResponse"></a><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__response_AttachmentResponse" frame="border" border="1" rules="all"><caption><b>Table 3 </b>AttachmentResponse</caption><thead align="left"><tr id="RejectAttachment__row177421340155718"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="RejectAttachment__p5743124085712">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="RejectAttachment__p1874354016579">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="RejectAttachment__p12743840175717">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="RejectAttachment__row77426408571"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p1874344019572">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p9744104013573">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p18744164085718">Attachment name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row274212407578"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p1774434019575">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p1274414407571">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p207441940205720">Attachment ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row187423407577"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p974414401579">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p27441040175717">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p17744124065718">Supplementary information</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row11742640155718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p12744140185715">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p107445407573">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p6745184015717">Attachment status. Value options: <strong id="RejectAttachment__b8745144045718">pending</strong>, <strong id="RejectAttachment__b13745124017576">available</strong>, <strong id="RejectAttachment__b16745204005716">modifying</strong>, <strong id="RejectAttachment__b4745194015717">deleting</strong>, <strong id="RejectAttachment__b4745104014570">deleted</strong>, <strong id="RejectAttachment__b674524055712">failed</strong>, <strong id="RejectAttachment__b974514012578">pending_acceptance</strong>, <strong id="RejectAttachment__b5745154075714">rejected</strong>, and <strong id="RejectAttachment__b3745134025713">initiating_request</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1874344065711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p274512403570">created_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p57450404579">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p574517401575">Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row9743154075712"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p174516401578">updated_at</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p974514014570">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p17451740155718">Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row874315405578"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p167451640185711">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p1774519406576">Array of <a href="#RejectAttachment__response_Tag">Tag</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p167466408578">Attachment tags</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row67431240115719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p47461940135717">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p10746144018574">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p2074614035712">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1274354016572"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p77461640195715">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p10746240185713">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p11746104055710">Attached resource ID on its own service console</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1974312407578"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p137467408579">resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p16746134014570">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p574716402570">Attachment type.</p>
|
|
<ul id="RejectAttachment__ul167471340185712"><li id="RejectAttachment__li2747140105712"><strong id="RejectAttachment__b107471040195716">vpc</strong>: VPC attachment</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row1374354019578"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p27471740105718">resource_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p7747140145717">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p207472040155719">ID of the project that the resource belongs to</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="RejectAttachment__response_Tag"></a><a name="response_Tag"></a><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__response_Tag" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Tag</caption><thead align="left"><tr id="RejectAttachment__row18748164045719"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="RejectAttachment__p1974854035712">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="RejectAttachment__p57489406573">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="RejectAttachment__p1374819403575">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="RejectAttachment__row1974864014572"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="RejectAttachment__p074820407571">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="RejectAttachment__p1074854012572">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="RejectAttachment__p87486407575">Tag key. The value contain up to 128 characters (36 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@).</p>
|
|
<p id="RejectAttachment__p197497402576">Minimum: <strong id="RejectAttachment__b167491840115715">1</strong></p>
|
|
<p id="RejectAttachment__p7749340205718">Maximum: <strong id="RejectAttachment__b1774917401575">128</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="RejectAttachment__row12748114095715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="RejectAttachment__p1274924065715">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="RejectAttachment__p9749184045720">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="RejectAttachment__p174934065719">Tag value. The value contain up to 128 characters in API (43 characters on the console), including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and at signs (@).</p>
|
|
<p id="RejectAttachment__p2749134055714">Minimum: <strong id="RejectAttachment__b1474994015719">0</strong></p>
|
|
<p id="RejectAttachment__p1574918402574">Maximum: <strong id="RejectAttachment__b47491540105712">128</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section11749140185711"><h4 class="sectiontitle">Example Requests</h4><p id="RejectAttachment__p2074944013579">Rejecting a shared attachment</p>
|
|
<pre class="screen" id="RejectAttachment__screen3749114015573">POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/6f83b848-8331-4271-ac0c-ef94b7686402/attachments/6f83b848-8331-4271-ac0c-ef94b7686401/reject</pre>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section1575012402579"><h4 class="sectiontitle">Example Responses</h4><p id="RejectAttachment__p875074055710"><strong id="RejectAttachment__b1175014020574">Status code: 200</strong></p>
|
|
<p id="RejectAttachment__p117507407576">OK</p>
|
|
<pre class="screen" id="RejectAttachment__screen3750124045715">{
|
|
"attachment" : {
|
|
"id" : "6f83b848-8331-4271-ac0c-ef94b7686402,",
|
|
"name" : "vpc attachment,",
|
|
"description" : "VPC attachment",
|
|
"state" : "avaliable",
|
|
"created_at" : "2020-03-11T15:13:31Z",
|
|
"updated_at" : "2020-03-11T15:13:31Z",
|
|
"tags" : [ ],
|
|
"project_id" : "0605767a9980d5762fbcc00b3537e757",
|
|
"resource_id" : "b715e131-3371-4e17-a2de-4f669e24439a",
|
|
"resource_type" : "vpc",
|
|
"resource_project_id" : null
|
|
},
|
|
"request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section475164015578"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="RejectAttachment__row19751140165712"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="RejectAttachment__p1751144016573">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="RejectAttachment__p9751194010576">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="RejectAttachment__row375194035720"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="RejectAttachment__p19752144010571">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="RejectAttachment__p14752840105717">OK</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="RejectAttachment__section27521040175710"><h4 class="sectiontitle">Error Codes</h4><p id="RejectAttachment__p27529409574">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="Attachments.html">Attachments</a></div>
|
|
</div>
|
|
</div>
|
|
|