Creates a Nacos configuration.
Operation description
This operation is not available in Nacos SDKs. For SDK-specific APIs, use the Nacos SDK documentation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateNacosConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
mse_prepaid_public_cn-tl32**** |
| DataId |
string |
Yes |
The data ID. |
common.yaml |
| Group |
string |
Yes |
The group ID. |
alime-bridge-aliyun |
| AppName |
string |
No |
The application name. |
saledatacenter-task |
| Tags |
string |
No |
The configuration tags. |
Basic configurations |
| Desc |
string |
No |
The configuration description. |
Basic module configuration. |
| Type |
string |
No |
The configuration format. Valid values: TEXT, JSON, and XML. |
text |
| Content |
string |
No |
The configuration content. |
asdf |
| NamespaceId |
string |
No |
The namespace ID. |
547fd2a0-d0d6-****-80db2a1afb82 |
| BetaIps |
string |
No |
The IP addresses for the beta release. |
100.117.XX.XX,100.117.XX.XX |
| 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. |
202 |
| RequestId |
string |
The request ID. |
673DBD43-569E-510F-B3DE-20BB8DFEB20A |
| Message |
string |
The error message. |
The request was successfully processed. |
| ErrorCode |
string |
The error code if the request failed. |
mse-100-000 |
| Code |
string |
The response code. |
1 |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"HttpCode": "202",
"RequestId": "673DBD43-569E-510F-B3DE-20BB8DFEB20A",
"Message": "The request was successfully processed.\n",
"ErrorCode": "mse-100-000",
"Code": "1",
"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.