Updates a Nacos configuration.
Operation description
This API operation is not available in the Nacos SDK. For more information about the Nacos SDK, see the official documentation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateNacosConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
mse-cn-7pp2a**** |
| DataId |
string |
Yes |
The ID of the configuration. |
ky-check-****.yml |
| Group |
string |
Yes |
The name of the group. |
resource |
| AppName |
string |
No |
The name of the application. |
postoffice |
| Tags |
string |
No |
The list of tags. |
2021-10-20 |
| Desc |
string |
No |
The description of the configuration. |
Basic configurations |
| Type |
string |
No |
The format of the configuration. Supported formats include TEXT, JSON, XML, and HTML. |
text |
| Content |
string |
No |
The content of the configuration. |
attribute1=1221111\r\nattribute2=Chinese\r\nattribute3=abc11\r\nattribute4=1.00111 |
| NamespaceId |
string |
No |
The ID of the namespace. |
78b7af66-d15f-4541-b886-11ed81ecb6c0 |
| Md5 |
string |
No |
The MD5 value of the configuration. |
045439703a273a94306422b**** |
| BetaIps |
string |
No |
The IP addresses for the beta release of the configuration. |
196.168.XX.XX |
| EncryptedDataKey |
string |
No |
The encryption key. |
122wdwe**** |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| HttpCode |
string |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
The request was successfully processed. |
| RequestId |
string |
The ID of the request. |
69AD2AA7-DB47-449B-941B-B14409DF**** |
| ErrorCode |
string |
The error code returned if the request failed. |
NoPermission |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"HttpCode": "200",
"Message": "The request was successfully processed.\n",
"RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
"ErrorCode": "NoPermission",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.