Domain name for API request: teo.intl.tencentcloudapi.com.
Modifies a security IP group.
A maximum of 20 requests can be initiated per second for this API.
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 Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifySecurityIPGroup. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Zone Id. |
| IPGroup | Yes | IPGroup | IP group configuration. |
| Mode | Yes | String | Operation type. Valid values: |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The 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. |
To append the following IPs or ranges to an existing IP group: 1.1.1.1, 2.2.2.0/24.
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"
}
{
"Response": {
"RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
}
}
Append the following IPs or ranges to an 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 times for 1.1.1.1, 2.2.2.0/24, and 4.4.4.4 respectively.
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"
}
{
"Response": {
"RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
}
}
1.1.1.1 in the IP group has a configured expiration time. You now need to change its scheduled expiration time.
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"
}
{
"Response": {
"RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
}
}
1.1.1.1 exists in the IP group and needs to be deleted now.
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"
}
{
"Response": {
"RequestId": "5bdc699c-68df-4cb7-9d0a-1c174b0374ad"
}
}
1.1.1.1 exists in the IP group and is automatically configured with an expiration time. The expiration time of this IP needs to be deleted now.
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"
}
{
"Response": {
"RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
}
}
A full update of the IP group content is required. The IPs or ranges to update are: 1.1.1.1, 2.2.2.0/24.
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"
}
{
"Response": {
"RequestId": "sh1u8a90-xxxx-49cd-swui-27cb34daa779"
}
}
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.
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"
}
{
"Response": {
"RequestId": "728cb059-8595-44c7-b6c6-b4a539ae823f"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError.ProxyServer | Unknown error occurs on the real server. |
| InvalidParameter.Security | Parameter error. |
| ResourceNotFound | The resource does not exist. |
| UnauthorizedOperation.CamUnauthorized | Unauthorized Cam operation. |
| UnauthorizedOperation.Unknown | Unknown error occurs on the real server. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários