Files
doc-exports/docs/obs/tool-obsutil/obs_11_0023.html
weihongmin1 a41a4e0331 OBS Util 0115 Version
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-02-17 10:18:57 +00:00

86 lines
6.2 KiB
HTML

<a name="obs_11_0023"></a><a name="obs_11_0023"></a>
<h1 class="topictitle1">Updating a Configuration File</h1>
<div id="body1542440101580"><div class="section" id="obs_11_0023__section1479112110815"><h4 class="sectiontitle">Function</h4><p id="obs_11_0023__p383175684016">You can update items in the <strong id="obs_11_0023__b6913161817">.obsutilconfig</strong> file, including the endpoint, AK, SK, and token.</p>
<p id="obs_11_0023__p11772825481"><a href="obs_11_0035.html">Configuration Parameters</a> describes parameters in the <strong id="obs_11_0023__b1292416325715">.obsutilconfig</strong> file.</p>
</div>
<div class="section" id="obs_11_0023__section1220752192216"><h4 class="sectiontitle">Command Line Structure</h4><ul id="obs_11_0023__ul10922428121013"><li id="obs_11_0023__li79221528121010">In Windows<pre class="screen" id="obs_11_0023__screen1230482601819">obsutil config -interactive [-crr] [-config=xxx]</pre>
</li><li id="obs_11_0023__li106087324101">In Linux or macOS<pre class="screen" id="obs_11_0023__screen82312020141914">./obsutil config -interactive [-crr] [-config=xxx]</pre>
</li></ul>
</div>
<div class="section" id="obs_11_0023__section16155112411445"><h4 class="sectiontitle">Examples</h4><ul id="obs_11_0023__ul155769421319"><li id="obs_11_0023__li115761746133">Take Windows as an example. Run the <strong id="obs_11_0023__b369616289395">obsutil config -interactive</strong> command to update the access keys and OBS endpoint in the default configuration file.<pre class="screen" id="obs_11_0023__screen41561524164419"><strong id="obs_11_0023__b1415632419447">obsutil config -interactive</strong>
Please input your ak:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your sk:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your endpoint:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your token:
xxxxxxxxxxxxxxxxxxxxxxxxx
Config file url:
C:\Users\tools\.obsutilconfig
Update config file successfully!</pre>
</li><li id="obs_11_0023__li1760158161313">Take Linux as an example. Run the <strong id="obs_11_0023__b127711743182719">./obsutil config -interactive</strong> command to update the access keys and OBS endpoint in the default configuration file.<pre class="screen" id="obs_11_0023__screen237717508120"><strong id="obs_11_0023__b037713505122">./obsutil config -interactive</strong>
Please input your ak:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your sk:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your endpoint:
xxxxxxxxxxxxxxxxxxxxxxxxx
Please input your token:
xxxxxxxxxxxxxxxxxxxxxxxxx
Config file url:
/root/.obsutilconfig
Update config file successfully!</pre>
</li></ul>
</div>
<div class="section" id="obs_11_0023__section6559191102418"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_11_0023__table10831182114445" frame="border" border="1" rules="all"><thead align="left"><tr id="obs_11_0023__row683212154419"><th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.4.2.1.4.1.1"><p id="obs_11_0023__p118329219446">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.999999999999996%" id="mcps1.3.4.2.1.4.1.2"><p id="obs_11_0023__p15137125919108">Optional or Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.4.2.1.4.1.3"><p id="obs_11_0023__p12832121184414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_11_0023__row16853134519558"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0023__p8853194565517">interactive</p>
</td>
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0023__p58549456559">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0023__p1585474515513">Updates settings in interactive mode.</p>
</td>
</tr>
<tr id="obs_11_0023__row95195143518"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0023__p185285143520">crr</p>
</td>
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0023__p466619556356">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0023__p1052135112358">Updates the settings of client-side cross-region replication.</p>
<div class="note" id="obs_11_0023__note1841535164114"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0023__p1839858112920">If this parameter is not specified, <strong id="obs_11_0023__b18914112963817">endpoint</strong>, <strong id="obs_11_0023__b195731832173813">ak</strong>, <strong id="obs_11_0023__b2762234103813">sk</strong>, and <strong id="obs_11_0023__b6572204315382">token</strong> will be updated.</p>
<p id="obs_11_0023__p784163511412">If this parameter is specified, <strong id="obs_11_0023__b13673175820438">endpointCrr</strong>, <strong id="obs_11_0023__b11638219449">akCrr</strong>, <strong id="obs_11_0023__b125108544411">skCrr</strong>, and <strong id="obs_11_0023__b1014619108447">tokenCrr</strong> will be updated.</p>
</div></div>
</td>
</tr>
<tr id="obs_11_0023__row9445101517387"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.1.4.1.1 "><p id="obs_11_0023__p153951131317">config</p>
</td>
<td class="cellrowborder" valign="top" width="28.999999999999996%" headers="mcps1.3.4.2.1.4.1.2 "><p id="obs_11_0023__p12395135316">Optional (additional parameter)</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.4.2.1.4.1.3 "><p id="obs_11_0023__p732245114477">The user-defined configuration file for executing the current command. For details about parameters that can be configured, see <a href="obs_11_0035.html">Configuration Parameters</a>.</p>
<p id="obs_11_0023__p43952034313">By specifying this parameter and a path, you can update parameters in the user-defined configuration file. Otherwise, parameters in the default configuration file will be updated.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_11_0022.html">Auxiliary Commands</a></div>
</div>
</div>