API 文档
  • History
  • Introduction
  • API Category
  • Making API Requests
    • Request Structure
    • Common Params
    • Signature v3
    • Signature
    • Responses
  • Site APIs
    • CreateZone
    • DescribeIdentifications
    • ModifyZone
    • DeleteZone
    • ModifyZoneStatus
    • CheckCnameStatus
    • IdentifyZone
    • DescribeZones
    • VerifyOwnership
    • 导出区域配置
    • 导入区域配置
    • 描述区域配置导入结果
  • Acceleration Domain Management APIs
    • CreateAccelerationDomain
    • DescribeAccelerationDomains
    • ModifyAccelerationDomain
    • ModifyAccelerationDomainStatuses
    • DeleteAccelerationDomains
    • CreateSharedCNAME
    • BindSharedCNAME
    • DeleteSharedCNAME
  • Site Acceleration Configuration APIs
    • CreateRule
    • DeleteRules
    • DescribeHostsSetting
    • DescribeRules
    • DescribeRulesSetting
    • DescribeZoneSetting
    • ModifyRule
    • ModifyZoneSetting
  • 边缘函数API
    • 创建函数
    • 描述函数
    • 修改函数
    • 创建函数规则
    • 删除函数
    • 描述函数规则
    • 修改函数规则
    • 修改函数规则优先级
    • 删除函数规则
    • 描述函数运行时环境
    • 处理函数运行时环境
  • Alias Domain APIs
    • CreateAliasDomain
    • DescribeAliasDomains
    • ModifyAliasDomain
    • ModifyAliasDomainStatus
    • DeleteAliasDomain
  • Security Configuration APIs
    • CreateSecurityIPGroup
    • DescribeSecurityIPGroup
    • ModifySecurityIPGroup
    • DeleteSecurityIPGroup
    • DescribeOriginProtection
    • DescribeSecurityTemplateBindings
    • ModifySecurityPolicy
    • BindSecurityTemplateToEntity
    • DescribeSecurityIPGroupInfo
  • Layer 4 Application Proxy APIs
    • CreateL4Proxy
    • ModifyL4Proxy
    • ModifyL4ProxyStatus
    • DescribeL4Proxy
    • DeleteL4Proxy
    • CreateL4ProxyRules
    • ModifyL4ProxyRules
    • ModifyL4ProxyRulesStatus
    • DescribeL4ProxyRules
    • DeleteL4ProxyRules
    • CreateApplicationProxy
    • ModifyApplicationProxy
    • ModifyApplicationProxyStatus
    • DescribeApplicationProxies
    • DeleteApplicationProxy
    • CreateApplicationProxyRule
    • ModifyApplicationProxyRule
    • ModifyApplicationProxyRuleStatus
    • DeleteApplicationProxyRule
  • Content Management APIs
    • CreatePurgeTask
    • DescribePurgeTasks
    • CreatePrefetchTask
    • DescribePrefetchTasks
    • DescribeContentQuota
  • Data Analysis APIs
    • DescribeDDoSAttackData
    • DescribeDDoSAttackEvent
    • DescribeDDoSAttackTopData
    • DescribeOverviewL7Data
    • DescribeTimingL4Data
    • DescribeTimingL7AnalysisData
    • DescribeTopL7AnalysisData
    • DescribeTimingL7CacheData
    • DescribeTopL7CacheData
  • Log Service APIs
    • DownloadL7Logs
    • DownloadL4Logs
    • CreateCLSIndex
    • CreateRealtimeLogDeliveryTask
    • ModifyRealtimeLogDeliveryTask
    • DeleteRealtimeLogDeliveryTask
    • DescribeRealtimeLogDeliveryTasks
  • Billing APIs
    • CreatePlan
    • UpgradePlan
    • RenewPlan
    • ModifyPlan
    • IncreasePlanQuota
    • DestroyPlan
    • CreatePlanForZone
    • BindZoneToPlan
    • DescribeBillingData
    • DescribeAvailablePlans
  • Certificate APIs
    • DescribeDefaultCertificates
    • ModifyHostsCertificate
  • Load Balancing APIs
    • CreateOriginGroup
    • ModifyOriginGroup
    • DeleteOriginGroup
    • DescribeOriginGroup
    • 创建负载均衡器
    • 修改负载均衡器
    • 删除负载均衡器
    • 描述负载均衡器列表
    • 描述源站组健康状态
  • Custom Response Page APIs
    • CreateCustomizeErrorPage
    • DescribeCustomErrorPages
    • ModifyCustomErrorPage
    • DeleteCustomErrorPage
  • DNS记录API
    • 创建DNS记录
    • 删除DNS记录
    • 描述DNS记录
    • 修改DNS记录状态
    • 修改DNS记录
  • Diagnostic Tool APIs
    • DescribeIPRegion
  • Version Management APIs
    • CreateConfigGroupVersion
    • DeployConfigGroupVersion
    • DescribeConfigGroupVersionDetail
    • DescribeConfigGroupVersions
    • DescribeDeployHistory
    • DescribeEnvironments
  • Data Types
  • Error Codes
当前内容仅提供英语版本,中文版我们将尽快补充,感谢您的理解。

ModifySecurityIPGroup

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

