forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
390 lines
27 KiB
HTML
390 lines
27 KiB
HTML
<a name="rms_02_0013"></a><a name="rms_02_0013"></a>
|
|
|
|
<h1 class="topictitle1">Querying Resource Relationships</h1>
|
|
<div id="body2579mcpsimp"><div class="section" id="rms_02_0013__section2580mcpsimp"><h4 class="sectiontitle">Function</h4><p id="rms_02_0013__p2582mcpsimp">This API is used to query the relationship between the resource with a specific ID and other resources. You can set <strong id="rms_02_0013__b2583mcpsimp">Direction</strong> to <strong id="rms_02_0013__b2584mcpsimp">in</strong> or <strong id="rms_02_0013__b2585mcpsimp">out</strong>.</p>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section2586mcpsimp"><h4 class="sectiontitle">URI</h4><p id="rms_02_0013__p2588mcpsimp">GET /v1/resource-manager/domains/{domain_id}/resources/{resource_id}/relations</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2589mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="rms_02_0013__row2597mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="rms_02_0013__p2599mcpsimp"><strong id="rms_02_0013__b2600mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="rms_02_0013__p2602mcpsimp"><strong id="rms_02_0013__b2603mcpsimp">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="rms_02_0013__p2605mcpsimp"><strong id="rms_02_0013__b2606mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="rms_02_0013__p2608mcpsimp"><strong id="rms_02_0013__b2609mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2611mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0013__p2613mcpsimp">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0013__p2615mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0013__p2617mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0013__p2619mcpsimp">Specifies the account ID.</p>
|
|
<p id="rms_02_0013__p2620mcpsimp">Maximum length: <strong id="rms_02_0013__b2621mcpsimp">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2622mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0013__p2624mcpsimp">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0013__p2626mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0013__p2628mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0013__p2630mcpsimp">Specifies the resource ID.</p>
|
|
<p id="rms_02_0013__p2631mcpsimp">Maximum length: <strong id="rms_02_0013__b2632mcpsimp">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2633mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query parameters</caption><thead align="left"><tr id="rms_02_0013__row2641mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="rms_02_0013__p2643mcpsimp"><strong id="rms_02_0013__b2644mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="rms_02_0013__p2646mcpsimp"><strong id="rms_02_0013__b2647mcpsimp">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="rms_02_0013__p2649mcpsimp"><strong id="rms_02_0013__b2650mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="rms_02_0013__p2652mcpsimp"><strong id="rms_02_0013__b2653mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2655mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="rms_02_0013__p2657mcpsimp">direction</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="rms_02_0013__p2659mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="rms_02_0013__p2661mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="rms_02_0013__p2663mcpsimp">Specifies the resource relationship direction.</p>
|
|
<p id="rms_02_0013__p2664mcpsimp">Possible values are as follows:</p>
|
|
<ul id="rms_02_0013__ul2665mcpsimp"><li id="rms_02_0013__li2666mcpsimp"><strong id="rms_02_0013__b2667mcpsimp">in</strong></li><li id="rms_02_0013__li2668mcpsimp"><strong id="rms_02_0013__b2669mcpsimp">out</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2670mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="rms_02_0013__p2672mcpsimp">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="rms_02_0013__p2674mcpsimp">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="rms_02_0013__p2676mcpsimp">Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="rms_02_0013__p2678mcpsimp">Specifies the maximum number of records to return.</p>
|
|
<p id="rms_02_0013__p2679mcpsimp">Minimum value: <strong id="rms_02_0013__b2680mcpsimp">1</strong></p>
|
|
<p id="rms_02_0013__p2681mcpsimp">Maximum value: <strong id="rms_02_0013__b2682mcpsimp">1000</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2683mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="rms_02_0013__p2685mcpsimp">marker</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="rms_02_0013__p2687mcpsimp">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="rms_02_0013__p2689mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="rms_02_0013__p2691mcpsimp">Specifies the pagination parameter. You can use the <strong id="rms_02_0013__b2692mcpsimp">marker</strong> value returned in the previous request as the number of the first page of records to return in this request.</p>
|
|
<p id="rms_02_0013__p2693mcpsimp">Minimum length: <strong id="rms_02_0013__b2694mcpsimp">4</strong></p>
|
|
<p id="rms_02_0013__p2695mcpsimp">Maximum length: <strong id="rms_02_0013__b2696mcpsimp">400</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section2697mcpsimp"><h4 class="sectiontitle">Request Parameters</h4><p id="rms_02_0013__p2699mcpsimp">None</p>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section2700mcpsimp"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_02_0013__p2702mcpsimp"><strong id="rms_02_0013__b2703mcpsimp">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2704mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0013__row2711mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="rms_02_0013__p2713mcpsimp"><strong id="rms_02_0013__b2714mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="rms_02_0013__p2716mcpsimp"><strong id="rms_02_0013__b2717mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="rms_02_0013__p2719mcpsimp"><strong id="rms_02_0013__b2720mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2722mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0013__p2724mcpsimp">relations</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0013__p2726mcpsimp">Array of <a href="#rms_02_0013____d0e6777">Resource Relation</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0013__p2729mcpsimp">Specifies the list of the resource relationships.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2730mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0013__p2732mcpsimp">page_info</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0013__p2734mcpsimp"><a href="#rms_02_0013____d0e6846">Page Info</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0013__p2737mcpsimp">Specifies the pagination object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rms_02_0013____d0e6777"></a><a name="__d0e6777"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013____d0e6777" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Resource Relation</caption><thead align="left"><tr id="rms_02_0013__row2744mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="rms_02_0013__p2746mcpsimp"><strong id="rms_02_0013__b2747mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="rms_02_0013__p2749mcpsimp"><strong id="rms_02_0013__b2750mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="rms_02_0013__p2752mcpsimp"><strong id="rms_02_0013__b2753mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2755mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="rms_02_0013__p2757mcpsimp">relation_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="rms_02_0013__p2759mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="rms_02_0013__p2761mcpsimp">Specifies the relationship type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2762mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="rms_02_0013__p2764mcpsimp">from_resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="rms_02_0013__p2766mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="rms_02_0013__p2768mcpsimp">Specifies the type of the source resource.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2769mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="rms_02_0013__p2771mcpsimp">to_resource_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="rms_02_0013__p2773mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="rms_02_0013__p2775mcpsimp">Specifies the type of the associated resource.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2776mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="rms_02_0013__p2778mcpsimp">from_resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="rms_02_0013__p2780mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="rms_02_0013__p2782mcpsimp">Specifies the source resource ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2783mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="rms_02_0013__p2785mcpsimp">to_resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="rms_02_0013__p2787mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="rms_02_0013__p2789mcpsimp">Specifies the ID of the associated resource.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rms_02_0013____d0e6846"></a><a name="__d0e6846"></a><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013____d0e6846" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Page Info</caption><thead align="left"><tr id="rms_02_0013__row2796mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="rms_02_0013__p2798mcpsimp"><strong id="rms_02_0013__b2799mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="rms_02_0013__p2801mcpsimp"><strong id="rms_02_0013__b2802mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="rms_02_0013__p2804mcpsimp"><strong id="rms_02_0013__b2805mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2807mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="rms_02_0013__p2809mcpsimp">current_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="rms_02_0013__p2811mcpsimp">Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="rms_02_0013__p2813mcpsimp">Specifies the resource quantity on the current page.</p>
|
|
<p id="rms_02_0013__p2814mcpsimp">Minimum value: <strong id="rms_02_0013__b2815mcpsimp">0</strong></p>
|
|
<p id="rms_02_0013__p2816mcpsimp">Maximum value: <strong id="rms_02_0013__b2817mcpsimp">200</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2818mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="rms_02_0013__p2820mcpsimp">next_marker</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="rms_02_0013__p2822mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="rms_02_0013__p2824mcpsimp">Specifies the <strong id="rms_02_0013__b2825mcpsimp">marker</strong> value of the next page.</p>
|
|
<p id="rms_02_0013__p1699017133568">Minimum length: <strong id="rms_02_0013__b0651117125612">4</strong></p>
|
|
<p id="rms_02_0013__p179908136569">Maximum length: <strong id="rms_02_0013__b0716118175618">400</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_02_0013__p2826mcpsimp"><strong id="rms_02_0013__b2827mcpsimp">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2828mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0013__row2835mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="rms_02_0013__p2837mcpsimp"><strong id="rms_02_0013__b2838mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="rms_02_0013__p2840mcpsimp"><strong id="rms_02_0013__b2841mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="rms_02_0013__p2843mcpsimp"><strong id="rms_02_0013__b2844mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2846mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="rms_02_0013__p2848mcpsimp">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="rms_02_0013__p2850mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="rms_02_0013__p2852mcpsimp">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2853mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="rms_02_0013__p2855mcpsimp">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="rms_02_0013__p2857mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="rms_02_0013__p2859mcpsimp">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_02_0013__p2860mcpsimp"><strong id="rms_02_0013__b2861mcpsimp">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2862mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0013__row2869mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="rms_02_0013__p2871mcpsimp"><strong id="rms_02_0013__b2872mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="rms_02_0013__p2874mcpsimp"><strong id="rms_02_0013__b2875mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="rms_02_0013__p2877mcpsimp"><strong id="rms_02_0013__b2878mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2880mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="rms_02_0013__p2882mcpsimp">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="rms_02_0013__p2884mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="rms_02_0013__p2886mcpsimp">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2887mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="rms_02_0013__p2889mcpsimp">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="rms_02_0013__p2891mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="rms_02_0013__p2893mcpsimp">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_02_0013__p2894mcpsimp"><strong id="rms_02_0013__b2895mcpsimp">Status code: 404</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2896mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0013__row2903mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="rms_02_0013__p2905mcpsimp"><strong id="rms_02_0013__b2906mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="rms_02_0013__p2908mcpsimp"><strong id="rms_02_0013__b2909mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="rms_02_0013__p2911mcpsimp"><strong id="rms_02_0013__b2912mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2914mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="rms_02_0013__p2916mcpsimp">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="rms_02_0013__p2918mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="rms_02_0013__p2920mcpsimp">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2921mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="rms_02_0013__p2923mcpsimp">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="rms_02_0013__p2925mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="rms_02_0013__p2927mcpsimp">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_02_0013__p2928mcpsimp"><strong id="rms_02_0013__b2929mcpsimp">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table2930mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0013__row2937mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.1"><p id="rms_02_0013__p2939mcpsimp"><strong id="rms_02_0013__b2940mcpsimp">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.4.1.2"><p id="rms_02_0013__p2942mcpsimp"><strong id="rms_02_0013__b2943mcpsimp">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.13.2.4.1.3"><p id="rms_02_0013__p2945mcpsimp"><strong id="rms_02_0013__b2946mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row2948mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="rms_02_0013__p2950mcpsimp">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="rms_02_0013__p2952mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="rms_02_0013__p2954mcpsimp">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row2955mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.1 "><p id="rms_02_0013__p2957mcpsimp">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.4.1.2 "><p id="rms_02_0013__p2959mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.13.2.4.1.3 "><p id="rms_02_0013__p2961mcpsimp">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section2962mcpsimp"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="rms_02_0013__screen2964mcpsimp">GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/resources/{resource_id}/relations?direction=out&limit=1000</pre>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section2965mcpsimp"><h4 class="sectiontitle">Example Response</h4><p id="rms_02_0013__p2967mcpsimp"><strong id="rms_02_0013__b2968mcpsimp">Status code: 200</strong></p>
|
|
<p id="rms_02_0013__p2969mcpsimp">Operation succeeded.</p>
|
|
<ul id="rms_02_0013__ul2970mcpsimp"><li id="rms_02_0013__li2971mcpsimp">Example 1<pre class="screen" id="rms_02_0013__screen481115614232">[ {
|
|
"relation_type" : "isAttachedTo",
|
|
"from_resource_type" : "ecs.cloudservers",
|
|
"to_resource_type" : "evs.volumes",
|
|
"from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112",
|
|
"to_resource_id" : "0075ed19-59dd-49be-961d-117bb6fbfd3e"
|
|
}, {
|
|
"relation_type" : "contains",
|
|
"from_resource_type" : "ecs.cloudservers",
|
|
"to_resource_type" : "vpc.publicips",
|
|
"from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112",
|
|
"to_resource_id" : "3813d6d3-ef88-47b1-b343-cdf6390c6dcb"
|
|
}, {
|
|
"relation_type" : "isAssociatedWith",
|
|
"from_resource_type" : "ecs.cloudservers",
|
|
"to_resource_type" : "vpc.securityGroups",
|
|
"from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112",
|
|
"to_resource_id" : "8cca3002-00af-4812-a853-b7a6fbee06a4"
|
|
}, {
|
|
"relation_type" : "isAttachedTo",
|
|
"from_resource_type" : "ecs.cloudservers",
|
|
"to_resource_type" : "evs.volumes",
|
|
"from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112",
|
|
"to_resource_id" : "f4a107eb-4c6d-4dc8-88d8-de337923956f"
|
|
}, {
|
|
"relation_type" : "isContainedIn",
|
|
"from_resource_type" : "ecs.cloudservers",
|
|
"to_resource_type" : "vpc.vpcs",
|
|
"from_resource_id" : "6af96128-d58d-426c-91e0-b38144c0f112",
|
|
"to_resource_id" : "ff13d70d-17e5-4ec8-945a-c874e0db99d3"
|
|
} ]</pre>
|
|
</li><li id="rms_02_0013__li3003mcpsimp">Example 2<pre class="screen" id="rms_02_0013__screen12902121316249">{
|
|
"current_count" : 5,
|
|
"next_marker" : null
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section3008mcpsimp"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0013__table3010mcpsimp" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_02_0013__row3015mcpsimp"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="rms_02_0013__p3017mcpsimp"><strong id="rms_02_0013__b3018mcpsimp">Status Code</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="rms_02_0013__p3020mcpsimp"><strong id="rms_02_0013__b3021mcpsimp">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_02_0013__row3023mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0013__p3025mcpsimp">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0013__p3027mcpsimp">Operation succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row3028mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0013__p3030mcpsimp">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0013__p3032mcpsimp">Invalid parameter.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row3033mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0013__p3035mcpsimp">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0013__p3037mcpsimp">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row3038mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0013__p3040mcpsimp">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0013__p3042mcpsimp">Resource not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_02_0013__row3043mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0013__p3045mcpsimp">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0013__p3047mcpsimp">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_02_0013__section3048mcpsimp"><h4 class="sectiontitle">Error Codes</h4><p id="rms_02_0013__p3050mcpsimp">See <a href="rms_02_0018.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rms_02_0012.html">Resource Relationships</a></div>
|
|
</div>
|
|
</div>
|
|
|