Files
doc-exports/docs/wafd/api-ref/UpdatePremiumHostProtectStatus.html
qinweiwei 14cbe51752 wafd API 20260210 version
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: qinweiwei <qinweiwei@huawei.com>
Co-committed-by: qinweiwei <qinweiwei@huawei.com>
2026-04-21 11:31:19 +00:00

279 lines
22 KiB
HTML

<a name="UpdatePremiumHostProtectStatus"></a><a name="UpdatePremiumHostProtectStatus"></a>
<h1 class="topictitle1">Modifying the Protection Status of a Domain Name in Dedicated Mode</h1>
<div id="body1708331107508"><div class="section" id="UpdatePremiumHostProtectStatus__topic1111000000"><h4 class="sectiontitle">Function</h4><p id="UpdatePremiumHostProtectStatus__topic1111000002">This API is used to modify the protection status of a domain name connected to a dedicated WAF instance.</p>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__atuogenerate_1"><h4 class="sectiontitle">URI</h4><p id="UpdatePremiumHostProtectStatus__topic1111000004">PUT /v1/{project_id}/premium-waf/host/{host_id}/protect_status</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__topic1111000005" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000017">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdatePremiumHostProtectStatus__topic1111000021">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000023"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000025">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000027">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000029">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000031">Project ID. To obtain it, go to Cloud management console and hover the cursor over your username. On the displayed window, choose <strong id="UpdatePremiumHostProtectStatus__topic1111000032">My Credentials</strong>.Then, in the <strong id="UpdatePremiumHostProtectStatus__topic1111000033">Projects</strong> area, view <strong id="UpdatePremiumHostProtectStatus__topic1111000034">Project ID</strong> of the corresponding project.</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000035"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000037">host_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000039">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000041">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000043">ID of the domain name protected by the dedicated WAF engine</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__topic1111000044" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000052"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000054">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000056">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000058">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="UpdatePremiumHostProtectStatus__topic1111000060">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000062"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000064">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000066">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000068">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000070">You can obtain the ID by calling the <strong id="UpdatePremiumHostProtectStatus__topic1111000071">ListEnterpriseProject</strong> API of EPS.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000072"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000081"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000083">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000085">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000087">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdatePremiumHostProtectStatus__topic1111000089">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000091"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000093">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000095">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000097">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000099">Content type.</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000100"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000102">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000104">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000106">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000108">User token. It can be obtained by calling the IAM API (value of <strong id="UpdatePremiumHostProtectStatus__topic1111000109">X-Subject-Token</strong> in the response header).</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__request_UpdatePremiumHostProtectStatusRequestBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Request body parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000117"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000121">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000123">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdatePremiumHostProtectStatus__topic1111000125">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000127"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000129">protect_status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000131">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000133">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdatePremiumHostProtectStatus__topic1111000135">WAF status of the protected domain name.</p>
<ul id="UpdatePremiumHostProtectStatus__topic1111000136"><li id="UpdatePremiumHostProtectStatus__topic1111000137"><p id="UpdatePremiumHostProtectStatus__topic1111000138"><a name="UpdatePremiumHostProtectStatus__topic1111000137"></a><a name="topic1111000137"></a><strong id="UpdatePremiumHostProtectStatus__topic1111000139">0</strong>: The WAF protection is suspended. WAF only forwards requests destined for the domain name and does not detect attacks.</p>
</li><li id="UpdatePremiumHostProtectStatus__topic1111000140"><p id="UpdatePremiumHostProtectStatus__topic1111000141"><a name="UpdatePremiumHostProtectStatus__topic1111000140"></a><a name="topic1111000140"></a><strong id="UpdatePremiumHostProtectStatus__topic1111000142">1</strong>: The WAF protection is enabled. WAF detects attacks based on the policy you configure.</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000143"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdatePremiumHostProtectStatus__topic1111000145"><strong id="UpdatePremiumHostProtectStatus__topic1111000146">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__response_UpdatePremiumHostProtectStatusResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000153"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000155">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000157">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000159">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000161"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000163">protect_status</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000165">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000167">WAF status of the protected domain name.</p>
<ul id="UpdatePremiumHostProtectStatus__topic1111000168"><li id="UpdatePremiumHostProtectStatus__topic1111000169"><p id="UpdatePremiumHostProtectStatus__topic1111000170"><a name="UpdatePremiumHostProtectStatus__topic1111000169"></a><a name="topic1111000169"></a><strong id="UpdatePremiumHostProtectStatus__topic1111000171">0</strong>: The WAF protection is suspended. WAF only forwards requests destined for the domain name and does not detect attacks.</p>
</li><li id="UpdatePremiumHostProtectStatus__topic1111000172"><p id="UpdatePremiumHostProtectStatus__topic1111000173"><a name="UpdatePremiumHostProtectStatus__topic1111000172"></a><a name="topic1111000172"></a><strong id="UpdatePremiumHostProtectStatus__topic1111000174">1</strong>: The WAF protection is enabled. WAF detects attacks based on the policy you configure.</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdatePremiumHostProtectStatus__topic1111000175"><strong id="UpdatePremiumHostProtectStatus__topic1111000176">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__response_RestErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000183"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000185">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000187">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000189">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000191"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000193">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000195">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000197">Error code</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000198"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000200">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000202">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000204">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdatePremiumHostProtectStatus__topic1111000205"><strong id="UpdatePremiumHostProtectStatus__topic1111000206">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__response_RestErrorResponse_1" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000213"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000215">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000217">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000219">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000221"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000223">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000225">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000227">Error code</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000228"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000230">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000232">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000234">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdatePremiumHostProtectStatus__topic1111000235"><strong id="UpdatePremiumHostProtectStatus__topic1111000236">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__response_RestErrorResponse_2" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000243"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000245">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000247">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="UpdatePremiumHostProtectStatus__topic1111000249">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000251"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000253">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000255">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000257">Error code</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000258"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000260">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000262">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdatePremiumHostProtectStatus__topic1111000264">Error message</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000265"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="UpdatePremiumHostProtectStatus__topic1111000267">PUT https://{Endpoint}/v1/{project_id}/premium-waf/host/{host_id}/protect_status?enterprise_project_id=0
{
"protect_status" : 1
}</pre>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000268"><h4 class="sectiontitle">Example Responses</h4><p id="UpdatePremiumHostProtectStatus__topic1111000270"><strong id="UpdatePremiumHostProtectStatus__topic1111000271">Status code: 200</strong></p>
<p id="UpdatePremiumHostProtectStatus__topic1111000272">OK</p>
<pre class="screen" id="UpdatePremiumHostProtectStatus__topic1111000273">{
"protect_status" : 1
}</pre>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000274"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdatePremiumHostProtectStatus__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdatePremiumHostProtectStatus__topic1111000280"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdatePremiumHostProtectStatus__topic1111000282">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdatePremiumHostProtectStatus__topic1111000284">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdatePremiumHostProtectStatus__topic1111000286"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000288">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000290">OK</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000291"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000293">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000295">Invalid request</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000296"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000298">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000300">The token does not have the required permission.</p>
</td>
</tr>
<tr id="UpdatePremiumHostProtectStatus__topic1111000301"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdatePremiumHostProtectStatus__topic1111000303">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdatePremiumHostProtectStatus__topic1111000305">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdatePremiumHostProtectStatus__topic1111000306"><h4 class="sectiontitle">Error Codes</h4><p id="UpdatePremiumHostProtectStatus__topic1111000308">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_300000001.html">Managing Websites Protected in Dedicated Mode</a></div>
</div>
</div>