404 Error on Enabling Task ScaleIn Protection

0

Hi, I've been trying to update the protectionEnabled flag of my container using the endpoint .

The API and the request are as below :

PUT http://169.254.170.2/api/<container-id>/task-protection/v1/state HTTP/1.1

Request : '{"ProtectionEnabled":true,"ExpiresInMinutes":3}'

I'm receiving a 400 Bad Error from the API and unable to understand the issue with the request. Would appreciate if someone could help with this.

Response:

HttpResponseProxy{HTTP/1.1 400 Bad Request [Content-Type: application/json, X-Rate-Limit-Duration: 1, X-Rate-Limit-Limit: 80, X-Rate-Limit-Request-Forwarded-For: , X-Rate-Limit-Request-Remote-Addr: 169.254.172.2:48376, Date: Mon, 23 Jan 2023 22:20:50 GMT, Content-Length: 105] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 105,Chunked: false]}} @timestamp 1674512450139

질문됨 일 년 전90회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