forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiaoli <qiaoli@huawei.com> Co-committed-by: qiaoli <qiaoli@huawei.com>
306 lines
24 KiB
HTML
306 lines
24 KiB
HTML
<a name="ListProtectedVpcs"></a><a name="ListProtectedVpcs"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Number of Protected VPCs</h1>
|
|
<div id="body1708331107508"><div class="section" id="ListProtectedVpcs__section154191142112210"><h4 class="sectiontitle">Function</h4><p id="ListProtectedVpcs__p542044212227">This API is used to query information about protected VPCs.</p>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section1142011423228"><h4 class="sectiontitle">URI</h4><p id="ListProtectedVpcs__p5420184232215">GET /v1/{project_id}/vpcs/protection</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__table1742134215227" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="ListProtectedVpcs__row18421124219225"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ListProtectedVpcs__p154211142182210">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ListProtectedVpcs__p642104272210">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ListProtectedVpcs__p2042120423229">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ListProtectedVpcs__p10422174213222">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row4421164210226"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListProtectedVpcs__p184221042152219">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListProtectedVpcs__p17422154219221">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListProtectedVpcs__p1042213427221">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListProtectedVpcs__p642244218226">Project ID, which can be obtained by calling an API or from the console. For details, see <a href="cfw_02_0015.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__table11423542182216" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="ListProtectedVpcs__row1542314215225"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="ListProtectedVpcs__p842412421223">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="ListProtectedVpcs__p342444202219">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="ListProtectedVpcs__p5424114272212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="ListProtectedVpcs__p1642474212223">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row242364202212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListProtectedVpcs__p12424114282213">object_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListProtectedVpcs__p1542434292220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListProtectedVpcs__p1542419424227">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListProtectedVpcs__p1942554218221">Protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. You can obtain the ID by calling the <a href="ListFirewallDetail.html">API for querying firewall instances</a>. In the return value, find the ID in <strong id="ListProtectedVpcs__b1542517427222">data.records.protect_objects.object_id</strong> (The period [.] is used to separate different levels of objects). If the value of <strong id="ListProtectedVpcs__b1742564232214">type</strong> is <strong id="ListProtectedVpcs__b4425142122215">0</strong>, the protected object ID belongs to the Internet border. If the value of <strong id="ListProtectedVpcs__b842564272218">type</strong> is <strong id="ListProtectedVpcs__b2425164252220">1</strong>, the protected object ID belongs to the VPC border. Here, a protected object ID whose <strong id="ListProtectedVpcs__b242554214224">type</strong> is <strong id="ListProtectedVpcs__b242513428225">1</strong> is used. You can obtain the value of <strong id="ListProtectedVpcs__b104257420226">type</strong> from <strong id="ListProtectedVpcs__b542554213223">data.records.protect_objects.type</strong> (The period [.] is used to separate different levels of objects).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row1342317423227"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListProtectedVpcs__p17425442172215">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListProtectedVpcs__p1242564213226">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListProtectedVpcs__p1042519427221">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListProtectedVpcs__p11425204252214">Enterprise project ID, which is the ID of a project planned based on organizations. You can obtain the enterprise project ID by referring to <a href="cfw_02_0027.html">Obtaining an Enterprise Project ID</a>. If the enterprise project function is not enabled, the value is <strong id="ListProtectedVpcs__b1642574282215">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row2423164216229"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListProtectedVpcs__p184256427228">fw_instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListProtectedVpcs__p2042574210221">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListProtectedVpcs__p14262042172212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListProtectedVpcs__p1842612426225">Firewall ID, which can be obtained by referring to <a href="cfw_02_0028.html">Obtaining a Firewall ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section1426134252216"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="ListProtectedVpcs__row0426154232216"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ListProtectedVpcs__p442664211223">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ListProtectedVpcs__p14426194292213">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ListProtectedVpcs__p54274422226">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ListProtectedVpcs__p8427164215222">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row1142664212222"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListProtectedVpcs__p194271542182211">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListProtectedVpcs__p742794219221">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListProtectedVpcs__p1427114215224">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListProtectedVpcs__p19427114211227">User token. You can obtain the token by referring to <a href="cfw_02_0029.html">Obtaining a User Token</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row137531327287"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListProtectedVpcs__p16987185572214">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListProtectedVpcs__p1453216872313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListProtectedVpcs__p598785514223">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListProtectedVpcs__p1821149193417">Content type. It can only be set to application/json.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section3427742202215"><h4 class="sectiontitle">Response Parameters</h4><p id="ListProtectedVpcs__p2427742192216"><strong id="ListProtectedVpcs__b1742710425224">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__response_HttpGetVpcProtectsResponse" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="ListProtectedVpcs__row114272042172213"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="ListProtectedVpcs__p7428542102213">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="ListProtectedVpcs__p14428342112212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="ListProtectedVpcs__p19428164222211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row104281042102218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListProtectedVpcs__p142824242218">data</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListProtectedVpcs__p1542864222214"><a href="#ListProtectedVpcs__response_VPCProtectsVo">VPCProtectsVo</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListProtectedVpcs__p4428442172213">Return value for querying protected VPCs.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="ListProtectedVpcs__response_VPCProtectsVo"></a><a name="response_VPCProtectsVo"></a><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__response_VPCProtectsVo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>VPCProtectsVo</caption><thead align="left"><tr id="ListProtectedVpcs__row342974292217"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="ListProtectedVpcs__p1442964219225">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="ListProtectedVpcs__p1142974214222">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="ListProtectedVpcs__p144291642102213">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row742912424226"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p1842914211223">total</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p1643054232217">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p144301742122216">Total number of protected VPCs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row74293424226"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p1430114213227">self_total</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p1543074216223">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p6430134292219">The firewall can protect VPCs across accounts. <strong id="ListProtectedVpcs__b94303426226">self_total</strong> indicates the total number of protected VPCs in the current project.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row204295427226"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p343044242218">other_total</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p17430114214224">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p16430204211229">The east-west firewall protection can protect VPCs across accounts. <strong id="ListProtectedVpcs__b10430204232215">other_total</strong> indicates the number of protected VPCs in other projects.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row2429842162214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p4430144212226">protect_vpcs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p1543024202212">Array of <a href="#ListProtectedVpcs__response_VpcAttachmentDetail">VpcAttachmentDetail</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p174319429220">The east-west firewall protection can protect VPCs across accounts. <strong id="ListProtectedVpcs__b3431134212227">protect_vpcs</strong> indicates the list of all protected VPCs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row4429144262219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p114311642122216">self_protect_vpcs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p6431742192216">Array of <a href="#ListProtectedVpcs__response_VpcAttachmentDetail">VpcAttachmentDetail</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p643111429227">The east-west firewall protection can protect VPCs across accounts. <strong id="ListProtectedVpcs__b343124272217">self_protect_vpcs</strong> indicates the list of protected VPCs in the current project.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row6429194212210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p114311425224">other_protect_vpcs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p24311423221">Array of <a href="#ListProtectedVpcs__response_VpcAttachmentDetail">VpcAttachmentDetail</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p843134215224">The east-west firewall protection can protect VPCs across accounts. <strong id="ListProtectedVpcs__b3431164213229">other_protect_vpcs</strong> indicates the list of protected VPCs of other projects.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row20429134222213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListProtectedVpcs__p8431194242214">total_assets</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListProtectedVpcs__p743134214226">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListProtectedVpcs__p343154272214">Total number of VPC assets of a tenant.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="ListProtectedVpcs__response_VpcAttachmentDetail"></a><a name="response_VpcAttachmentDetail"></a><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__response_VpcAttachmentDetail" frame="border" border="1" rules="all"><caption><b>Table 6 </b>VpcAttachmentDetail</caption><thead align="left"><tr id="ListProtectedVpcs__row743264217228"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="ListProtectedVpcs__p5432542182216">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="ListProtectedVpcs__p1432942162214">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="ListProtectedVpcs__p15432542162214">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row6432142142214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ListProtectedVpcs__p2043204218227">vpc_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ListProtectedVpcs__p15432342102212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ListProtectedVpcs__p1943254212216">ID of a protected VPC added for east-west protection.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListProtectedVpcs__p44331042112214"><strong id="ListProtectedVpcs__b1743354218223">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__response_ErrorRsp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="ListProtectedVpcs__row343394222215"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="ListProtectedVpcs__p1043394218222">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="ListProtectedVpcs__p164331542142211">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="ListProtectedVpcs__p1433154232216">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row1433642142210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="ListProtectedVpcs__p543394214229">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="ListProtectedVpcs__p1843414212225">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="ListProtectedVpcs__p4434194212222">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row12433114252211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="ListProtectedVpcs__p114341042142215">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="ListProtectedVpcs__p1443444216223">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="ListProtectedVpcs__p12434204262216">Error description.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section74341242102217"><h4 class="sectiontitle">Example Requests</h4><p id="ListProtectedVpcs__p943416425225">Query the east-west firewall protection information about the projected object with the ID 8839526e-b804-4a15-a082-a2c797dce633 in project 0b2179bbe180d3762fb0c01a2d5725c7.</p>
|
|
<pre class="screen" id="ListProtectedVpcs__screen04343429223">https://{Endpoint}/v1/0b2179bbe180d3762fb0c01a2d5725c7/vpcs/protection?object_id=8839526e-b804-4a15-a082-a2c797dce633</pre>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section2043419429229"><h4 class="sectiontitle">Example Responses</h4><p id="ListProtectedVpcs__p6434742132216"><strong id="ListProtectedVpcs__b16434134219222">Status code: 200</strong></p>
|
|
<p id="ListProtectedVpcs__p1743494218227">Return value of east-west protection query.</p>
|
|
<pre class="screen" id="ListProtectedVpcs__screen84351642152216">{
|
|
"data" : {
|
|
"other_protect_vpcs" : [ ],
|
|
"other_total" : 0,
|
|
"protect_vpcs" : [ ],
|
|
"self_protect_vpcs" : [ ],
|
|
"self_total" : 0,
|
|
"total" : 0,
|
|
"total_assets" : 5
|
|
}
|
|
}</pre>
|
|
<p id="ListProtectedVpcs__p164361442162212"><strong id="ListProtectedVpcs__b443684215225">Status code: 400</strong></p>
|
|
<p id="ListProtectedVpcs__p1343664218221">Bad Request</p>
|
|
<pre class="screen" id="ListProtectedVpcs__screen1436342152210">{
|
|
"error_code" : "CFW.00109004",
|
|
"error_msg" : "HTTP request error."
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section1592104215228"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListProtectedVpcs__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ListProtectedVpcs__row12445342132214"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="ListProtectedVpcs__p3593154220229">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="ListProtectedVpcs__p1159374252212">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListProtectedVpcs__row1744574211227"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p15931842142216">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p1759394220226">Return value of east-west protection query.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row44451042162217"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p859314212218">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p19593842172213">Bad Request</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row204459425224"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p559364262219">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p175936426229">Unauthorized</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row164457423228"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p8593642142212">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p359334215221">Forbidden</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row14445174222210"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p35936421222">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p859354222215">Not Found</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListProtectedVpcs__row8445174252212"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ListProtectedVpcs__p659384252219">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ListProtectedVpcs__p1359374232216">Internal Server Error</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListProtectedVpcs__section115936422228"><h4 class="sectiontitle">Error Codes</h4><p id="ListProtectedVpcs__p95931942122218">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000000.html">Firewall Management</a></div>
|
|
</div>
|
|
</div>
|
|
|