|
1 |
| -**Example 1: To describe one or more of your capacity reservations** |
2 |
| - |
3 |
| -The following ``describe-capacity-reservations`` example displays details about all of your capacity reservations in the current AWS Region. :: |
4 |
| - |
5 |
| - aws ec2 describe-capacity-reservations |
6 |
| - |
7 |
| -Output:: |
8 |
| - |
9 |
| - { |
10 |
| - "CapacityReservations": [ |
11 |
| - { |
12 |
| - "CapacityReservationId": "cr-1234abcd56EXAMPLE ", |
13 |
| - "EndDateType": "unlimited", |
14 |
| - "AvailabilityZone": "eu-west-1a", |
15 |
| - "InstanceMatchCriteria": "open", |
16 |
| - "Tags": [], |
17 |
| - "EphemeralStorage": false, |
18 |
| - "CreateDate": "2019-08-16T09:03:18.000Z", |
19 |
| - "AvailableInstanceCount": 1, |
20 |
| - "InstancePlatform": "Linux/UNIX", |
21 |
| - "TotalInstanceCount": 1, |
22 |
| - "State": "active", |
23 |
| - "Tenancy": "default", |
24 |
| - "EbsOptimized": true, |
25 |
| - "InstanceType": "a1.medium" |
26 |
| - }, |
27 |
| - { |
28 |
| - "CapacityReservationId": "cr-abcdEXAMPLE9876ef ", |
29 |
| - "EndDateType": "unlimited", |
30 |
| - "AvailabilityZone": "eu-west-1a", |
31 |
| - "InstanceMatchCriteria": "open", |
32 |
| - "Tags": [], |
33 |
| - "EphemeralStorage": false, |
34 |
| - "CreateDate": "2019-08-07T11:34:19.000Z", |
35 |
| - "AvailableInstanceCount": 3, |
36 |
| - "InstancePlatform": "Linux/UNIX", |
37 |
| - "TotalInstanceCount": 3, |
38 |
| - "State": "cancelled", |
39 |
| - "Tenancy": "default", |
40 |
| - "EbsOptimized": true, |
41 |
| - "InstanceType": "m5.large" |
42 |
| - } |
43 |
| - ] |
44 |
| - } |
45 |
| - |
46 |
| -**Example 2: To describe one or more of your capacity reservations** |
47 |
| - |
48 |
| -The following ``describe-capacity-reservations`` example displays details about the specified capacity reservation. :: |
49 |
| - |
50 |
| - aws ec2 describe-capacity-reservations \ |
51 |
| - --capacity-reservation-id cr-1234abcd56EXAMPLE |
52 |
| - |
53 |
| -Output:: |
54 |
| - |
55 |
| - { |
56 |
| - "CapacityReservations": [ |
57 |
| - { |
58 |
| - "CapacityReservationId": "cr-1234abcd56EXAMPLE", |
59 |
| - "EndDateType": "unlimited", |
60 |
| - "AvailabilityZone": "eu-west-1a", |
61 |
| - "InstanceMatchCriteria": "open", |
62 |
| - "Tags": [], |
63 |
| - "EphemeralStorage": false, |
64 |
| - "CreateDate": "2019-08-16T09:03:18.000Z", |
65 |
| - "AvailableInstanceCount": 1, |
66 |
| - "InstancePlatform": "Linux/UNIX", |
67 |
| - "TotalInstanceCount": 1, |
68 |
| - "State": "active", |
69 |
| - "Tenancy": "default", |
70 |
| - "EbsOptimized": true, |
71 |
| - "InstanceType": "a1.medium" |
72 |
| - } |
73 |
| - ] |
74 |
| - } |
75 |
| - |
76 |
| -For more information, see `Viewing a Capacity Reservation <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-view>`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*. |
| 1 | +**Example 1: To describe one or more of your capacity reservations** |
| 2 | + |
| 3 | +The following ``describe-capacity-reservations`` example displays details about all of your capacity reservations in the current AWS Region. :: |
| 4 | + |
| 5 | + aws ec2 describe-capacity-reservations |
| 6 | + |
| 7 | +Output:: |
| 8 | + |
| 9 | + { |
| 10 | + "CapacityReservations": [ |
| 11 | + { |
| 12 | + "CapacityReservationId": "cr-1234abcd56EXAMPLE ", |
| 13 | + "EndDateType": "unlimited", |
| 14 | + "AvailabilityZone": "eu-west-1a", |
| 15 | + "InstanceMatchCriteria": "open", |
| 16 | + "Tags": [], |
| 17 | + "EphemeralStorage": false, |
| 18 | + "CreateDate": "2019-08-16T09:03:18.000Z", |
| 19 | + "AvailableInstanceCount": 1, |
| 20 | + "InstancePlatform": "Linux/UNIX", |
| 21 | + "TotalInstanceCount": 1, |
| 22 | + "State": "active", |
| 23 | + "Tenancy": "default", |
| 24 | + "EbsOptimized": true, |
| 25 | + "InstanceType": "a1.medium" |
| 26 | + }, |
| 27 | + { |
| 28 | + "CapacityReservationId": "cr-abcdEXAMPLE9876ef ", |
| 29 | + "EndDateType": "unlimited", |
| 30 | + "AvailabilityZone": "eu-west-1a", |
| 31 | + "InstanceMatchCriteria": "open", |
| 32 | + "Tags": [], |
| 33 | + "EphemeralStorage": false, |
| 34 | + "CreateDate": "2019-08-07T11:34:19.000Z", |
| 35 | + "AvailableInstanceCount": 3, |
| 36 | + "InstancePlatform": "Linux/UNIX", |
| 37 | + "TotalInstanceCount": 3, |
| 38 | + "State": "cancelled", |
| 39 | + "Tenancy": "default", |
| 40 | + "EbsOptimized": true, |
| 41 | + "InstanceType": "m5.large" |
| 42 | + } |
| 43 | + ] |
| 44 | + } |
| 45 | + |
| 46 | +**Example 2: To describe one or more of your capacity reservations** |
| 47 | + |
| 48 | +The following ``describe-capacity-reservations`` example displays details about the specified capacity reservation. :: |
| 49 | + |
| 50 | + aws ec2 describe-capacity-reservations \ |
| 51 | + --capacity-reservation-ids cr-1234abcd56EXAMPLE |
| 52 | + |
| 53 | +Output:: |
| 54 | + |
| 55 | + { |
| 56 | + "CapacityReservations": [ |
| 57 | + { |
| 58 | + "CapacityReservationId": "cr-1234abcd56EXAMPLE", |
| 59 | + "EndDateType": "unlimited", |
| 60 | + "AvailabilityZone": "eu-west-1a", |
| 61 | + "InstanceMatchCriteria": "open", |
| 62 | + "Tags": [], |
| 63 | + "EphemeralStorage": false, |
| 64 | + "CreateDate": "2019-08-16T09:03:18.000Z", |
| 65 | + "AvailableInstanceCount": 1, |
| 66 | + "InstancePlatform": "Linux/UNIX", |
| 67 | + "TotalInstanceCount": 1, |
| 68 | + "State": "active", |
| 69 | + "Tenancy": "default", |
| 70 | + "EbsOptimized": true, |
| 71 | + "InstanceType": "a1.medium" |
| 72 | + } |
| 73 | + ] |
| 74 | + } |
| 75 | + |
| 76 | +For more information, see `Viewing a Capacity Reservation <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#capacity-reservations-view>`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*. |
0 commit comments