기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
CLI로 DescribeImageAttribute 사용
다음 코드 예시는 DescribeImageAttribute의 사용 방법을 보여 줍니다.
- CLI
- 
            - AWS CLI
- 
             
                    AMI의 시작 권한 설명 이 예시에서는 지정된 AMI에 대한 실행 권한을 설명합니다. 명령: aws ec2 describe-image-attribute --image-idami-5731123e--attributelaunchPermission출력: { "LaunchPermissions": [ { "UserId": "123456789012" } ], "ImageId": "ami-5731123e", }AMI의 제품 코드 설명 이 예시에서는 지정된 AMI의 제품 코드를 설명합니다. 이 AMI에는 제품 코드가 없습니다. 명령: aws ec2 describe-image-attribute --image-idami-5731123e--attributeproductCodes출력: { "ProductCodes": [], "ImageId": "ami-5731123e", }- 
                    API 세부 정보는 AWS CLI 명령 참조의 DescribeImageAttribute 섹션을 참조하세요. 
 
- 
                    
 
- PowerShell
- 
            - Tools for PowerShell V4
- 
             
                    예제 1:이 예제에서는 지정된 AMI에 대한 설명을 가져옵니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute description출력: BlockDeviceMappings : {} Description : My image description ImageId : ami-12345678 KernelId : LaunchPermissions : {} ProductCodes : {} RamdiskId : SriovNetSupport :예제 2:이 예제는 지정된 AMI에 대한 시작 권한을 가져옵니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission출력: BlockDeviceMappings : {} Description : ImageId : ami-12345678 KernelId : LaunchPermissions : {all} ProductCodes : {} RamdiskId : SriovNetSupport :예제 3:이 예제에서는 향상된 네트워킹이 활성화되어 있는지 테스트합니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute sriovNetSupport출력: BlockDeviceMappings : {} Description : ImageId : ami-12345678 KernelId : LaunchPermissions : {} ProductCodes : {} RamdiskId : SriovNetSupport : simple- 
                    API 세부 정보는 Cmdlet 참조(V4)의 DescribeImageAttribute를 참조하세요. AWS Tools for PowerShell 
 
- 
                    
- Tools for PowerShell V5
- 
             
                    예제 1:이 예제에서는 지정된 AMI에 대한 설명을 가져옵니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute description출력: BlockDeviceMappings : {} Description : My image description ImageId : ami-12345678 KernelId : LaunchPermissions : {} ProductCodes : {} RamdiskId : SriovNetSupport :예제 2:이 예제는 지정된 AMI에 대한 시작 권한을 가져옵니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission출력: BlockDeviceMappings : {} Description : ImageId : ami-12345678 KernelId : LaunchPermissions : {all} ProductCodes : {} RamdiskId : SriovNetSupport :예제 3:이 예제에서는 향상된 네트워킹이 활성화되어 있는지 테스트합니다. Get-EC2ImageAttribute -ImageId ami-12345678 -Attribute sriovNetSupport출력: BlockDeviceMappings : {} Description : ImageId : ami-12345678 KernelId : LaunchPermissions : {} ProductCodes : {} RamdiskId : SriovNetSupport : simple- 
                    API 세부 정보는 Cmdlet 참조(V5)의 DescribeImageAttribute를 참조하세요. AWS Tools for PowerShell 
 
- 
                    
 
AWS SDK 개발자 안내서 및 코드 예제의 전체 목록은 섹션을 참조하세요AWS SDK를 사용하여 Amazon EC2 리소스 생성. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.