표시되는 CPU 코어 수 보기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Linux
Windows
표시되는 CPU 코어 수를 보려면 gcloud CLI 또는 Compute Engine API를 사용합니다.
gcloud
gcloud compute
instances describe
명령어를 사용하여 VM에 대한 정보를 가져옵니다.
gcloud compute instances describe VM_NAME \
--zone=ZONE
다음을 바꿉니다.
VM_NAME
: VM의 이름
ZONE
: VM이 포함된 영역
출력에서 visible-core-count
필드 값은 표시된 CPU 코어 수입니다. visible-core-count
필드가 출력에 표시되지 않으면 VM에 표시되는 기본 CPU 코어 수가 있는 것입니다.
REST
다음 instances.get
메서드를 사용하여 VM에 대한 정보를 가져옵니다.
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/VM_NAME
다음을 바꿉니다.
PROJECT_ID
: 프로젝트 ID
ZONE
: VM이 포함된 영역입니다.
VM_NAME
: VM의 이름
출력에서 visibleCoreCount
필드 값은 표시된 CPU 코어 수입니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-02-20(UTC)
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]