This API is used to modify a security IP group.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter NameRequiredTypeDescription
ActionYesStringCommon Params. The value used for this API: ModifySecurityIPGroup.
VersionYesStringCommon Params. The value used for this API: 2022-09-01.
RegionNoStringCommon Params. This parameter is not required.
ZoneIdYesStringSite ID.
IPGroupYesIPGroupIP group configuration.
ModeYesStringOperation type. valid values:
  • append: add new IP addresses or set scheduled expiration time to IPGroup;
  • remove: delete specified IP addresses or their scheduled expiration time from IPGroup;
  • update: replace all Content of Content or ExpireInfo in IPGroup and modify the IPGroup name.
  • notes for append operation:
  • when adding a scheduled expiration time for an IP or range, it must be later than the current time. if the IP or range does not exist in the group, it must be added to the Content parameter simultaneously. if the IP or range already has an expiration time, the new time will overwrite the original one.
  • notes for remove operation:
  • when deleting an IP or range, related unexpired scheduled expiration times will also be deleted;
  • when deleting a scheduled expiration time, only currently unexpired times can be removed.
  • notes for update operation:
  • when replacing Content, unexpired times of ips or ranges not in Content will be deleted;
  • when replacing IPExpireInfo, the ips or ranges in IPExpireInfo must exist in Content or the IP group.
  • .

    3. Output Parameters

    Parameter NameTypeDescription
    RequestIdStringThe unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Adding IPs or Ranges to an IP Group

    To append the following IPs or ranges to an existing IP group: 1.1.1.1, 2.2.2.0/24.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [
                "1.1.1.1",
                "2.2.2.0/24"
            ]
        },
        "Mode": "append",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
        }
    }
    

    Example2 Adding IPs or Ranges to a Security IP Group and Configuring the Expiration Time

    This example shows you how to add the following IPs or ranges to an already existing security IP group: 1.1.1.1, 2.2.2.0/24, 3.3.3.3 and 4.4.4.4, and configure expiration time for 1.1.1.1, 2.2.2.0/24 and 4.4.4.4.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [
                "1.1.1.1",
                "2.2.2.0/24",
                "3.3.3.3",
                "4.4.4.4"
            ],
            "IPExpireInfo": [
                {
                    "ExpireTime": "2022-01-01T00:00:00+08:00",
                    "IPList": [
                        "1.1.1.1",
                        "4.4.4.4"
                    ]
                },
                {
                    "ExpireTime": "2022-01-02T00:00:00+08:00",
                    "IPList": [
                        "2.2.2.0/24"
                    ]
                }
            ]
        },
        "Mode": "append",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
        }
    }
    

    Example3 Modify the Expiry Date of IPs or Ranges in an IP Group

    The IP 1.1.1.1 in the IP group has a configured expiration time and now needs to change its scheduled expiration time.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [],
            "IPExpireInfo": [
                {
                    "ExpireTime": "2022-01-01T00:00:00+08:00",
                    "IPList": [
                        "1.1.1.1"
                    ]
                }
            ]
        },
        "Mode": "append",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
        }
    }
    

    Example4 Deleting IPs or Ranges From an IP Group

    This example shows you how to delete the IP 1.1.1.1 that exists in the IP group.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [
                "1.1.1.1"
            ]
        },
        "Mode": "remove",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "5bdc699c-68df-4cb7-9d0a-1c174b0374ad"
        }
    }
    

    Example5 Deleting the Expiry Date of IPs or Ranges in an IP Group

    The IP group contains 1.1.1.1 and is automatically configured with an expiry date. Now need to delete the expiry date of this IP.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [],
            "IPExpireInfo": [
                {
                    "IPList": [
                        "1.1.1.1"
                    ]
                }
            ]
        },
        "Mode": "remove",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
        }
    }
    

    Example6 Full Update of IPs or Ranges in a Security IP Group

    A full update of the IP group content is required. The IP or ranges to update are: 1.1.1.1, 2.2.2.0/24.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [
                "1.1.1.1",
                "2.2.2.0/24"
            ]
        },
        "Mode": "update",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "sh1u8a90-xxxx-49cd-swui-27cb34daa779"
        }
    }
    

    Example7 Full Update of IPs or Ranges and Expiry Date in a Security IP Group

    A full update of the IP group content is required. The new IPs or ranges are: 1.1.1.1, 2.2.2.0/24, 3.3.3.3. Set an expiration time for 1.1.1.1.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifySecurityIPGroup
    <Common request parameters>
    
    {
        "IPGroup": {
            "GroupId": 67,
            "Name": "test3",
            "Content": [
                "1.1.1.1",
                "2.2.2.0/24",
                "3.3.3.3"
            ],
            "IPExpireInfo": [
                {
                    "ExpireTime": "2022-01-01T00:00:00+08:00",
                    "IPList": [
                        "1.1.1.1"
                    ]
                }
            ]
        },
        "Mode": "update",
        "ZoneId": "zone-hduqwh"
    }
    

    Output Example

    {
        "Response": {
            "RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error CodeDescription
    InternalError.ProxyServerAn unknown error occurred in the backend server.
    InvalidParameter.SecurityInvalid parameter.
    ResourceNotFoundThe resource doesn’t exist.
    UnauthorizedOperation.CamUnauthorizedCAM is not authorized.
    UnauthorizedOperation.UnknownAn unknown error occurred in the backend server.