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

質問済み 1年前90ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