CreateApplicationTemplate
Creates an application program template. The template is at the user granularity and can be referenced by the access control policy for the Internet border, NAT, and virtual private cloud (VPC) firewalls. Before creating a template, ensure that the application program control feature is enabled and the number of templates does not exceed the quota for the instance specifications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:CreateApplicationTemplate |
create |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationTemplateName |
string |
Yes |
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 or be empty. |
ApplicationTemplate01 |
| Description |
string |
No |
The description of the application template. The description can be up to 128 characters in length and can be empty. |
Office network application control |
| TemplateStatus |
string |
Yes |
The overall switch status of the application template. Valid values:
|
Enable |
| BuiltInApplicationStatus |
string |
Yes |
The switch status of built-in application control. Only Enable is supported, which indicates that built-in application control is enabled. If you pass Disable, an error is returned. |
Enable |
| CustomRuleStatus |
string |
Yes |
The switch status of custom application rules. Valid values:
|
Enable |
| UnknownAction |
string |
Yes |
The action to take on unidentified applications. Valid values:
|
Alert |
| AddBuiltInApplicationCustomActions |
array<object> |
No |
The list of custom actions to configure for built-in applications. The application IDs in the list must be unique. |
|
|
object |
No |
|||
| ApplicationId |
integer |
No |
The ID of the application for which you want to configure a custom action. 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 perform on the application. Valid values:
|
Deny |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
| ApplicationTemplateId |
string |
The ID of the newly created application template. |
ati-4f0691c56b8d4f06 |
Examples
Success response
JSON format
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"ApplicationTemplateId": "ati-4f0691c56b8d4f06"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorBuiltInAppStatusDisabled | Parameter BuiltInApplicationActions are not Enabled. | Parameter BuiltInApplicationActions is not Enabled |
| 400 | ErrorAppTemplateQuotaLimit | The application template count exceed the quota. | The number of application templates exceeds the specification limit |
| 400 | ErrorApplicationControlFeatureDisabled | Application control feature not enabled. | The application control function is not activated |
| 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 | 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.