

Doc AWS SDK 예제 GitHub 리포지토리에서 더 많은 SDK 예제를 사용할 수 있습니다. [AWS](https://github.com/awsdocs/aws-doc-sdk-examples) 

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# AWS Outposts 를 사용한 예제 AWS CLI
<a name="cli_2_outposts_code_examples"></a>

다음 코드 예제에서는를와 AWS Command Line Interface 함께 사용하여 작업을 수행하고 일반적인 시나리오를 구현하는 방법을 보여줍니다 AWS Outposts.

*작업*은 대규모 프로그램에서 발췌한 코드이며 컨텍스트에 맞춰 실행해야 합니다. 작업은 개별 서비스 함수를 직접적으로 호출하는 방법을 보여주며 관련 시나리오의 컨텍스트에 맞는 작업을 볼 수 있습니다.

각 예시에는 전체 소스 코드에 대한 링크가 포함되어 있으며, 여기에서 컨텍스트에 맞춰 코드를 설정하고 실행하는 방법에 대한 지침을 찾을 수 있습니다.

**Topics**
+ [작업](#actions)

## 작업
<a name="actions"></a>

### `get-outpost-instance-types`
<a name="outposts_GetOutpostInstanceTypes_cli_2_topic"></a>

다음 코드 예시에서는 `get-outpost-instance-types`의 사용 방법을 보여줍니다.

**AWS CLI**  
**Outpost에서 인스턴스 유형 가져오기**  
다음 `get-outpost-instance-types` 예시에서는 지정된 Outpost의 인스턴스 유형을 가져옵니다.  

```
aws outposts get-outpost-instance-types \
    --outpost-id op-0ab23c4567EXAMPLE
```
출력:  

```
{
    "InstanceTypes": [
        {
            "InstanceType": "c5d.large"
        },
        {
            "InstanceType": "i3en.24xlarge"
        },
        {
            "InstanceType": "m5d.large"
        },
        {
            "InstanceType": "r5d.large"
        }
    ],
    "OutpostId": "op-0ab23c4567EXAMPLE",
    "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE"
}
```
자세한 내용은 *AWS Outposts 사용자 안내서*의 [Outpost에서 인스턴스 시작](https://docs.aws.amazon.com/outposts/latest/userguide/launch-instance.html)을 참조하세요.  
+  API 세부 정보는 *AWS CLI 명령 참조*의 [GetOutpostInstanceTypes](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/outposts/get-outpost-instance-types.html)를 참조하세요.

### `get-outpost`
<a name="outposts_GetOutpost_cli_2_topic"></a>

다음 코드 예시에서는 `get-outpost`의 사용 방법을 보여줍니다.

**AWS CLI**  
**Outpost 세부 정보 가져오기**  
다음 `get-outpost` 예시에서는 지정된 Outpost의 세부 정보를 표시합니다.  

```
aws outposts get-outpost \
    --outpost-id op-0ab23c4567EXAMPLE
```
출력:  

```
{
    "Outpost": {
        "OutpostId": "op-0ab23c4567EXAMPLE",
        "OwnerId": "123456789012",
        "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE",
        "SiteId": "os-0ab12c3456EXAMPLE",
        "Name": "EXAMPLE",
        "LifeCycleStatus": "ACTIVE",
        "AvailabilityZone": "us-west-2a",
        "AvailabilityZoneId": "usw2-az1",
        "Tags": {}
    }
}
```
자세한 내용은 *AWS Outposts 사용자 안내서*의 [Outposts 작업](https://docs.aws.amazon.com/outposts/latest/userguide/work-with-outposts.html)을 참조하세요.  
+  API 세부 정보는 *AWS CLI 명령 참조*의 [GetOutpost](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/outposts/get-outpost.html)를 참조하세요.

### `list-outposts`
<a name="outposts_ListOutposts_cli_2_topic"></a>

다음 코드 예시에서는 `list-outposts`의 사용 방법을 보여줍니다.

**AWS CLI**  
**Outposts 나열**  
다음 `list-outposts` 예시에서는 AWS 계정의 Outpost를 나열합니다.  

```
aws outposts list-outposts
```
출력:  

```
{
    "Outposts": [
        {
            "OutpostId": "op-0ab23c4567EXAMPLE",
            "OwnerId": "123456789012",
            "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0ab23c4567EXAMPLE",
            "SiteId": "os-0ab12c3456EXAMPLE",
            "Name": "EXAMPLE",
            "Description": "example",
            "LifeCycleStatus": "ACTIVE",
            "AvailabilityZone": "us-west-2a",
            "AvailabilityZoneId": "usw2-az1",
            "Tags": {
                "Name": "EXAMPLE"
            }
        },
        {
            "OutpostId": "op-4fe3dc21baEXAMPLE",
            "OwnerId": "123456789012",
            "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-4fe3dc21baEXAMPLE",
            "SiteId": "os-0ab12c3456EXAMPLE",
            "Name": "EXAMPLE2",
            "LifeCycleStatus": "ACTIVE",
            "AvailabilityZone": "us-west-2a",
            "AvailabilityZoneId": "usw2-az1",
            "Tags": {}
        }
    ]
}
```
자세한 내용은 *AWS Outposts 사용자 안내서*의 [Outposts 작업](https://docs.aws.amazon.com/outposts/latest/userguide/work-with-outposts.html)을 참조하세요.  
+  API 세부 정보는 *AWS CLI 명령 참조*의 [ListOutposts](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/outposts/list-outposts.html)를 참조하세요.

### `list-sites`
<a name="outposts_ListSites_cli_2_topic"></a>

다음 코드 예시에서는 `list-sites`의 사용 방법을 보여줍니다.

**AWS CLI**  
**사이트 나열**  
다음 `list-sites` 예시에서는 AWS 계정에서 사용 가능한 Outpost 사이트를 나열합니다.  

```
aws outposts list-sites
```
출력:  

```
{
    "Sites": [
        {
            "SiteId": "os-0ab12c3456EXAMPLE",
            "AccountId": "123456789012",
            "Name": "EXAMPLE",
            "Description": "example",
            "Tags": {}
        }
    ]
}
```
자세한 내용은 *AWS Outposts 사용자 안내서*의 [Outposts 작업](https://docs.aws.amazon.com/outposts/latest/userguide/work-with-outposts.html)을 참조하세요.  
+  API 세부 정보는 *AWS CLI 명령 참조*의 [ListSites](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/outposts/list-sites.html)를 참조하세요.