Skip to main content

Parameters

Create parameter group

Creates a new parameter group based on the default parameter group.

Request
Create parameter group Request Syntax
curl -X POST "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups" \
-H "X-Auth-Token: {token-id}" \
-d '{Body}'
TypeParameterData TypeDescription
Header{token-id}*StringRefer to API authentication token
BodyparameterGroupId*StringID of the parameter group to be used as a base
name*StringName of the new parameter group
descriptionStringDescription of the new parameter group
Create parameter group Request Body Example
{
"parameterGroupId": "qwerqwer-7347-4d87-a49f-e705e91db2fb",
"name": "test-parameter-group",
"description": "test parameter group"
}
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
objectIdStringParameter group ID
Create parameter group Response Example
201 Created
content-length: 52
content-type: application/json; charset=UTF-8

{
"objectId": "12341234-1234-1234-1234-e705e91db2fb"
}

Get parameter group list

Retrieves a list of parameter groups. By passing the query parameter engineVersion={engine-version}, you can retrieve parameter groups for the specified engine version. By passing the query parameter parameterGroupType={parameter-group-type}, you can retrieve either default or custom parameter groups.

Request
List parameter groups Request Syntax
curl -X GET "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups?engineVersion={engine-version}&parameterGroupType={parameter-group-type}&clusterMode={clusterMode}" \
-H "X-Auth-Token: {token-id}"
TypeParameterData TypeDescription
Header{token-id}*StringRefer to API authentication token
Query{engine-version}StringSpecifies the engine version
Query{parameter-group-type}StringSpecifies the parameter group type
- default, custom
Query{clusterMode}StringAllowed values
- enabled, disabled
- If empty or not provided, both are selected
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
parameterGroups[]Object ArrayList of parameter groups
parameterGroups[].idStringParameter group ID
parameterGroups[].engineVersionStringRedis engine version of the parameter group
parameterGroups[].nameStringName of the parameter group
parameterGroups[].descriptionStringDescription of the parameter group
parameterGroups[].isDefaultBooleanIndicates if it is a default parameter group
parameterGroups[].defaultParameterGroupIdStringID of the default parameter group referenced by the custom parameter group
- If it's a default parameter group, this value is empty
parameterGroups[].rollbackAvailableBooleanIndicates if the parameters of the group can be rolled back
parameterGroups[].clusterModeEnabledBooleanIndicates if cluster mode is enabled for the parameter group
parameterGroups[].existErrorSyncBooleanIndicates if any clusters using this parameter group have sync failures
parameterGroups[].clusterSizeIntegerNumber of clusters using this parameter group
parameterGroups[].createdAtStringDate when the parameter group was created
List parameter groups Response Example

200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"parameterGroups": [
{
"id": "12341234-1234-1234-a49f-e705e91db2fb",
"engineVersion": "5.0.6",
"name": "test-parameter-group-1",
"description": "test param group 1",
"isDefault": false,
"defaultParameterGroupId": "12341234-1234-1234-1234-e705e91db2fb",
"rollbackAvailable": false,
"clusterModeEnabled": true,
"existErrorSync": false,
"clusterSize": 5,
"createdAt": 2024-03-06T02:35:13Z
},
{
"id": "56785678-5678-5678-a49f-e705e91db2fb",
"engineVersion": "6.2.5",
"name": "test-parameter-group-2",
"description": "test param group 2",
"isDefault": false,
"defaultParameterGroupId": "56785678-5678-5678-5678-e705e91db2fb",
"rollbackAvailable": true,
"clusterModeEnabled": true,
"existErrorSync": true,
"clusterSize": 3,
"createdAt": 2024-03-06T02:35:13Z
}
]
}

Get parameter group details

Retrieves detailed information about the specified parameter group.

Request
Get parameter group details Request Syntax
curl -X GET "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}" \
-H "X-Auth-Token: {token-id}"
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
idStringParameter group ID
nameStringName of the parameter group
descriptionStringDescription of the parameter group
engineVersionStringRedis engine version of the parameter group
isDefaultBooleanIndicates if it is a default parameter group
defaultParameterGroupIdStringID of the default parameter group
clusterModeEnabledBooleanIndicates if cluster mode is enabled for the parameter group
existErrorSyncBooleanIndicates if any clusters using this parameter group have sync failures
clusterSizeIntegerNumber of clusters using this parameter group
rollbackAvailableBooleanIndicates if the parameters of the group can be rolled back
parameters[]Object ArrayList of parameters
parameters[].parameterTypeStringParameter type
- STATIC, DYNAMIC, etc.
parameters[].parameterKeyStringParameter key
parameters[].parameterValueStringParameter value
parameters[].defaultParameterValueStringDefault value of the parameter
parameters[].dataTypeStringData type of the parameter value
- ENUM, STRING, INTEGER
parameters[].editableBooleanIndicates if the parameter value is editable
- STRING: regex
- NUMBER: value range or | for multiple values
ex) 5|10|11~100
- ENUM: separated by |
ex) string|string|string
parameters[].validationValueFormatStringValidity format for the parameter value
createdAtStringDate when the parameter group was created
Get parameter group details Response Example

