All Products
Search
Document Center

Cloud Firewall:ModifyResourceTypeAutoEnable

Last Updated:Jan 22, 2026

Modifies the automatic protection settings for new assets.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the response message.

Valid values:

  • en :

    English

  • zh :

    Chinese (default)

zh

ResourceTypeAutoEnable

string

No

Specifies whether to enable automatic protection for the resource type.

{"SlbEIP":true,"GaEIP":false,"EcsIPv6":true,"NatPublicIP":true,"SlbIPv6":false,"BastionHostIngressIP":false,"EIP":true,"NatEIP":true,"SlbPublicIP":true,"EcsEIP":true,"EniEIP":true,"HAVIP":true,"NlbEIP":true,"NlbIPv6":false,"EniEIPv6":false,"EcsPublicIP":true,"AlbIPv6":true,"BastionHostIP":false,"BastionHostEgressIP":true,"GaEIPV6":false,"AlbEIP":false}

RegionNo

string

No

The ID of the region.

cn-shanghai

Response elements

Element

Type

Description

Example

object

Response schema

RequestId

string

The ID of the request.

B14757D0-4640-4B44-AC67-7F558F****

Examples

Success response

JSON format

{
  "RequestId": "B14757D0-4640-4B44-AC67-7F558F****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.