Domain name for API request: teo.tencentcloudapi.com.
This API is used to create a custom block page.
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: CreateSecurityDropPage. |
Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ZoneId | Yes | String | The site ID. You must specify either "ZoneId+Entity" or "TemplateId". |
Entity | Yes | String | The subdomain name/L4 proxy. You must specify either "ZoneId+Entity" or "TemplateId". |
Name | Yes | String | Name of the block page file. |
Content | Yes | String | The block page content, which is passed after being URL-encoded. |
Type | Yes | String | How to build the block page. Values:file : Upload a file to be URL-encoded.url : Upload a URL to be URL-encoded. |
Module | Yes | String | The module that applies on the block page. Values:waf : Managed rulesrate : Custom rules |
TemplateId | No | String | The template ID. You must specify either this field or "ZoneId+Entity". |
Parameter Name | Type | Description |
---|---|---|
PageId | Integer | ID of the custom page. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
In this example:
The URL is URL-encoded to create a block page.
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSecurityDropPage
<Common request parameters>
{
"Content": "https%3A%2F%2Fcloud.tencent.com%2Fabout",
"Entity": "www.example.com",
"Name": "hello.html",
"ZoneId": "zone-abcdefg",
"Type": "url",
"Module": "waf"
}
{
"Response": {
"PageId": 1234546,
"RequestId": "13j90e13-kf204fk0-wf0k0af"
}
}
In this example:
The file is URL-encoded to create a block page.
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSecurityDropPage
<Common request parameters>
{
"Content": "%3Chtml%3E%0Ahello%20world%2C%20uuid%3A%20%3A%3AEO_REQ_ID%0A%3C%2Fhtml%3E",
"Entity": "www.example.com",
"Name": "hello.html",
"ZoneId": "zone-abcdefg",
"Type": "file",
"Module": "waf"
}
{
"Response": {
"PageId": 1234546,
"RequestId": "wwefoj-ewij23rkf-34t98jrg"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Was this page helpful?