forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
273 lines
24 KiB
HTML
273 lines
24 KiB
HTML
<a name="vpc_subnet01_0004"></a><a name="vpc_subnet01_0004"></a>
|
|
|
|
<h1 class="topictitle1">Updating Subnet Information</h1>
|
|
<div id="body45118907"><div class="section" id="vpc_subnet01_0004__section52667802"><h4 class="sectiontitle">Function</h4><p id="vpc_subnet01_0004__p30752875">This API is used to update information about a subnet.</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section4248175"><h4 class="sectiontitle">URI</h4><p id="vpc_subnet01_0004__p12970451105420">PUT /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id}</p>
|
|
<div class="p" id="vpc_subnet01_0004__p9969165223616"><a href="#vpc_subnet01_0004__table27806533">Table 1</a> describes the parameters.
|
|
<div class="tablenoborder"><a name="vpc_subnet01_0004__table27806533"></a><a name="table27806533"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table27806533" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="vpc_subnet01_0004__row25717600"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.1"><p id="vpc_subnet01_0004__p2750866">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.2"><p id="vpc_subnet01_0004__p21493617">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.3.2.2.4.1.3"><p id="vpc_subnet01_0004__p63261412">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__row23900756"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0004__p56913064">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0004__p46555465">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0004__p10487112">Specifies the project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row41240337122055"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0004__p52133024122055">vpc_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0004__p4532040312214">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0004__p58002403122055">Specifies the VPC ID of the subnet.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row48957711"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.1 "><p id="vpc_subnet01_0004__p6151694">subnet_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.2 "><p id="vpc_subnet01_0004__p28525238">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.3.2.2.4.1.3 "><p id="vpc_subnet01_0004__p28842926">Specifies the subnet ID, which uniquely identifies the subnet.</p>
|
|
<p id="vpc_subnet01_0004__p2094755419435">If you use the management console, the value of this parameter is the <strong id="vpc_subnet01_0004__vpc_subnet01_0002_b195522519461">Network ID</strong> value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section38233575"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table42592295151022" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameter</caption><thead align="left"><tr id="vpc_subnet01_0004__row13964015151022"><th align="left" class="cellrowborder" valign="top" width="12.4%" id="mcps1.3.3.2.2.5.1.1"><p id="vpc_subnet01_0004__p57343407151022">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.990000000000002%" id="mcps1.3.3.2.2.5.1.2"><p id="vpc_subnet01_0004__p14304400151022">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.3.2.2.5.1.3"><p id="vpc_subnet01_0004__p17805753151022">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.18%" id="mcps1.3.3.2.2.5.1.4"><p id="vpc_subnet01_0004__p32979923151022">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__row54128134151022"><td class="cellrowborder" valign="top" width="12.4%" headers="mcps1.3.3.2.2.5.1.1 "><p id="vpc_subnet01_0004__p22302713151022">subnet</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.990000000000002%" headers="mcps1.3.3.2.2.5.1.2 "><p id="vpc_subnet01_0004__p61689300151022">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.3.2.2.5.1.3 "><p id="vpc_subnet01_0004__p30777408151022"><a href="#vpc_subnet01_0004__table45027976">subnet</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.18%" headers="mcps1.3.3.2.2.5.1.4 "><p id="vpc_subnet01_0004__p22370187151022">Specifies the <a href="#vpc_subnet01_0004__table45027976">subnet objects</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet01_0004__table45027976"></a><a name="table45027976"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table45027976" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="vpc_subnet01_0004__b165193415474">subnet</strong> objects</caption><thead align="left"><tr id="vpc_subnet01_0004__row34359256"><th align="left" class="cellrowborder" valign="top" width="20.862086208620862%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_subnet01_0004__p31636323">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.11201120112011%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_subnet01_0004__p12405375">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.661466146614663%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_subnet01_0004__p3774167175923">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.364436443644365%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_subnet01_0004__p65311315">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__row55725192"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p17446726">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p3898676">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p37272111175923">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul4675135413562"><li id="vpc_subnet01_0004__li96751554105611">Specifies the subnet name. </li><li id="vpc_subnet01_0004__li12675354115617">The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row767394553412"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p1867344711345">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p5673647103420">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p7673164711348">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul196739477344"><li id="vpc_subnet01_0004__li1673134753419">Provides supplementary information about the subnet.</li><li id="vpc_subnet01_0004__li14673547113412">The value can contain no more than 255 characters and cannot contain angle brackets (< or >).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row11560657123818"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p2071659113815">ipv6_enable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p207195919384">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p7709020162010">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul62421610143917"><li id="vpc_subnet01_0004__li52421110173915">Specifies whether an IPv6 subnet can be created.</li><li id="vpc_subnet01_0004__li824211101393">The value can be <strong id="vpc_subnet01_0004__b16761151114415">true</strong> (enabled) or <strong id="vpc_subnet01_0004__b1976341194411">false</strong> (disabled).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row64356400"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p45485936">dhcp_enable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p60482217">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p66251028175923">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul16629112175711"><li id="vpc_subnet01_0004__li1362931214575">Specifies whether DHCP is enabled for the subnet.</li><li id="vpc_subnet01_0004__li116291812105720">The value can be <strong id="vpc_subnet01_0004__b189661516184114">true</strong> (enabled) or <strong id="vpc_subnet01_0004__b19966161614417">false</strong> (disabled).</li><li id="vpc_subnet01_0004__li662951225718">If this parameter is left blank, the system automatically sets it to <strong id="vpc_subnet01_0004__b1796611167418">true</strong> by default. If this parameter is set to <strong id="vpc_subnet01_0004__b842352706155749">false</strong>, newly created ECSs cannot obtain IP addresses, and usernames and passwords cannot be injected using Cloud-init. Exercise caution when performing this operation.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row62687"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p5077725">primary_dns</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p8642591">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p1069020123190">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul192812028185718"><li id="vpc_subnet01_0004__li16280142875716">Specifies the IP address of DNS server 1 on the subnet.</li><li id="vpc_subnet01_0004__li4281112816578">The value must be a valid IP address. IPv6 addresses are not supported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row40600350"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p294043">secondary_dns</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p23817504">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p8884643175923">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul8801931105718"><li id="vpc_subnet01_0004__li1801231175716">Specifies the IP address of DNS server 2 on the subnet.</li><li id="vpc_subnet01_0004__li1380113155713">The value must be a valid IP address. IPv6 addresses are not supported.<p id="vpc_subnet01_0004__p5281137173910"><a name="vpc_subnet01_0004__li1380113155713"></a><a name="li1380113155713"></a>The value of <strong id="vpc_subnet01_0004__b1363123158">secondary_dns</strong> must be different from that of <strong id="vpc_subnet01_0004__b01633617611">primary_dns</strong>.</p>
|
|
<p id="vpc_subnet01_0004__p277965612384">If there is only one DNS server address, only <strong id="vpc_subnet01_0004__b10134839362">primary_dns</strong> is displayed.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row4104651911530"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p3643375711530">dnsList</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p787474711538">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p10991411530">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_subnet01_0004__ul101991551584"><li id="vpc_subnet01_0004__li61995513586">Specifies the DNS server address list of a subnet. This field is required if you need to use more than two DNS servers.</li><li id="vpc_subnet01_0004__li819916511586">This parameter value is the superset of both DNS server address 1 and DNS server address 2. IPv6 addresses are not supported.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row2025452963714"><td class="cellrowborder" valign="top" width="20.862086208620862%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_subnet01_0004__p5714303263">extra_dhcp_opts</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11201120112011%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_subnet01_0004__p01223042610">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.661466146614663%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_subnet01_0004__p111573015263">Array of <a href="#vpc_subnet01_0004__table019517383270">extra_dhcp_opt</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.364436443644365%" headers="mcps1.3.3.3.2.5.1.4 "><p id="vpc_subnet01_0004__p52547295374">Specifies the NTP server address configured for the subnet. For details, see <a href="#vpc_subnet01_0004__table019517383270">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet01_0004__table019517383270"></a><a name="table019517383270"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table019517383270" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong id="vpc_subnet01_0004__vpc_subnet01_0001_b842352706165741">extra_dhcp_opt</strong> object</caption><thead align="left"><tr id="vpc_subnet01_0004__vpc_subnet01_0001_row1806141418109"><th align="left" class="cellrowborder" valign="top" width="21.740000000000002%" id="mcps1.3.3.4.2.5.1.1"><p id="vpc_subnet01_0004__vpc_subnet01_0001_p1948182811017"><strong id="vpc_subnet01_0004__vpc_subnet01_0001_b842352706195711">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.17%" id="mcps1.3.3.4.2.5.1.2"><p id="vpc_subnet01_0004__vpc_subnet01_0001_p19515288107">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.619999999999997%" id="mcps1.3.3.4.2.5.1.3"><p id="vpc_subnet01_0004__vpc_subnet01_0001_p755202861014">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.47%" id="mcps1.3.3.4.2.5.1.4"><p id="vpc_subnet01_0004__vpc_subnet01_0001_p66018281105"><strong id="vpc_subnet01_0004__vpc_subnet01_0001_b1716215324573">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__vpc_subnet01_0001_row19806161420105"><td class="cellrowborder" valign="top" width="21.740000000000002%" headers="mcps1.3.3.4.2.5.1.1 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p1834323611017">opt_value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.17%" headers="mcps1.3.3.4.2.5.1.2 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p1034310368108">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.619999999999997%" headers="mcps1.3.3.4.2.5.1.3 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p15343163651014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.47%" headers="mcps1.3.3.4.2.5.1.4 "><ul id="vpc_subnet01_0004__vpc_subnet01_0001_ul1734314363102"><li id="vpc_subnet01_0004__vpc_subnet01_0001_li2034343671010">Specifies the NTP server address configured for the subnet.</li><li id="vpc_subnet01_0004__vpc_subnet01_0001_li12343183661011">Constraints:<p id="vpc_subnet01_0004__vpc_subnet01_0001_p1984274292214"><a name="vpc_subnet01_0004__vpc_subnet01_0001_li12343183661011"></a><a name="vpc_subnet01_0001_li12343183661011"></a>The option <strong id="vpc_subnet01_0004__vpc_subnet01_0001_b18312174218176">ntp</strong> for <strong id="vpc_subnet01_0004__vpc_subnet01_0001_b2456833191713">opt_name</strong> indicates the NTP server configured for the subnet. Currently, only IPv4 addresses are supported. A maximum of four IP addresses can be configured, and each address must be unique. Multiple IP addresses must be separated using commas (,). The option <strong id="vpc_subnet01_0004__vpc_subnet01_0001_b1973813315213">null</strong> for <strong id="vpc_subnet01_0004__vpc_subnet01_0001_b9368121819213">opt_name</strong> indicates that no NTP server is configured for the subnet. The parameter value cannot be an empty string.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__vpc_subnet01_0001_row48061714191011"><td class="cellrowborder" valign="top" width="21.740000000000002%" headers="mcps1.3.3.4.2.5.1.1 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p33437363104">opt_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.17%" headers="mcps1.3.3.4.2.5.1.2 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p1634393613106">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.619999999999997%" headers="mcps1.3.3.4.2.5.1.3 "><p id="vpc_subnet01_0004__vpc_subnet01_0001_p14343113613104">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.47%" headers="mcps1.3.3.4.2.5.1.4 "><ul id="vpc_subnet01_0004__vpc_subnet01_0001_ul1934353641010"><li id="vpc_subnet01_0004__vpc_subnet01_0001_li1534373631020">Specifies the NTP server address name configured for the subnet.</li><li id="vpc_subnet01_0004__vpc_subnet01_0001_li11343133651014">Currently, the value can only be set to <strong id="vpc_subnet01_0004__vpc_subnet01_0001_b185618261310">ntp</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section19603649189"><h4 class="sectiontitle">Example Request</h4><ul id="vpc_subnet01_0004__ul1867319911184"><li id="vpc_subnet01_0004__li76731596187">Change the name of the subnet whose ID is 4779ab1c-7c1a-44b1-a02e-93dfc361b32d to <strong id="vpc_subnet01_0004__b1299314593461">subnet02</strong>, and also change its DNS and DHCP configurations.<pre class="screen" id="vpc_subnet01_0004__screen1528132931611">PUT https://{Endpoint}/v1/{project_id}/vpcs/{vpc_id}/subnets/4779ab1c-7c1a-44b1-a02e-93dfc361b32d
|
|
|
|
{
|
|
"subnet": {
|
|
"name": "subnet02",
|
|
"ipv6_enable": true,
|
|
"dhcp_enable": false,
|
|
"primary_dns": "114.xx.xx.115",
|
|
"secondary_dns": "114.xx.xx.116",
|
|
"extra_dhcp_opts": [
|
|
{
|
|
"opt_value": "10.100.0.33,10.100.0.34",
|
|
"opt_name": "ntp"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section8557861"><h4 class="sectiontitle">Response Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table55739938151015" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response parameter</caption><thead align="left"><tr id="vpc_subnet01_0004__row19341165151015"><th align="left" class="cellrowborder" valign="top" width="18.34%" id="mcps1.3.5.2.2.4.1.1"><p id="vpc_subnet01_0004__p23130572151015">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.509999999999998%" id="mcps1.3.5.2.2.4.1.2"><p id="vpc_subnet01_0004__p26547244151015">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.15%" id="mcps1.3.5.2.2.4.1.3"><p id="vpc_subnet01_0004__p2843132151015">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__row28967149151015"><td class="cellrowborder" valign="top" width="18.34%" headers="mcps1.3.5.2.2.4.1.1 "><p id="vpc_subnet01_0004__p64637734151015">subnet</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.509999999999998%" headers="mcps1.3.5.2.2.4.1.2 "><p id="vpc_subnet01_0004__p27267219151015"><a href="#vpc_subnet01_0004__table1210700">subnet</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.15%" headers="mcps1.3.5.2.2.4.1.3 "><p id="vpc_subnet01_0004__p13579079151015">Specifies the <strong id="vpc_subnet01_0004__b74871128114815">subnet</strong> objects.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="vpc_subnet01_0004__table1210700"></a><a name="table1210700"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_subnet01_0004__table1210700" frame="border" border="1" rules="all"><caption><b>Table 6 </b><strong id="vpc_subnet01_0004__b1926514211489">subnet</strong> objects</caption><thead align="left"><tr id="vpc_subnet01_0004__row43388973"><th align="left" class="cellrowborder" valign="top" width="24.57%" id="mcps1.3.5.3.2.4.1.1"><p id="vpc_subnet01_0004__p24845910">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.68%" id="mcps1.3.5.3.2.4.1.2"><p id="vpc_subnet01_0004__p697309418033">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.74999999999999%" id="mcps1.3.5.3.2.4.1.3"><p id="vpc_subnet01_0004__p6587942">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_subnet01_0004__row63861276"><td class="cellrowborder" valign="top" width="24.57%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet01_0004__p5380904">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.68%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet01_0004__p2794974018033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.74999999999999%" headers="mcps1.3.5.3.2.4.1.3 "><p id="vpc_subnet01_0004__p4849307">Specifies a resource ID in UUID format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_subnet01_0004__row43643771"><td class="cellrowborder" valign="top" width="24.57%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_subnet01_0004__p45484537">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.68%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_subnet01_0004__p4933643818033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.74999999999999%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_subnet01_0004__ul756817571315"><li id="vpc_subnet01_0004__li13201524194619">Specifies the status of the subnet.</li><li id="vpc_subnet01_0004__li18201524114619">The value can be <strong id="vpc_subnet01_0004__b89681916104112">ACTIVE</strong>, <strong id="vpc_subnet01_0004__b109681316104110">UNKNOWN</strong>, or <strong id="vpc_subnet01_0004__b996891654119">ERROR</strong>.<ul id="vpc_subnet01_0004__ul83391032184614"><li id="vpc_subnet01_0004__li175681357183117"><strong id="vpc_subnet01_0004__b12645124845010">ACTIVE</strong>: indicates that the subnet has been associated with a VPC.</li><li id="vpc_subnet01_0004__li5568157103111"><strong id="vpc_subnet01_0004__b14322450195016">UNKNOWN</strong>: indicates that the subnet has not been associated with a VPC.</li><li id="vpc_subnet01_0004__li85681932326"><strong id="vpc_subnet01_0004__b842352706151734">ERROR</strong>: indicates that the subnet is abnormal.</li></ul>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section895212509183"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="vpc_subnet01_0004__screen43925600144131">{
|
|
"subnet": {
|
|
"id": "4779ab1c-7c1a-44b1-a02e-93dfc361b32d",
|
|
"status": "ACTIVE"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section31981619"><h4 class="sectiontitle">Status Code</h4><p id="vpc_subnet01_0004__p18112112662914">See <a href="vpc_api_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="vpc_subnet01_0004__section85821649202813"><h4 class="sectiontitle">Error Code</h4><p id="vpc_subnet01_0004__p7233105282813">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_subnet01_0000.html">Subnet</a></div>
|
|
</div>
|
|
</div>
|
|
|