Compute Engine을 사용하면 이미지를 지원 중단 상태로 설정하여 소유하고 있는 커스텀 이미지의 지원을 중단할 수 있습니다. 각 지원 중단 상태에 따라 서버에서 다른 응답이 반환되므로 지원되지 않는 이미지로부터의 사용자 전환을 점차적으로 유도할 수 있습니다. Trusted Cloud 콘솔, Google Cloud CLI 또는 Compute Engine API 메서드를 사용하여 이미지의 지원을 중단합니다.
지원 중단 상태
다음과 같은 지원 중단 상태가 지원됩니다.
ACTIVE
: 이미지가 활성 상태이며 정상적으로 사용할 수 있습니다. 이미지 계열은 계열의 가장 최근의 활성 이미지를 가리킵니다.DEPRECATED
: 이미지는 지원 중단으로 표시되지만 아직 VM을 생성하는 데 사용될 수 있습니다. 이 이미지에 대한 새 링크가 허용됩니다. 이미지 계열에 있는 최신 이미지인 경우에도 이미지 계열에서 이 이미지를 더 이상 가리키지 않습니다.Google Cloud CLI를 사용하여 지원 중단된 이미지로 VM을 만들면 요청이 경고와 함께 성공합니다.
OBSOLETE
: 이미지가 사용되지 않음으로 표시되고 더 이상 사용할 수 없습니다. 요청에 이 이미지를 사용하려고 하면 오류 메시지가 반환됩니다. 이 이미지의 기존 링크는 계속 허용됩니다.DELETED
: 이 이미지는 삭제되었습니다. 삭제된 이미지를 사용하려고 하면 오류 메시지가 반환됩니다.
지원 중단 상태를 ACTIVE
로 변경하여 지원 중단을 되돌릴 수 있습니다(이미지를 다시 활성화).
시작하기 전에
- 이미지 문서를 읽습니다.
-
아직 인증을 설정하지 않았다면 설정합니다.
인증은 Trusted Cloud by S3NS 서비스 및 API에 액세스하기 위해 ID를 확인하는 프로세스입니다.
로컬 개발 환경에서 코드 또는 샘플을 실행하려면 다음 옵션 중 하나를 선택하여 Compute Engine에 인증하면 됩니다.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Trusted Cloud console to access Trusted Cloud by S3NS services and APIs, you don't need to set up authentication.
gcloud
-
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
- Set a default region and zone.
IMAGE_NAME
: 지원 중단할 이미지의 이름입니다.STATE
: 지원 중단 상태입니다.REPLACEMENT
: 지원 중단된 이미지를 대체할 이미지입니다.PROJECT_ID
: 이미지가 속한 프로젝트입니다.RESOURCE_ID
: 지원 중단할 이미지의 이름입니다.STATE
: 이 리소스의 지원 중단 상태입니다.REPLACEMENT
는 지원 중단된 이미지를 대체할 이미지입니다.
REST
로컬 개발 환경에서 이 페이지의 REST API 샘플을 사용하려면 gcloud CLI에 제공한 사용자 인증 정보를 사용합니다.
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
자세한 내용은 Trusted Cloud 인증 문서의 REST 사용을 위한 인증을 참조하세요.
커스텀 이미지 지원 중단
콘솔
gcloud
gcloud compute images deprecate
명령어를 사용하여 이미지의 지원 중단 상태를 설정합니다.gcloud compute images deprecate IMAGE_NAME \ --state STATE \ --replacement REPLACEMENT
다음을 바꿉니다.
Go
자바
Python
REST
images().deprecate
메서드에 대해POST
요청을 실행합니다. 지원 중단할 이미지의 이름을 지정합니다.POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/images/RESOURCE_ID/deprecate { "state": "STATE", "replacement": "REPLACEMENT" }
다음을 바꿉니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-30(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-30(UTC)"],[[["Compute Engine allows users to deprecate custom images, transitioning users away from unsupported images using different deprecation states."],["There are four deprecation states for images: `ACTIVE`, `DEPRECATED`, `OBSOLETE`, and `DELETED`, each with different effects on image availability and usage."],["Deprecated images can still be used to create VMs, but image families no longer point to them, and using them with the gcloud CLI will trigger a warning."],["Obsolete images are no longer available for use, while deleted images are permanently removed, and both will return an error message upon any attempt to be used."],["Users can change the deprecation state of an image back to `ACTIVE` to make it usable again, which can be done through the Google Cloud Console, gcloud CLI, or the Compute Engine API."]]],[]] -