메인 콘텐츠로 건너뛰기
POST
/
endpoints
/
{endpoint_id}
/
scale
레플리카 스케일링
curl --request POST \
  --url https://external.aieev.cloud:5007/external/api/v1/endpoints/{endpoint_id}/scale \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "num_replicas": 3
}
'
{
  "endpoint_id": "51c910f7-ecde-4c6c-88f8-d8e37ca9d598",
  "previous_replicas": 1,
  "current_replicas": 3,
  "message": "Successfully scaled from 1 to 3 replicas"
}

인증

Authorization
string
header
필수

API Key를 Bearer 토큰으로 전달합니다. 프로젝트 개요의 API 키 메뉴에서 생성할 수 있습니다.

경로 매개변수

endpoint_id
string
필수

엔드포인트 고유 ID

본문

application/json
num_replicas
integer
필수

변경할 레플리카 수 (1-100)

필수 범위: 1 <= x <= 100
예시:

3

응답

스케일링 결과

endpoint_id
string

엔드포인트 고유 ID

예시:

"51c910f7-ecde-4c6c-88f8-d8e37ca9d598"

previous_replicas
integer

변경 전 레플리카 수

예시:

1

current_replicas
integer

변경 후 레플리카 수

예시:

3

message
string

결과 메시지

예시:

"Successfully scaled from 1 to 3 replicas"