public static class CreateIpControlRequest.CreateIpControlRequestIpControlPolicys
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
appId
The ID of the application that is restricted by the policy.
|
String |
cidrIp
The IP address or CIDR block involved in a policy.
|
| 构造器和说明 |
|---|
CreateIpControlRequest.CreateIpControlRequestIpControlPolicys() |
@NameInMap(value="AppId") public String appId
The ID of the application that is restricted by the policy. You can configure the AppId parameter only when the value of the IpControlType parameter is ALLOW.
* You can add only one application ID at a time.
* If this parameter is empty, no applications are restricted.
* If this parameter is not empty, not only IP addresses but also applications are restricted.
* If this parameter is not empty and no security authentication method is specified for the API, all API calls are restricted.
* If the value of the IpControlType parameter is REFUSE and the AppId parameter is not empty, API Gateway automatically ignores the AppId parameter and restricts only the IP addresses.
* Valid values of N in IpControlPolicys.N: `[1,100]`.
@NameInMap(value="CidrIp") public String cidrIp
The IP address or CIDR block involved in a policy.
* If you want to specify a policy when you create an ACL, this parameter is required.
* The IP address or CIDR block that is defined in each policy. Separate multiple IP addresses or CIDR blocks with semicolons (;). You can add a maximum of 10 IP addresses or CIDR blocks.
* Valid values of N in IpControlPolicys.N: `[1,100]`.
public CreateIpControlRequest.CreateIpControlRequestIpControlPolicys()
public static CreateIpControlRequest.CreateIpControlRequestIpControlPolicys build(Map<String,?> map) throws Exception
Exceptionpublic CreateIpControlRequest.CreateIpControlRequestIpControlPolicys setAppId(String appId)
public String getAppId()
public CreateIpControlRequest.CreateIpControlRequestIpControlPolicys setCidrIp(String cidrIp)
public String getCidrIp()
Copyright © 2023. All rights reserved.