DNS API 1017 version

Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
This commit is contained in:
Qin Ying, Fan 2022-10-20 13:26:00 +00:00 committed by zuul
parent 305c41bb57
commit a79d5bdbdb
87 changed files with 12169 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
version=""
language="en-us"
type=""

View File

@ -0,0 +1,12 @@
<a name="dns_api_50000"></a><a name="dns_api_50000"></a>
<h1 class="topictitle1">API Usage Guidelines</h1>
<div id="body8662426"><p id="dns_api_50000__en-us_topic_0020507759_p1645204610259">Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://<em id="dns_api_50000__en-us_topic_0020507759_i137795958918721">Endpoint/uri</em>. In the URL, <em id="dns_api_50000__en-us_topic_0020507759_i842352697154116">uri</em> indicates the resource path, that is, the API access path.</p>
<p id="dns_api_50000__p1552614442327">An endpoint is the <strong id="dns_api_50000__b255825310314">request address</strong> for calling an API. Endpoints vary depending on services and regions. For DNS endpoints, see <a href="https://docs.otc.t-systems.com/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
<ul id="dns_api_50000__ul79950321506"><li id="dns_api_50000__li1878518469161">Private zone APIs and related APIs call different endpoints based on the region.<p id="dns_api_50000__p1361911711177"><a name="dns_api_50000__li1878518469161"></a><a name="li1878518469161"></a>For example, call the API provided in <a href="dns_api_63000.html">Private Zone Management</a> to create a private zone, and call the API provided in <a href="dns_api_64000.html">Record Set Management</a> to add a record set to a private zone.</p>
</li><li id="dns_api_50000__li7995123212017">Public zone APIs, PTR record APIs, and related APIs call only endpoint dns.eu-de.otc.t-systems.com in the <strong id="dns_api_50000__b74817533612">eu-de</strong> region.<p id="dns_api_50000__p27460802018">For example, call the API provided in <a href="dns_api_62000.html">Public Zone Management</a> to create a public zone, call the API provided in <a href="dns_api_64000.html">Record Set Management</a> to add a record set to a public zone, and call the API provided in <a href="dns_api_66000.html">PTR Record Management</a> to add a PTR record.</p>
</li></ul>
<p id="dns_api_50000__en-us_topic_0020507759_p4816427810259">Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted using JSON messages, with the media type represented by <strong id="dns_api_50000__en-us_topic_0020507759_b1025950229154127">Application/json</strong>.</p>
<p id="dns_api_50000__en-us_topic_0020507759_p188289482118">For details about how to use APIs, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328001.html?tag=API Documents" target="_blank" rel="noopener noreferrer">API Usage Guidelines</a>.</p>
</div>

View File

@ -0,0 +1,21 @@
<a name="dns_api_60000"></a><a name="dns_api_60000"></a>
<h1 class="topictitle1">APIs</h1>
<div id="body1537840629204"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_61000.html">Version Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62000.html">Public Zone Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63000.html">Private Zone Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64000.html">Record Set Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66000.html">PTR Record Management</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67000.html">Tag Management</a></strong><br>
</li>
</ul>
</div>

View File

@ -0,0 +1,17 @@
<a name="dns_api_61000"></a><a name="dns_api_61000"></a>
<h1 class="topictitle1">Version Management</h1>
<div id="body1479345361042"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_61001.html">Listing All DNS API Versions</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_61002.html">Querying the DNS API Version</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
<a name="dns_api_62000"></a><a name="dns_api_62000"></a>
<h1 class="topictitle1">Public Zone Management</h1>
<div id="body1473066189482"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_62001.html">Creating a Public Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62002.html">Querying a Public Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62003.html">Querying Public Zones</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62004.html">Querying Name Servers in a Public Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62005.html">Deleting a Public Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_62006.html">Modifying a Public Zone</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
<a name="dns_api_63000"></a><a name="dns_api_63000"></a>
<h1 class="topictitle1">Private Zone Management</h1>
<div id="body1492847418235"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_63001.html">Description on Private Zone APIs</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63002.html">Creating a Private Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63003.html">Associating a Private Zone with a VPC</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63004.html">Disassociating a VPC from a Private Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63005.html">Querying a Private Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63006.html">Querying Private Zones</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63007.html">Querying Name Servers in a Private Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63008.html">Deleting a Private Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_63009.html">Modifying a Private Zone</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

