All Products
Search
Document Center

Microservices Engine:UpdateNacosConfig

Last Updated:Nov 13, 2024

Updates a Nacos configuration.

Operation description

Note The current API operation is not provided in Nacos SDK. For more information about Nacos SDK, see the official documentation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

mse-cn-7pp2a****
DataIdstringYes

The ID of the configuration.

ky-check-****.yml
GroupstringYes

The name of the group.

resource
AppNamestringNo

The name of the application.

postoffice
TagsstringNo

The list of tags.

2021-10-20
DescstringNo

The description of the configuration.

Basic configurations
TypestringNo

The format of the configuration. Supported formats include TEXT, JSON, XML, and HTML.

text
ContentstringNo

The content of the configuration.

attribute1=1221111\r\nattribute2=Chinese\r\nattribute3=abc11\r\nattribute4=1.00111
NamespaceIdstringNo

The ID of the namespace.

78b7af66-d15f-4541-b886-11ed81ecb6c0
Md5stringNo

The MD5 value of the configuration.

045439703a273a94306422b****
BetaIpsstringNo

The list of IP addresses where the beta release of the configuration is performed.

196.168.XX.XX
EncryptedDataKeystringNo

The encryption key.

122wdwe****
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The data structure.

HttpCodestring

The HTTP status code returned.

200
Messagestring

The message returned.

The request was successfully processed.
RequestIdstring

The ID of the request.

69AD2AA7-DB47-449B-941B-B14409DF****
ErrorCodestring

The error code returned if the request failed.

NoPermission
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true

Examples

Sample success responses

JSONformat

{
  "HttpCode": "200",
  "Message": "The request was successfully processed.\n",
  "RequestId": "69AD2AA7-DB47-449B-941B-B14409DF****",
  "ErrorCode": "NoPermission",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalRequestInvalid request:%sInvalid request: %s
400InvalidParameterParameter error:%sRequest parameter error: %s
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-28The internal configuration of the API is changed, but the call is not affectedView Change Details