public class ConfigNetworkRegionBlockRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
config
The details of the configurations of blocked locations.
|
String |
instanceId
The ID of the instance.
|
| 构造器和说明 |
|---|
ConfigNetworkRegionBlockRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigNetworkRegionBlockRequest |
build(Map<String,?> map) |
String |
getConfig() |
String |
getInstanceId() |
ConfigNetworkRegionBlockRequest |
setConfig(String config) |
ConfigNetworkRegionBlockRequest |
setInstanceId(String instanceId) |
@NameInMap(value="Config") public String config
The details of the configurations of blocked locations. This parameter is a JSON string. The value consists of the following fields:
RegionBlockSwitch: the status of the location blacklist feature. This field is required and must be of the string type. Valid values:
Countries: the codes of the countries and areas from which you want to block requests. This field is optional and must be of the array type.
**
Note For more information about the codes of countries and areas, see Location parameters.
Provinces: the codes of the administrative regions in China from which you want to block requests. This field is optional and must be of the array type.
**
Note For more information about the codes of administrative regions in China, see Location parameters.
For example, [11,12] specifies Beijing and Tianjin.
This parameter is required.
example:{"RegionBlockSwitch":"off","Countries":[],"Provinces":[11,12,13,14,15,21,22,23,31,32,33,34,35,36,37,41,42,43,44,45,46,50,51,52,53,54,61,62,63,64,65,71,81,82]}
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
You can call the DescribeInstanceIds operation to query the IDs of all instances.
This parameter is required.
example:ddoscoo-cn-mp91j1ao****
public static ConfigNetworkRegionBlockRequest build(Map<String,?> map) throws Exception
Exceptionpublic ConfigNetworkRegionBlockRequest setConfig(String config)
public String getConfig()
public ConfigNetworkRegionBlockRequest setInstanceId(String instanceId)
public String getInstanceId()
Copyright © 2026. All rights reserved.