UpdateApplicationTemplate
Modifies the name, switch status, action for unidentified applications, or custom actions for built-in applications of an application template. The template ID must belong to the current Alibaba Cloud account.
Operation description
QPS limit
The queries per second (QPS) limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:UpdateApplicationTemplate |
update |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationTemplateId |
string |
Yes |
The ID of the application template to be modified. The template must exist within the current Alibaba Cloud account. |
ati-4f0691c56b8d4f06 |
| ApplicationTemplateName |
string |
No |
The name of the application template. The name must be 1 to 64 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), and periods (.). It cannot contain spaces. If this parameter is not specified or is left empty, the original value is retained. |
Application template 02 |
| Description |
string |
No |
The description of the application template. The description can be up to 128 characters in length. If this parameter is not specified, the original value is retained. If an empty string is specified, the description is cleared. |
Office network application control |
| TemplateStatus |
string |
No |
The master switch status of the application template. Valid values:
|
Enable |
| BuiltInApplicationStatus |
string |
No |
The switch status of built-in application control. Valid values: only Enable is supported. If you specify Disable, an error is returned. If this parameter is not specified or is left empty, the original value is retained. |
Enable |
| CustomRuleStatus |
string |
No |
The switch status of custom rules for applications. Valid values:
|
Enable |
| UnknownAction |
string |
No |
The action for unidentified applications. Valid values:
|
Alert |
| AddBuiltInApplicationCustomActions |
array<object> |
No |
The list of custom actions to be added or updated for built-in applications. This list is merged with RemoveBuiltInApplicationCustomActions by removing items first and then adding items. The same application ID cannot appear in both lists at the same time. |
|
|
object |
No |
|||
| ApplicationId |
integer |
No |
The ID of the application for which to set custom actions. The application must exist in the built-in application signature library and the ID cannot be 0. You can call the ListApplications operation to query the ID. |
10012150000 |
| Action |
string |
No |
The action to be performed on the application. Valid values:
|
Deny |
| RemoveBuiltInApplicationCustomActions |
array<object> |
No |
The list of built-in applications from which to remove custom actions. After removal, these applications revert to the default actions of the template. The same application ID cannot appear in AddBuiltInApplicationCustomActions at the same time. |
|
|
object |
No |
|||
| ApplicationId |
integer |
No |
The ID of the application from which to remove custom actions. The application must exist in the built-in application signature library. |
10012150000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
Examples
Success response
JSON format
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorBuiltInAppStatusDisabled | Parameter BuiltInApplicationActions are not Enabled. | Parameter BuiltInApplicationActions is not Enabled |
| 400 | ErrorParameterAction | Parameter action error. | Parameter action error |
| 400 | ErrorApplicationIdNotFound | Application ID not found. | Application ID does not exist |
| 400 | ErrorApplicationIdDuplicate | Application ID duplicate. | Duplicate Application ID |
| 400 | ErrorApplicationTemplateNotFound | Application template not found. | Application template does not exist |
| 400 | ErrorTemplateNameInvalid | Parameter template name invalid. | Template name error |
| 400 | ErrorDescriptionInvalid | Parameter description invalid. | Parameter description error |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.