You need to enable JavaScript to run this app.
Cache for Redis

Cache for Redis

Copy page
Download PDF
Parameter management
CreateParameterGroup
Copy page
Download PDF
CreateParameterGroup
Call the CreateParameterGroup API to create a parameter template.​
Request type​
Synchronous request.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameters​
Type​
Required​
Example​
Description​
Name​
String​
Yes​
test_temp​
Name of the parameter template. The name must meet the following requirements:​
  • It cannot start with a number or hyphen (-).​
  • It can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-).​
  • The length should be 2 to 64 characters.​
EngineVersion​
String​
Yes​
7.0​
Redis database version supported by the parameter template. Valid values:​
  • 7.0: Redis 7.0.​
  • 6.0: Redis 6.0.​
  • 5.0: Redis 5.0.​
Description​
String​
No​
test template​
Remarks for the parameter template, with a maximum length of 200 characters.​
tip​
If this parameter is not set, the remark of the new parameter template will be empty by default.​
ParamValues​
Array of ParamValue​
Yes​
Refer to the sample request.​
List of parameter information to be included in the new parameter template.​
tip​
  • Each parameter template must contain at least one parameter.​
​
ParamValue​
​
Parameters​
Type​
Required​
Example​
Description​
Name​
String​
Yes​
maxmemory-policy​
The parameter names to be included in the parameter template.​
tip​
You can call the DescribeDBInstanceParams interface to query the configurable parameter information supported by the target Redis instance, including parameter names, supported value ranges, and so on.​
Value​
String​
Yes​
allkeys-lru​
The parameter value set for the corresponding parameter.​
tip​
You can call the DescribeDBInstanceParams interface to query the configurable parameter information supported by the target Redis instance, including parameter names, supported value ranges, and so on.​
​
Response parameters​
​
Parameters​
Type​
Example​
Description​
ParameterGroupId​
String​
pg-cnlfm5yzmxehmkwbzk3​
Parameter templates ID.​
​
Example​
Request example​
​
POST https://redis.cn-beijing.volcengineapi.com/?Action=CreateParameterGroup&Version=2020-12-07 HTTP/1.1​
Host: redis.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=utf-8​
X-Date: 20201103T104027Z​
Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/Redis/request,SignedHeaders=content-type;host;x-date,Signature=****​
{​
"Name": "test_temp",​
"EngineVersion": "7.0",​
"Description": "test template",​
"ParamValues": [​
{​
"Name": "maxmemory-policy",​
"Value": "allkeys-lru"​
}​
]​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420100232280022D31",​
"Action": "CreateParameterGroup",​
"Version": "2020-12-07",​
"Service": "Redis",​
"Region": "cn-beijing"​
},​
"Result": {​
"ParameterGroupId": "pg-cnlfm5yzmxehmkwbzk3"​
}​
}​
​
Error code​
For more details, see Error code.​
Last updated: 2026.09.21 15:01:10