Files
doc-exports/docs/er/api-ref/RejectAttachment.html
fanqinying 2eea95ac58 ER API 20250126 version
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>
2025-06-24 08:13:54 +00:00

263 lines
20 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__section194211538193018"><h4 class="sectiontitle">Function</h4><p id="RejectAttachment__p242103883012">This API is used to reject a shared attachment.</p>
</div>
<div class="section" id="RejectAttachment__section1242243883010"><h4 class="sectiontitle">URI</h4><p id="RejectAttachment__p14422838103010">POST /v3/{project_id}/enterprise-router/{er_id}/attachments/{attachment_id}/reject</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RejectAttachment__table1842383810301" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="RejectAttachment__row12423138113010"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="RejectAttachment__p154231638143014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="RejectAttachment__p174241938173015">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="RejectAttachment__p9424103813307">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="RejectAttachment__p84247380301">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RejectAttachment__row44235388308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p242413384306">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p1742412388305">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p442513381303">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p12425138163013">Project ID</p>
</td>
</tr>
<tr id="RejectAttachment__row34233389301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p1442520383306">er_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p12425138183020">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p542513811302">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p64250381301">Enterprise router ID</p>
</td>
</tr>
<tr id="RejectAttachment__row1442323813308"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="RejectAttachment__p142516387304">attachment_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="RejectAttachment__p1742673818309">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="RejectAttachment__p34261738143011">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="RejectAttachment__p1642613387303">Attachment ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="RejectAttachment__section10426338113018"><h4 class="sectiontitle">Request Parameters</h4><p id="RejectAttachment__p134268381302">None</p>
</div>
<div class="section" id="RejectAttachment__section19426138163014"><h4 class="sectiontitle">Response Parameters</h4><p id="RejectAttachment__p04271938103014"><strong id="RejectAttachment__b154271385302">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__row5427193873010"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="RejectAttachment__p1042823810307">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="RejectAttachment__p4428113843016">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="RejectAttachment__p10428838143018">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RejectAttachment__row1642718385304"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="RejectAttachment__p842812382301">attachment</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="RejectAttachment__p10428113863010"><a href="#RejectAttachment__response_AttachmentResponse">AttachmentResponse</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="RejectAttachment__p0428183813012">Attachment basic information</p>
</td>
</tr>
<tr id="RejectAttachment__row6427638173013"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="RejectAttachment__p164293381307">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="RejectAttachment__p114291238123015">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="RejectAttachment__p94291338193011">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__row4430173853013"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="RejectAttachment__p34321338193017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="RejectAttachment__p9432338143018">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="RejectAttachment__p144325388304">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RejectAttachment__row10430173816305"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p343223893018">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p743213873019">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p1943373823016">Attachment name</p>
</td>
</tr>
<tr id="RejectAttachment__row114301738143018"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p1543343819307">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p1743343813020">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p1043317383304">Attachment ID</p>
</td>
</tr>
<tr id="RejectAttachment__row104301538153014"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p19433838103014">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p4433153814303">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p10434133883018">Supplementary information</p>
</td>
</tr>
<tr id="RejectAttachment__row043033823010"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p19434163812308">state</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p10434203813309">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p243493815305">Attachment status. Value options: <strong id="RejectAttachment__b7434113810300">pending</strong>, <strong id="RejectAttachment__b94349386302">available</strong>, <strong id="RejectAttachment__b44341538203010">modifying</strong>, <strong id="RejectAttachment__b0434133816308">deleting</strong>, <strong id="RejectAttachment__b44349387308">deleted</strong>, <strong id="RejectAttachment__b17434183843016">failed</strong>, <strong id="RejectAttachment__b13434153813301">pending_acceptance</strong>, <strong id="RejectAttachment__b343443883019">rejected</strong>, <strong id="RejectAttachment__b34341338193017">initiating_request</strong>, <strong id="RejectAttachment__b843413843015">freezed</strong>, or <strong id="RejectAttachment__b443403815302">invalid</strong>.</p>
</td>
</tr>
<tr id="RejectAttachment__row1443011381309"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p13435838123010">created_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p743523818303">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p6435153814303">Creation time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
</td>
</tr>
<tr id="RejectAttachment__row44302038143012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p443523873013">updated_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p1743523813015">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p204352038193011">Update time in the format YYYY-MM-DDTHH:mm:ss.sssZ</p>
</td>
</tr>
<tr id="RejectAttachment__row643163815303"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p1043513388302">tags</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p204368382303">Array of <a href="#RejectAttachment__response_Tag">Tag</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p3436138203010">Attachment tags.</p>
</td>
</tr>
<tr id="RejectAttachment__row10431103803020"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p043616388305">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p164361238143019">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p243643817308">Project ID</p>
</td>
</tr>
<tr id="RejectAttachment__row17431143816302"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p143623893013">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p1843743893016">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p3437173863016">Attached resource ID on its own service console</p>
</td>
</tr>
<tr id="RejectAttachment__row5431103863012"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p20437123817307">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p134378384309">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p743710381303">Attachment type.</p>
<ul id="RejectAttachment__ul124373386308"><li id="RejectAttachment__li15438438143012"><p id="RejectAttachment__p154389386309"><a name="RejectAttachment__li15438438143012"></a><a name="li15438438143012"></a><strong id="RejectAttachment__b15438133833010">vpc</strong>: VPC</p>
</li></ul>
</td>
</tr>
<tr id="RejectAttachment__row15431103819308"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p16438163863016">resource_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p12438183853011">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p0439143815307">ID of the project that the resource belongs to</p>
</td>
</tr>
<tr id="RejectAttachment__row5431153816307"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="RejectAttachment__p2439838113018">ipv6_enable</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="RejectAttachment__p6439123816300">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="RejectAttachment__p174395387308">Whether to enable IPv6. The value <strong id="RejectAttachment__b9439103813303">false</strong> indicates that IPv6 is disabled, and the value <strong id="RejectAttachment__b1643963873015">true</strong> indicates that IPv6 is enabled. This parameter is not supported.</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__row3440143816309"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="RejectAttachment__p16441338193018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="RejectAttachment__p144119386305">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="RejectAttachment__p184421338143020">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RejectAttachment__row144093819304"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="RejectAttachment__p19442538153018">key</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="RejectAttachment__p1844223833018">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="RejectAttachment__p944217382308">Tag key. The key:</p>
<ul id="RejectAttachment__ul84425387304"><li id="RejectAttachment__li1644263843016"><p id="RejectAttachment__p844220384307"><a name="RejectAttachment__li1644263843016"></a><a name="li1644263843016"></a>Can contain UTF-8 letters, digits, spaces, and the following characters: _.:=+-@.</p>
</li><li id="RejectAttachment__li54427388304"><p id="RejectAttachment__p24421038163012"><a name="RejectAttachment__li54427388304"></a><a name="li54427388304"></a>Cannot start with <em id="RejectAttachment__i11443163863011">sys</em> because it indicates a system tag.</p>
</li><li id="RejectAttachment__li1444393873017"><p id="RejectAttachment__p7443183810301"><a name="RejectAttachment__li1444393873017"></a><a name="li1444393873017"></a>Cannot be empty (the length cannot be 0).</p>
</li><li id="RejectAttachment__li744303819304"><p id="RejectAttachment__p44431838163011"><a name="RejectAttachment__li744303819304"></a><a name="li744303819304"></a>Can contain 1 to 128 characters.</p>
</li></ul>
<p id="RejectAttachment__p94438387302">Minimum: <strong id="RejectAttachment__b12443153843018">1</strong></p>
<p id="RejectAttachment__p19443143818307">Maximum: <strong id="RejectAttachment__b13443838183015">128</strong></p>
</td>
</tr>
<tr id="RejectAttachment__row1544063813301"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="RejectAttachment__p244393814309">value</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="RejectAttachment__p84431381306">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="RejectAttachment__p344453816308">Tag value. The value:</p>
<ul id="RejectAttachment__ul14444538173013"><li id="RejectAttachment__li644463810302"><p id="RejectAttachment__p144463873014"><a name="RejectAttachment__li644463810302"></a><a name="li644463810302"></a>Can contain UTF-8 letters, digits, spaces, and the following characters: _.:=+-@.</p>
</li><li id="RejectAttachment__li944493810306"><p id="RejectAttachment__p1944411384304"><a name="RejectAttachment__li944493810306"></a><a name="li944493810306"></a>Can be empty or null.</p>
</li><li id="RejectAttachment__li24444387307"><p id="RejectAttachment__p044423863013"><a name="RejectAttachment__li24444387307"></a><a name="li24444387307"></a>Can contain 0 to 255 characters.</p>
</li></ul>
<p id="RejectAttachment__p644403813303">Minimum: <strong id="RejectAttachment__b15444538143010">0</strong></p>
<p id="RejectAttachment__p6444538113014">Maximum: <strong id="RejectAttachment__b0444163816306">255</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="RejectAttachment__section1445173810305"><h4 class="sectiontitle">Example Requests</h4><p id="RejectAttachment__p1844523893016">Rejecting a shared attachment</p>
<pre class="screen" id="RejectAttachment__screen1344553811303">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__section7445133823012"><h4 class="sectiontitle">Example Responses</h4><p id="RejectAttachment__p2044573803011"><strong id="RejectAttachment__b5445193813017">Status code: 200</strong></p>
<p id="RejectAttachment__p1944513383304">OK</p>
<pre class="screen" id="RejectAttachment__screen1744614381308">{
"attachment" : {
"id" : "6f83b848-8331-4271-ac0c-ef94b7686402,",
"name" : "vpc attachment,",
"description" : "VPC attachment",
"state" : "available",
"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" : "0605767a9980d5762fbcc00b3537e751"
},
"request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
}</pre>
</div>
<div class="section" id="RejectAttachment__section84471385302"><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__row14448138103019"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="RejectAttachment__p2448113883018">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__p1544873843011">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RejectAttachment__row34481380307"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="RejectAttachment__p12448638173019">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="RejectAttachment__p10449173820309">OK</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="RejectAttachment__section2449143833018"><h4 class="sectiontitle">Error Codes</h4><p id="RejectAttachment__p15449113814309">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>