VPC 환경에서 이용 가능합니다.
Ncloud 표준 표현을 적용한 API입니다.
클러스터의 DB 파라미터를 비동기로 변경합니다. 요청에 포함된 파라미터만 변경됩니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| PATCH | /mysql/v1/clusters/{clusterName}/config |
요청 헤더
Cloud DB Serverless API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud DB Serverless 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
clusterName |
String | Required | 클러스터 이름
|
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
applyWithoutRestart |
Boolean | Optional | 파라미터 적용 방식
|
요청 바디
요청 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
parameters |
Object | Required | 변경할 파라미터
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request PATCH 'https://clouddb-serverless.apigw.ntruss.com/mysql/v1/clusters/test-cluster-01/config?applyWithoutRestart=true' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/merge-patch+json' \
--data '{
"parameters": {
"max_connections": "500",
"wait_timeout": "3600"
}
}'
응답
응답 형식을 설명합니다.
응답 헤더
응답 헤더에 대한 설명은 다음과 같습니다.
| 필드 | 필수 여부 | 설명 |
|---|---|---|
retry-after |
- | 권장 폴링 간격 (초)
|
accept-patch |
- | 서버가 지원하는 PATCH 요청 미디어 타입
|
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
id |
String | - | Operation 식별자
|
done |
Boolean | - | 완료 여부
|
metadata |
Object | - | Operation 부가 정보 |
metadata.operationType |
String | - | 작업 유형
|
metadata.resourceType |
String | - | 대상 리소스
|
metadata.startDateTime |
String | - | 작업 시작 일시
|
metadata.endDateTime |
String | - | 작업 완료 일시
|
metadata.progress |
Integer | - | 진행률 (%)
|
results |
Object | - | 성공 결과
|
error |
Object | - | 실패 사유
|
응답 상태 코드
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 400 | InvalidParameter |
The specified parameter is invalid. |
파라미터 값이 허용 범위나 형식을 벗어난 경우 |
| 400 | InvalidState |
Indicates that the specified state is not a valid state for an event source. |
클러스터가 파라미터를 변경할 수 있는 상태가 아닌 경우 |
| 409 | Conflict |
The request could not be processed because of a conflict in the current status of the resource. |
다른 파라미터 변경 작업이 진행 중인 경우 |
| 409 | ResourceInUse |
The specified resource is in use. |
클러스터에 다른 작업이 진행 중인 경우 |
참고
Cloud DB Serverless API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Cloud DB Serverless 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"id": "f94009c9-3128-464c-ba93-a8aa32e454a5",
"done": false,
"metadata": {
"operationType": "UPDATE",
"resourceType": "config",
"startDateTime": "2026-10-13T12:45:00.812089904Z",
"endDateTime": null
},
"results": null
}