All Products
Search
Document Center

Cloud Firewall:ModifyCfwInstance

Last Updated:Dec 23, 2025

Updates instance information for pay-as-you-go 2.0 users.

Operation description

Before calling this operation, ensure that you understand the billing methods and pricing for the pay-as-you-go edition of Cloud Firewall.

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

InstanceId

string

Yes

The ID of the Cloud Firewall instance.

cfw_elasticity_public_cn-zsk39m******

UpdateList

array<object>

Yes

A list of instance properties to update.

object

No

A list of instance properties to update.

Code

string

No

The code of the instance property to update. The following codes are supported:

  • `Code`: `MajorVersion`. Set `Value` to `2`. This is available only for pay-as-you-go 1.0 users to upgrade their instances to pay-as-you-go 2.0.

    Warning

    Make sure you understand the billing methods and pricing of pay-as-you-go 2.0.

    Warning

    Note that if log delivery is enabled before the upgrade, it will remain enabled after the upgrade, and logs will be delivered to a new Logstore.

  • `Code`: `ThreatIntelligence`. This is available only for pay-as-you-go 2.0 users to enable or disable the threat intelligence feature. Set `Value` to `1` to enable the feature or `0` to disable it.

  • `Code`: `Sdl`. This is available only for pay-as-you-go 2.0 users to enable or disable the sensitive data leak detection feature. Set `Value` to `1` to enable the feature or `0` to disable it.

Sdl

Value

string

No

The value for the specified `Code`. For valid values, see the description of the `Code` parameter.

1

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

F0F82705-CFC7-5F83-86C8-A063892F****

Examples

Success response

JSON format

{
  "RequestId": "F0F82705-CFC7-5F83-86C8-A063892F****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.