Applies a firewall template to configure firewall rules for multiple Simple Application Server instances at a time to improve configuration efficiency.
Operation description
If the port, protocol, or IP address of a firewall rule in the firewall template duplicates an existing rule of the instance, the new rule overwrites the existing rule regardless of whether the existing rule is enabled or disabled.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:ApplyFirewallTemplate |
update |
*FirewallTemplate
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the ListRegions operation to query available regions. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the value on your client and must ensure that the value is unique among different requests. The ClientToken parameter supports only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
| FirewallTemplateId |
string |
Yes |
The ID of the firewall template. |
ft-bcf1a7hrdq717**** |
| InstanceIds |
array |
Yes |
The instance IDs of the Simple Application Server instances. |
|
|
string |
Yes |
The ID of the Simple Application Server instance. You can specify up to 10 instance IDs. |
d9e781ff8a8f49ee812796f12799**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| TaskId |
string |
The ID of the template application task. |
aft-ikgt0bynitvs3**** |
Examples
Success response
JSON format
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"TaskId": "aft-ikgt0bynitvs3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.