PutDisableFwSwitch

Updated at:

Disables a firewall switch.

Operation description

This operation disables a firewall switch. After a firewall switch is disabled, traffic is no longer routed through Cloud Firewall.

QPS limit

The QPS limit for this operation is 10 requests per second per user. Calls that exceed this limit are throttled, which may affect your business.

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:PutDisableFwSwitch

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp deprecated

string

No

The source IP address of the request.

192.0.XX.XX

Lang

string

No

The language of the response. Valid values:

  • zh (default): Chinese

  • en: English

zh

IpaddrList

array

No

The IP addresses.

Note

You must specify a value for at least one of the following parameters: IpaddrList, RegionList, and ResourceTypeList.

["192.0.XX.XX","192.0.XX.XX"]

string

No

An IP address.

192.0.XX.XX

RegionList

array

No

The regions.

Note

You must specify a value for at least one of the following parameters: IpaddrList, RegionList, and ResourceTypeList.

["cn-hangzhou","cn-shanghai"]

string

No

The region ID.

cn-hangzhou

ResourceTypeList

array

No

The asset types. Valid values:

  • BastionHostEgressIP: The egress IP address of a bastion host.

  • BastionHostIngressIP: The ingress IP address of a bastion host.

  • EcsEIP: The Elastic IP Address (EIP) of an ECS instance.

  • EcsPublicIP: The public IP address of an ECS instance.

  • EIP: An Elastic IP Address (EIP).

  • EniEIP: The EIP of an elastic network interface (ENI).

  • NatEIP: The EIP of a NAT Gateway instance.

  • SlbEIP: The EIP of a Server Load Balancer (SLB) or Classic Load Balancer (CLB) instance.

  • SlbPublicIP: The public IP address of an SLB or CLB instance.

  • NatPublicIP: The public IP address of a NAT Gateway instance.

  • HAVIP: A High-availability Virtual IP (HAVIP).

  • NlbEIP: The EIP of a Network Load Balancer (NLB) instance.

  • ApiGatewayEIP: The public IP address of an API Gateway instance.

  • AlbEIP: The EIP of an Application Load Balancer (ALB) instance.

  • AiGatewayEIP: The public IP address of an AI Gateway instance.

  • GaEIP: The EIP of a Global Accelerator (GA) instance.

  • SwasEIP: The public IP address of a Simple Application Server instance.

  • EcdEIP: The public IP address of an Elastic Desktop Service (ECD) instance.

  • BastionHostIP: The IP address of a bastion host.

Note

You must specify a value for at least one of the following parameters: IpaddrList, RegionList, and ResourceTypeList.

["EcsPublicIp","NatEip"]

string

No

An asset type. Valid values:

  • BastionHostEgressIP: The egress IP address of a bastion host.

  • BastionHostIngressIP: The ingress IP address of a bastion host.

  • EcsEIP: The Elastic IP Address (EIP) of an ECS instance.

  • EcsPublicIP: The public IP address of an ECS instance.

  • EIP: An Elastic IP Address (EIP).

  • EniEIP: The EIP of an elastic network interface (ENI).

  • NatEIP: The EIP of a NAT Gateway instance.

  • SlbEIP: The EIP of a Server Load Balancer (SLB) or Classic Load Balancer (CLB) instance.

  • SlbPublicIP: The public IP address of an SLB or CLB instance.

  • NatPublicIP: The public IP address of a NAT Gateway instance.

  • HAVIP: A High-availability Virtual IP (HAVIP).

  • NlbEIP: The EIP of a Network Load Balancer (NLB) instance.

  • ApiGatewayEIP: The public IP address of an API Gateway instance.

  • AlbEIP: The EIP of an Application Load Balancer (ALB) instance.

  • AiGatewayEIP: The public IP address of an AI Gateway instance.

  • GaEIP: The EIP of a Global Accelerator (GA) instance.

  • SwasEIP: The public IP address of a Simple Application Server instance.

  • EcdEIP: The public IP address of an Elastic Desktop Service (ECD) instance.

  • BastionHostIP: The IP address of a bastion host.

Note

You must specify a value for at least one of the following parameters: IpaddrList, RegionList, and ResourceTypeList.

EcsPublicIP

MemberUid

string

No

The unique identifier of the member.

1234

IpVersion

string

No

The IP version.

4

In addition to the parameters described in this topic, you must specify common parameters when you call this operation. For more information, see Common parameters. For an example of the request format, see the Examples section.

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

B2841452-CB8D-4F7D-B247-38E1CF7334F8

Examples

Success response

JSON format

{
  "RequestId": "B2841452-CB8D-4F7D-B247-38E1CF7334F8"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorParamsNotEnough Parameters are insufficient. Parameters are insufficient.
400 ErrorDBSelect An error occurred while querying database. An error occurred while querying database.
400 ErrorInstanceStatusNotNormal This operation is not supported when the instance is in the current state. This operation is not supported when the instance is in the current state.
400 ErrorRecordLog An error occurred while updating the operation log. An error occurred while updating the operation log.
401 ErrorAuthentication An authentication error occurred. An authentication error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.