PublishAppConfig
Saves and publishes the app configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:PublishAppConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The app ID. This parameter must be the AppId returned after an app is created by calling the AddAppConfig operation. |
txt_check_agent_01 |
| Config |
string |
No |
The configuration details. The value is a JSON string. The outer object contains the agentItemConfigs field, whose value is a serialized JSON array string (a double-nested structure). Each element in the agentItemConfigs array is an agent configuration object. Supported fields include: agentId (string, the agent ID. Use the actual value returned by AddAppAgent or a clear placeholder such as |
{"agentItemConfigs": "[{\"agentId\":\"ag.abcxxx\",\"enable\":true,\"name\":\"Agent 1\"}]"} |
| AgentId |
string |
No |
The agent ID. This parameter must be the AgentId returned after an agent is added by calling the AddAppAgent operation. |
ag.abcxxx |
| AgentName |
string |
No |
The agent name. |
Agent 1 |
| Enable |
boolean |
No |
Specifies whether to enable the agent. Valid values:
|
true |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| ResourceType |
string |
No |
The resource type. |
agent_text |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PortalResponse |
||
| Data |
boolean |
The returned data. |
true |
| RequestId |
string |
The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
Examples
Success response
JSON format
{
"Data": true,
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.%s | %s. | The request parameters are invalid. Please check the parameter values or value ranges and try again. |
| 400 | ResourceNotFound.%s | %s. | The requested resource does not exist. Please check the resource information and try again. |
| 400 | OperationFailed | %s. | Request processing failed, please try again later. If the problem is not resolved, contact technical support and provide RequestId. |
| 400 | MissingParameter.%s | %s. | The request is missing required parameters. Please provide them and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.