UpdateApplicationTemplate

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: Enabled.

  • Disable: Disabled. If this parameter is not specified or is left empty, the original value is retained.

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: Enabled.

  • Disable: Disabled. If this parameter is not specified or is left empty, the original value is retained.

Enable

UnknownAction

string

No

The action for unidentified applications. Valid values:

  • Allow: Allow.

  • Alert: Monitor.

  • Deny: Block. If this parameter is not specified or is left empty, the original value is retained.

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:

  • Allow: Allow.

  • Alert: Monitor.

  • Deny: Block.

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.