View File

@ -0,0 +1,14 @@
<a name="dns_api_63001"></a><a name="dns_api_63001"></a>
<h1 class="topictitle1">Description on Private Zone APIs</h1>
<div id="body1539566963670"><p id="dns_api_63001__p28912802213212">Private zones are region-level resources, which are isolated and managed based on projects.</p>
<p id="dns_api_63001__p7508212115223">Before creating, querying, or deleting private zones, specify a project in <strong id="dns_api_63001__b842352706105548">X-Project-Id</strong> in the request header to perform the operations. If you do not specify one, the default project of the token will be used.</p>
<div class="note" id="dns_api_63001__note933211173279"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dns_api_63001__p107377219366">For details about <strong id="dns_api_63001__b306275889104934">X-Project-Id</strong>, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328001.html?tag=API Documents" target="_blank" rel="noopener noreferrer">API Usage Guidelines</a>.</p>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_63000.html">Private Zone Management</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
<a name="dns_api_64000"></a><a name="dns_api_64000"></a>
<h1 class="topictitle1">Record Set Management</h1>
<div id="body181603"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_64001.html">Creating a Record Set</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64002.html">Querying a Record Set</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64003.html">Querying All Record Sets</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64004.html">Querying Record Sets in a Zone</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64005.html">Deleting a Record Set</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_64006.html">Modifying a Record Set</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
<a name="dns_api_66000"></a><a name="dns_api_66000"></a>
<h1 class="topictitle1">PTR Record Management</h1>
<div id="body1479290255526"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_66001.html">Description on PTR Record APIs</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66002.html">Creating a PTR Record</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66003.html">Querying a PTR Record</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66004.html">Querying All PTR Records</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66005.html">Unsetting a PTR Record</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_66006.html">Modifying a PTR Record</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

View File