200 Created
content-length: ...
content-type: application/json; charset=UTF-8
 
{
"id": "12341234-1234-1234-a49f-e705e91db2fb",
"name": "test-parameter-group",
"description": "test description",
"engineVersion": "6.2.5",
"isDefault": false,
"defaultParameterGroupId": "qwerqwer-7347-4d87-a49f-e705e91db2fb",
"clusterModeEnabled": false,
"existErrorSync": false,
"clusterSize": 5,
"parameters": [
{
"parameterType": "DYNAMIC",
"parameterKey": "param-key1",
"parameterValue": "param-val1",
"defaultParameterValue": "init-param-val1",
"dataType": "STRING",
"editable": true,
"validationValueFormat": "param-val1|param-val2|param-val3",
},
{
"parameterType": "DYNAMIC",
"parameterKey": "param-key2",
"parameterValue": "1",
"defaultParameterValue": "0",
"dataType": "NUMBER",
"editable": true,
"validationValueFormat": "0~10",
}
],
"rollbackAvailable": false,
"createdAt": 2024-03-06T02:35:13Z
}

Delete parameter group

Deletes a parameter group. There must be no clusters using the specified parameter group.

Request
Delete parameter group Request Syntax
curl -X DELETE "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}" \
-H "X-Auth-Token: {token-id}"
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
objectIdStringParameter group ID
Delete parameter group Response Example
200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"objectId": "qwerqwer-7347-4d87-a49f-e705e91db2fb"
}

Modify parameters

Modifies the parameter values of a parameter group.

Request
curl -X PATCH "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}" \
-H "X-Auth-Token: {token-id}"
-d '{Body}'
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
BodydescriptionStringDescription of the parameter group
parameters[]Object ArrayList of parameters to be modified
parameters[].parameterKeyStringKey of the parameter to be modified
parameters[].parameterValueStringValue of the parameter to be modified
applyModeStringSelect whether to apply changes sequentially or in parallel to connected clusters
- Choose when modifying parameters
• Sequential: sequential
• Parallel: parallel
Modify parameter group Request Body Example
{
"description": "test description",
"parameters: [
{
"parameterKey": "param-key1",
"parameterValue": "param-val1",
},
{
"parameterKey": "param-key2"
"parameterValue": "param-val2",
},
{
"parameterKey": "param-key3",
"parameterValue": "param-val3",
}
],
"applyMode": "sequential"
}
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
objectIdStringParameter group ID
Modify parameter group Response Example

200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"objectId": "qwerqwer-7347-4d87-a49f-e705e91db2fb"
}

Rollback parameter group

Reverts the parameter values of a parameter group to their previously used values.

Request
Rollback parameter group Request Syntax
curl -X POST "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}/rollback" \
-H "X-Auth-Token: {token-id}"
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
Rollback parameter group Request Body Example
{
"applyMode": "sequential"
}
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
objectIdStringParameter group ID
Rollback parameter group Response Example
200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"objectId": "qwerqwer-7347-4d87-a49f-e705e91db2fb"
}

Reset parameter group

Resets the parameters of a parameter group to the values of the default parameter group.

Request
Reset parameter group Request Syntax
curl -X POST "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}/reset" \
-H "X-Auth-Token: {token-id}"
-d '{Body}'
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
BodyapplyMode*StringSelect whether to apply changes sequentially or in parallel to connected clusters
• Sequential: sequential
• Parallel: parallel
Reset parameter group Request Body Example
{
"applyMode": "sequential"
}
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
objectIdStringParameter group ID
Reset parameter group Response Example
200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"objectId": "qwerqwer-7347-4d87-a49f-e705e91db2fb"
}

Get recent parameter group events

Retrieves events related to the parameter group from the last 7 days.

Request
Get recent parameter group events Request Syntax
curl -X GET "https://redis.kr-central-2.kakaocloud.com/v1/parameter-groups/{parameter-group-id or parameter-group-name}/events" \
-H "X-Auth-Token: {token-id}"
종류파라미터유형설명
URL{parameter-group-id or parameter-group-name}*String파라미터 그룹의 ID 또는 이름
Header{token-id}*StringAPI 인증 토큰 참고
Response
TypeParameterData TypeDescription
URL{parameter-group-id or parameter-group-name}*StringID or name of the parameter group
Header{token-id}*StringRefer to API authentication token
Response
Status CodeDescription
200Successful response to resource retrieval/deletion request
400The user's request is invalid, and the operation cannot proceed
401Request made by an unauthorized user
403Request made by a user without permission
404The requested resource does not exist
500Operation cannot proceed due to an internal error
FieldData TypeDescription
events[]Object ArrayList of events
events[].eventNameStringEvent name
events[].messageStringEvent message
events[].createdAtStringCreation date (RFC3339 format)
Get recent parameter group events Response Example
200 OK
content-length: ...
content-type: application/json; charset=UTF-8

{
"events": [
{
"eventName": "Apply Parameter",
"message": "",
"createdAt": "2024-05-07T12:00:01.123456Z",
},
{
"eventName": "Update Parameter",
"message": "",
"createdAt": "2024-05-07T12:00:00.000000Z",
}
]
}