@ -0,0 +1,14 @@
<a name="dns_api_66001"></a><a name="dns_api_66001"></a>
<h1 class="topictitle1">Description on PTR Record APIs</h1>
<div id="body1539567025978"><p id="dns_api_66001__p48759720213236">PTR records are region-level resources, which are isolated and managed based on projects.</p>
<p id="dns_api_66001__p46814630115520">Before creating, querying, or unsetting PTR records, specify a project in <strong id="dns_api_66001__b842352706105548">X-Project-Id</strong> in the request header to perform the operations. If you do not specify one, the default project of the token will be used.</p>
<div class="note" id="dns_api_66001__note5579875395730"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dns_api_66001__p185733377304">For details about <strong id="dns_api_66001__b306275889104934">X-Project-Id</strong>, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328001.html?tag=API Documents" target="_blank" rel="noopener noreferrer">API Usage Guidelines</a>.</p>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_66000.html">PTR Record Management</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,83 @@
<a name="dns_api_66005"></a><a name="dns_api_66005"></a>
<h1 class="topictitle1">Unsetting a PTR Record</h1>
<div id="body1479290255544"><div class="section" id="dns_api_66005__section8391370"><h4 class="sectiontitle">Function</h4><p id="dns_api_66005__p18710936">Unset the PTR record to the default value.</p>
</div>
<div class="section" id="dns_api_66005__section8413469"><h4 class="sectiontitle">URI</h4><p id="dns_api_66005__p419815595714">PATCH /v2/reverse/floatingips/{region}:{floatingip_id}</p>
<div class="p" id="dns_api_66005__p189371615144314">For details, see <a href="#dns_api_66005__table48883615">Table 1</a>.
<div class="tablenoborder"><a name="dns_api_66005__table48883615"></a><a name="table48883615"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_66005__table48883615" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the URI</caption><thead align="left"><tr id="dns_api_66005__rf5eb1b4b32f8403bb0acf9d017b51ee5"><th align="left" class="cellrowborder" valign="top" width="22.64%" id="mcps1.3.2.3.2.2.5.1.1"><p id="dns_api_66005__a3c7e1e08fe294e3e82e1797588253df5"><strong id="dns_api_66005__b128535511507">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.37%" id="mcps1.3.2.3.2.2.5.1.2"><p id="dns_api_66005__adc5414917a3c400cb8857a02b29eb94d"><strong id="dns_api_66005__b593421527191713">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.3.2.2.5.1.3"><p id="dns_api_66005__a9ce61a6198d44964bdc496d82601e141"><strong id="dns_api_66005__b84235270619112">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.64%" id="mcps1.3.2.3.2.2.5.1.4"><p id="dns_api_66005__en-us_topic_0042318613_p517246718149"><strong id="dns_api_66005__b1323156175018">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="dns_api_66005__rfa1eb070d71448a9b2fbaa5917068657"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_66005__ae661ce94166a4825a0aad48ed9e3a0e3">region</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_66005__ac4b80f38e0ef4382be487f39931804d3">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_66005__a0a1bf1099829467e967689705fc84fe5">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_66005__a939d47bc868d44c290326fb1df4c5e00">Region of the tenant.</p>
</td>
</tr>
<tr id="dns_api_66005__r0588e91c222b4483b97fe5b2e56f79bb"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_66005__ac3563e9e05cc422ab54a9d288aa5810c">floatingip_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_66005__af475fd33d3fc4310b7f5a1f14e1fa9c9">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_66005__a2fe0b089a6a14db1a241b4d93dc9fd5a">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_66005__ad2fce4accef8431b86dcaca0bd572a60">EIP ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="dns_api_66005__section8612359"><h4 class="sectiontitle">Request</h4><ul id="dns_api_66005__ul18370535173152"><li id="dns_api_66005__li51947106173152">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dns_api_66005__table239794161830" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter in the request</caption><thead align="left"><tr id="dns_api_66005__row654560711830"><th align="left" class="cellrowborder" valign="top" width="20.757924207579244%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="dns_api_66005__p3415211830"><strong id="dns_api_66005__b162774213314533">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.987801219878016%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="dns_api_66005__p276632601830"><strong id="dns_api_66005__b242094656">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.71852814718528%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="dns_api_66005__p261316001830"><strong id="dns_api_66005__b1182184983">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.53574642535746%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="dns_api_66005__p362848191830"><strong id="dns_api_66005__b842352706112423">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="dns_api_66005__row533892641830"><td class="cellrowborder" valign="top" width="20.757924207579244%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="dns_api_66005__p295631171830">ptrdname</p>
</td>
<td class="cellrowborder" valign="top" width="21.987801219878016%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="dns_api_66005__p458022581830">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.71852814718528%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="dns_api_66005__p189954321830">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.53574642535746%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="dns_api_66005__p26704373161818">Domain name of the PTR record</p>
<p id="dns_api_66005__p622350301830">Set it to <strong id="dns_api_66005__b842352706172057">null</strong> in the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="dns_api_66005__li60905904173155">Example request<div class="p" id="dns_api_66005__p780111225117"><a name="dns_api_66005__li60905904173155"></a><a name="li60905904173155"></a>Unset the PTR record whose EIP ID is <strong id="dns_api_66005__b2292731115918">c5504932-bf23-4171-b655-b87a6bc59334</strong> to the default value:<pre class="codeblock" id="dns_api_66005__codeblock638351105117">PATCH https://{DNS_Endpoint}/v2/reverse/floatingips/<em id="dns_api_66005__i6383719518">region_id</em>:c5504932-bf23-4171-b655-b87a6bc59334</pre>
<pre class="screen" id="dns_api_66005__screen9383111115111">{
"ptrdname": null
}</pre>
</div>
</li></ul>
</div>
<div class="section" id="dns_api_66005__section10402369"><h4 class="sectiontitle">Response</h4><p id="dns_api_66005__p4047200691446">None</p>
</div>
<div class="section" id="dns_api_66005__section9249181042119"><h4 class="sectiontitle">Returned Value</h4><p id="dns_api_66005__dns_api_61001_p711102924515">If the API call returns a code of 2<em id="dns_api_66005__dns_api_61001_i113378598177">xx</em>, for example, 200, 202, or 204, the request is successful.</p>
<p id="dns_api_66005__dns_api_61001_p18506102624518">For details, see <a href="dns_api_80002.html">Status Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_66000.html">PTR Record Management</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
<a name="dns_api_67000"></a><a name="dns_api_67000"></a>
<h1 class="topictitle1">Tag Management</h1>
<div id="body1516848791557"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_67001.html">Adding Resource Tags</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67002.html">Deleting a Resource Tag</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67003.html">Adding or Deleting Resource Tags in Batches</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67004.html">Querying Tags of a Resource</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67005.html">Querying Tags of a Specified Resource Type</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_67006.html">Querying Resources by Tag</a></strong><br>
</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_60000.html">APIs</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,79 @@
<a name="dns_api_67002"></a><a name="dns_api_67002"></a>
<h1 class="topictitle1">Deleting a Resource Tag</h1>
<div id="body1532574607830"><div class="section" id="dns_api_67002__section2763065016101"><h4 class="sectiontitle">Function</h4><p id="dns_api_67002__a5d72130f13e04d60a9575a1cc0dbb70b">Delete a resource tag.</p>
<p id="dns_api_67002__ab14d8c324ae94a1ab7a2b23f5df13183">The API is idempotent.</p>
<p id="dns_api_67002__en-us_topic_0101709621_p384316420382">When you delete a tag that does not exist, the system reports that the tag does not exist.</p>
</div>
<div class="section" id="dns_api_67002__section53701671161015"><h4 class="sectiontitle">URI</h4><p id="dns_api_67002__p2304204202759">DELETE /v2/{project_id}/{resource_type}/{resource_id}/tags/{key}</p>
<div class="p" id="dns_api_67002__p20381244104518">For details, see <a href="#dns_api_67002__table6099729418149">Table 1</a>.
<div class="tablenoborder"><a name="dns_api_67002__table6099729418149"></a><a name="table6099729418149"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_67002__table6099729418149" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the URI</caption><thead align="left"><tr id="dns_api_67002__row3442661918149"><th align="left" class="cellrowborder" valign="top" width="22.64%" id="mcps1.3.2.3.2.2.5.1.1"><p id="dns_api_67002__p3709279118149"><strong id="dns_api_67002__b1645473612715">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.37%" id="mcps1.3.2.3.2.2.5.1.2"><p id="dns_api_67002__p5172606218149"><strong id="dns_api_67002__b8456143716275">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.3.2.2.5.1.3"><p id="dns_api_67002__p2906151418149"><strong id="dns_api_67002__b17463163811278">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.64%" id="mcps1.3.2.3.2.2.5.1.4"><p id="dns_api_67002__p517246718149"><strong id="dns_api_67002__b1641194017276">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="dns_api_67002__row1631668818149"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p4658337018149">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p1515661618149">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p1972638718149">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p5433349018149">Project ID. You can obtain it in <a href="dns_api_80007.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="dns_api_67002__row1923936518149"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p1488470218149">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p6481017518149">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p1513281718149">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p1779865118149">Resource type, which can be <strong id="dns_api_67002__b1433145642717">DNS-public_zone</strong>, <strong id="dns_api_67002__b143311656112713">DNS-private_zone</strong>, <strong id="dns_api_67002__b63321256102710">DNS-public_recordset</strong>, <strong id="dns_api_67002__b17332105622715">DNS-private_recordset</strong>, or <strong id="dns_api_67002__b933325612276">DNS-ptr_record</strong></p>
</td>
</tr>
<tr id="dns_api_67002__row1082100911220"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p408654311220">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p6257460611220">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p3537835811220">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p4707473411220">Resource ID</p>
</td>
</tr>
<tr id="dns_api_67002__row41443070202518"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67002__p16287090202522">key</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67002__p5844905202518">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67002__p3675282202518">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67002__p38832579202531">Tag key</p>
<p id="dns_api_67002__p1510133720226">The key cannot be left blank or be an empty string.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="dns_api_67002__section44958995161021"><h4 class="sectiontitle">Request</h4><ul id="dns_api_67002__ul1452214248273"><li id="dns_api_67002__li4522172492716">Parameter description<p id="dns_api_67002__p12501122810278"><a name="dns_api_67002__li4522172492716"></a><a name="li4522172492716"></a>None</p>
</li></ul>
<ul id="dns_api_67002__ul1551282619270"><li id="dns_api_67002__li195123265272">Example request<div class="p" id="dns_api_67002__p6792724194811"><a name="dns_api_67002__li195123265272"></a><a name="li195123265272"></a>Delete tags for the private zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:<pre class="codeblock" id="dns_api_67002__codeblock042122164818">DELETE https://{DNS_Endpoint}/v2/{project_id}/DNS-private_zone/ff8080825b8fc86c015b94bc6f8712c3/tags/{key}</pre>
</div>
</li></ul>
</div>
<div class="section" id="dns_api_67002__section40090803161031"><h4 class="sectiontitle">Response</h4><p id="dns_api_67002__afed808239b8446efb2de45b1d34ae627">None</p>
</div>
<div class="section" id="dns_api_67002__section9249181042119"><h4 class="sectiontitle">Returned Value</h4><p id="dns_api_67002__dns_api_61001_p711102924515">If the API call returns a code of 2<em id="dns_api_67002__dns_api_61001_i113378598177">xx</em>, for example, 200, 202, or 204, the request is successful.</p>
<p id="dns_api_67002__dns_api_61001_p18506102624518">For details, see <a href="dns_api_80002.html">Status Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_67000.html">Tag Management</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,97 @@
<a name="dns_api_67004"></a><a name="dns_api_67004"></a>
<h1 class="topictitle1">Querying Tags of a Resource</h1>
<div id="body1532575050481"><div class="section" id="dns_api_67004__section2763065016101"><h4 class="sectiontitle">Function</h4><p id="dns_api_67004__ae1daa13a06714b93a3e4e24b49bce484">Query tags of a specified resource.</p>
</div>
<div class="section" id="dns_api_67004__section53701671161015"><h4 class="sectiontitle">URI</h4><p id="dns_api_67004__p4113242310593">GET /v2/{project_id}/{resource_type}/{resource_id}/tags</p>
<div class="p" id="dns_api_67004__p0687614174712">For details, see <a href="#dns_api_67004__table6099729418149">Table 1</a>.
<div class="tablenoborder"><a name="dns_api_67004__table6099729418149"></a><a name="table6099729418149"></a><table cellpadding="4" cellspacing="0" summary="" id="dns_api_67004__table6099729418149" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the URI</caption><thead align="left"><tr id="dns_api_67004__rfcbc44a8a46b42f7a3399447cc33e6bc"><th align="left" class="cellrowborder" valign="top" width="22.64%" id="mcps1.3.2.3.2.2.5.1.1"><p id="dns_api_67004__a7a4aca13a83145a7b874bba426d18c4c"><strong id="dns_api_67004__b11489181153217">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.37%" id="mcps1.3.2.3.2.2.5.1.2"><p id="dns_api_67004__a8c3f3314bb0c42509b058a1de0687bf7"><strong id="dns_api_67004__b4367141233217">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.3.2.2.5.1.3"><p id="dns_api_67004__a274153726c4f4e068d17da9d20adb07a"><strong id="dns_api_67004__b0334201353213">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.64%" id="mcps1.3.2.3.2.2.5.1.4"><p id="dns_api_67004__en-us_topic_0123440237_p517246718149"><strong id="dns_api_67004__b1423241463214">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="dns_api_67004__r4012eb0589df431685512c63766dd227"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67004__a1aec9468ac3740a592e230ea8946b4a0">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67004__ac76f20b1516e4b15a400cc05c5c7ce34">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67004__a2d2fc344bf1b429dae66d8e374fa2ed0">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67004__a89702749d7e341b79567331aeb131cb1">Project ID. You can obtain it in <a href="dns_api_80007.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="dns_api_67004__r12097de3a65e4af7996e768bb2f012f7"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67004__a83d50bdf8f0147428c4bd7d748d16f3e">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67004__ad4ecbc7d4a34452f86a5163504ee39ea">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67004__a8c89d349f80447ff996ebe69a283837a">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67004__a05dbc56f4b6342738fbed75fdb3776e1">Resource type, which can be <strong id="dns_api_67004__b1280182613326">DNS-public_zone</strong>, <strong id="dns_api_67004__b628110263323">DNS-private_zone</strong>, <strong id="dns_api_67004__b428162663216">DNS-public_recordset</strong>, <strong id="dns_api_67004__b16282626183212">DNS-private_recordset</strong>, or <strong id="dns_api_67004__b128317266327">DNS-ptr_record</strong></p>
</td>
</tr>
<tr id="dns_api_67004__r959a126496424428b274abddaf342841"><td class="cellrowborder" valign="top" width="22.64%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="dns_api_67004__en-us_topic_0123440237_p408654311220">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.37%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="dns_api_67004__a8eaeadb4d70e418281a8f66c9e7f5039">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="dns_api_67004__a9656fece8a6142d2889a5fd15e6e354a">String</p>
</td>
<td class="cellrowborder" valign="top" width="42.64%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="dns_api_67004__a74c281cde6aa47fbad1fdc186589692d">Resource ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="dns_api_67004__section44958995161021"><h4 class="sectiontitle">Request</h4><ul id="dns_api_67004__ul574750143015"><li id="dns_api_67004__li19747804302">Parameter description<p id="dns_api_67004__p1781935306"><a name="dns_api_67004__li19747804302"></a><a name="li19747804302"></a>None</p>
</li><li id="dns_api_67004__li157478013307">Example request<div class="p" id="dns_api_67004__p5694504494"><a name="dns_api_67004__li157478013307"></a><a name="li157478013307"></a>Query tags of the private zone whose ID is ff8080825b8fc86c015b94bc6f8712c3:<pre class="codeblock" id="dns_api_67004__codeblock1614284874913">GET https://{DNS_Endpoint}/v2/{project_id}/DNS-private_zone/ff8080825b8fc86c015b94bc6f8712c3/tags</pre>
</div>
</li></ul>
</div>
<div class="section" id="dns_api_67004__section40090803161031"><h4 class="sectiontitle">Response</h4><ul id="dns_api_67004__u9e70747b9dc44369a544d33192931763"><li id="dns_api_67004__l5a7131630cbb4563b069b4020a05bb98">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dns_api_67004__t06efc88ee1e24ba281e64f0f72cd6ee2" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter in the response</caption><thead align="left"><tr id="dns_api_67004__r57b11ee36c3e4c078e8d340fede7ceb5"><th align="left" class="cellrowborder" valign="top" width="16.6%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="dns_api_67004__a241b6e5c9e234201af4fa904daa394f2"><strong>Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.74%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="dns_api_67004__a290e99af06484c05944b10c46ba3df86"><strong>Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.660000000000004%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="dns_api_67004__a7db4642355e5414282040a0dcd09f29f"><strong>Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="dns_api_67004__r4ab5e324a1ce47a2bd7898c5f5232aa1"><td class="cellrowborder" valign="top" width="16.6%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="dns_api_67004__a4e1ff91b33cc410d92c133a93b3d78f8">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20.74%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="dns_api_67004__ab36b944bfb32488cb24c09af397049ff">Array of object</p>
</td>
<td class="cellrowborder" valign="top" width="62.660000000000004%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="dns_api_67004__a6ac16924197f4ccc962fe4fa46dbdf4b">Tag list. For details, see <a href="dns_api_80006.html#dns_api_80006__table19530794112436">Table 2</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="dns_api_67004__l85753eaf3dcb470f90cd401dba8a0424">Example response<pre class="screen" id="dns_api_67004__s9af343edcb8a415c807b434cd5995730">{
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value2"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="dns_api_67004__section9249181042119"><h4 class="sectiontitle">Returned Value</h4><p id="dns_api_67004__dns_api_61001_p711102924515">If the API call returns a code of 2<em id="dns_api_67004__dns_api_61001_i113378598177">xx</em>, for example, 200, 202, or 204, the request is successful.</p>
<p id="dns_api_67004__dns_api_61001_p18506102624518">For details, see <a href="dns_api_80002.html">Status Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dns_api_67000.html">Tag Management</a></div>
</div>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
<a name="dns_api_80000"></a><a name="dns_api_80000"></a>
<h1 class="topictitle1">Public Parameters</h1>
<div id="body1537840629204"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="dns_api_80002.html">Status Code</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_80003.html">Error Code</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_80005.html">Enumeration Values</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_80006.html">Data Structure</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="dns_api_80007.html">Obtaining a Project ID</a></strong><br>
</li>
</ul>
</div>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More