Add EBS API.
[software/guile-aws.git] / aws / api / ebs-2019-11-02.normal.json
1 {
2 "version": "2.0",
3 "metadata": {
4 "apiVersion": "2019-11-02",
5 "endpointPrefix": "ebs",
6 "jsonVersion": "1.1",
7 "protocol": "rest-json",
8 "serviceAbbreviation": "Amazon EBS",
9 "serviceFullName": "Amazon Elastic Block Store",
10 "serviceId": "EBS",
11 "signatureVersion": "v4",
12 "uid": "ebs-2019-11-02"
13 },
14 "operations": {
15 "GetSnapshotBlock": {
16 "name": "GetSnapshotBlock",
17 "http": {
18 "method": "GET",
19 "requestUri": "/snapshots/{snapshotId}/blocks/{blockIndex}"
20 },
21 "input": {
22 "shape": "GetSnapshotBlockRequest"
23 },
24 "output": {
25 "shape": "GetSnapshotBlockResponse"
26 },
27 "errors": [
28 {
29 "shape": "ValidationException"
30 },
31 {
32 "shape": "ResourceNotFoundException"
33 }
34 ],
35 "documentation": "<p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>"
36 },
37 "ListChangedBlocks": {
38 "name": "ListChangedBlocks",
39 "http": {
40 "method": "GET",
41 "requestUri": "/snapshots/{secondSnapshotId}/changedblocks"
42 },
43 "input": {
44 "shape": "ListChangedBlocksRequest"
45 },
46 "output": {
47 "shape": "ListChangedBlocksResponse"
48 },
49 "errors": [
50 {
51 "shape": "ValidationException"
52 },
53 {
54 "shape": "ResourceNotFoundException"
55 }
56 ],
57 "documentation": "<p>Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>"
58 },
59 "ListSnapshotBlocks": {
60 "name": "ListSnapshotBlocks",
61 "http": {
62 "method": "GET",
63 "requestUri": "/snapshots/{snapshotId}/blocks"
64 },
65 "input": {
66 "shape": "ListSnapshotBlocksRequest"
67 },
68 "output": {
69 "shape": "ListSnapshotBlocksResponse"
70 },
71 "errors": [
72 {
73 "shape": "ValidationException"
74 },
75 {
76 "shape": "ResourceNotFoundException"
77 }
78 ],
79 "documentation": "<p>Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.</p>"
80 }
81 },
82 "shapes": {
83 "Block": {
84 "type": "structure",
85 "members": {
86 "BlockIndex": {
87 "shape": "BlockIndex",
88 "documentation": "<p>The block index.</p>"
89 },
90 "BlockToken": {
91 "shape": "BlockToken",
92 "documentation": "<p>The block token for the block index.</p>"
93 }
94 },
95 "documentation": "<p>A block of data in an Amazon Elastic Block Store snapshot.</p>"
96 },
97 "BlockData": {
98 "type": "blob",
99 "sensitive": true,
100 "streaming": true
101 },
102 "BlockIndex": {
103 "type": "integer"
104 },
105 "BlockSize": {
106 "type": "integer"
107 },
108 "BlockToken": {
109 "type": "string",
110 "max": 256,
111 "pattern": "^[A-Za-z0-9+/=]+$"
112 },
113 "Blocks": {
114 "type": "list",
115 "member": {
116 "shape": "Block"
117 },
118 "sensitive": true
119 },
120 "ChangedBlock": {
121 "type": "structure",
122 "members": {
123 "BlockIndex": {
124 "shape": "BlockIndex",
125 "documentation": "<p>The block index.</p>"
126 },
127 "FirstBlockToken": {
128 "shape": "BlockToken",
129 "documentation": "<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>"
130 },
131 "SecondBlockToken": {
132 "shape": "BlockToken",
133 "documentation": "<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>"
134 }
135 },
136 "documentation": "<p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.</p>",
137 "sensitive": true
138 },
139 "ChangedBlocks": {
140 "type": "list",
141 "member": {
142 "shape": "ChangedBlock"
143 }
144 },
145 "Checksum": {
146 "type": "string",
147 "max": 64
148 },
149 "ChecksumAlgorithm": {
150 "type": "string",
151 "enum": [
152 "SHA256"
153 ],
154 "max": 32
155 },
156 "DataLength": {
157 "type": "integer"
158 },
159 "GetSnapshotBlockRequest": {
160 "type": "structure",
161 "required": [
162 "SnapshotId",
163 "BlockIndex",
164 "BlockToken"
165 ],
166 "members": {
167 "SnapshotId": {
168 "shape": "SnapshotId",
169 "documentation": "<p>The ID of the snapshot containing the block from which to get data.</p>",
170 "location": "uri",
171 "locationName": "snapshotId"
172 },
173 "BlockIndex": {
174 "shape": "BlockIndex",
175 "documentation": "<p>The block index of the block from which to get data.</p> <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>",
176 "location": "uri",
177 "locationName": "blockIndex"
178 },
179 "BlockToken": {
180 "shape": "BlockToken",
181 "documentation": "<p>The block token of the block from which to get data.</p> <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>",
182 "location": "querystring",
183 "locationName": "blockToken"
184 }
185 }
186 },
187 "GetSnapshotBlockResponse": {
188 "type": "structure",
189 "members": {
190 "DataLength": {
191 "shape": "DataLength",
192 "documentation": "<p>The size of the data in the block.</p>",
193 "location": "header",
194 "locationName": "x-amz-Data-Length"
195 },
196 "BlockData": {
197 "shape": "BlockData",
198 "documentation": "<p>The data content of the block.</p>"
199 },
200 "Checksum": {
201 "shape": "Checksum",
202 "documentation": "<p>The checksum generated for the block, which is Base64 encoded.</p>",
203 "location": "header",
204 "locationName": "x-amz-Checksum"
205 },
206 "ChecksumAlgorithm": {
207 "shape": "ChecksumAlgorithm",
208 "documentation": "<p>The algorithm used to generate the checksum for the block, such as SHA256.</p>",
209 "location": "header",
210 "locationName": "x-amz-Checksum-Algorithm"
211 }
212 },
213 "payload": "BlockData"
214 },
215 "ListChangedBlocksRequest": {
216 "type": "structure",
217 "required": [
218 "SecondSnapshotId"
219 ],
220 "members": {
221 "FirstSnapshotId": {
222 "shape": "SnapshotId",
223 "documentation": "<p>The ID of the first snapshot to use for the comparison.</p> <important> <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p> </important>",
224 "location": "querystring",
225 "locationName": "firstSnapshotId"
226 },
227 "SecondSnapshotId": {
228 "shape": "SnapshotId",
229 "documentation": "<p>The ID of the second snapshot to use for the comparison.</p> <important> <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p> </important>",
230 "location": "uri",
231 "locationName": "secondSnapshotId"
232 },
233 "NextToken": {
234 "shape": "PageToken",
235 "documentation": "<p>The token to request the next page of results.</p>",
236 "location": "querystring",
237 "locationName": "pageToken"
238 },
239 "MaxResults": {
240 "shape": "MaxResults",
241 "documentation": "<p>The number of results to return.</p>",
242 "location": "querystring",
243 "locationName": "maxResults"
244 },
245 "StartingBlockIndex": {
246 "shape": "BlockIndex",
247 "documentation": "<p>The block index from which the comparison should start.</p> <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>",
248 "location": "querystring",
249 "locationName": "startingBlockIndex"
250 }
251 }
252 },
253 "ListChangedBlocksResponse": {
254 "type": "structure",
255 "members": {
256 "ChangedBlocks": {
257 "shape": "ChangedBlocks",
258 "documentation": "<p>An array of objects containing information about the changed blocks.</p>"
259 },
260 "ExpiryTime": {
261 "shape": "TimeStamp",
262 "documentation": "<p>The time when the <code>BlockToken</code> expires.</p>"
263 },
264 "VolumeSize": {
265 "shape": "VolumeSize",
266 "documentation": "<p>The size of the volume in GB.</p>"
267 },
268 "BlockSize": {
269 "shape": "BlockSize",
270 "documentation": "<p>The size of the block.</p>"
271 },
272 "NextToken": {
273 "shape": "PageToken",
274 "documentation": "<p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>"
275 }
276 }
277 },
278 "ListSnapshotBlocksRequest": {
279 "type": "structure",
280 "required": [
281 "SnapshotId"
282 ],
283 "members": {
284 "SnapshotId": {
285 "shape": "SnapshotId",
286 "documentation": "<p>The ID of the snapshot from which to get block indexes and block tokens.</p>",
287 "location": "uri",
288 "locationName": "snapshotId"
289 },
290 "NextToken": {
291 "shape": "PageToken",
292 "documentation": "<p>The token to request the next page of results.</p>",
293 "location": "querystring",
294 "locationName": "pageToken"
295 },
296 "MaxResults": {
297 "shape": "MaxResults",
298 "documentation": "<p>The number of results to return.</p>",
299 "location": "querystring",
300 "locationName": "maxResults"
301 },
302 "StartingBlockIndex": {
303 "shape": "BlockIndex",
304 "documentation": "<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>",
305 "location": "querystring",
306 "locationName": "startingBlockIndex"
307 }
308 }
309 },
310 "ListSnapshotBlocksResponse": {
311 "type": "structure",
312 "members": {
313 "Blocks": {
314 "shape": "Blocks",
315 "documentation": "<p>An array of objects containing information about the blocks.</p>"
316 },
317 "ExpiryTime": {
318 "shape": "TimeStamp",
319 "documentation": "<p>The time when the <code>BlockToken</code> expires.</p>"
320 },
321 "VolumeSize": {
322 "shape": "VolumeSize",
323 "documentation": "<p>The size of the volume in GB.</p>"
324 },
325 "BlockSize": {
326 "shape": "BlockSize",
327 "documentation": "<p>The size of the block.</p>"
328 },
329 "NextToken": {
330 "shape": "PageToken",
331 "documentation": "<p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>"
332 }
333 }
334 },
335 "MaxResults": {
336 "type": "integer",
337 "max": 10000,
338 "min": 100
339 },
340 "PageToken": {
341 "type": "string",
342 "max": 256,
343 "pattern": "^[A-Za-z0-9+/=]+$"
344 },
345 "SnapshotId": {
346 "type": "string",
347 "max": 64,
348 "min": 1,
349 "pattern": "^snap-[0-9a-f]+$"
350 },
351 "TimeStamp": {
352 "type": "timestamp"
353 },
354 "VolumeSize": {
355 "type": "long"
356 }
357 },
358 "documentation": "<p>You can use the Amazon Elastic Block Store (EBS) direct APIs to directly read the data on your EBS snapshots, and identify the difference between two snapshots. You can view the details of blocks in an EBS snapshot, compare the block difference between two snapshots, and directly access the data in a snapshot. If you’re an independent software vendor (ISV) who offers backup services for EBS, the EBS direct APIs make it easier and more cost-effective to track incremental changes on your EBS volumes via EBS snapshots. This can be done without having to create new volumes from EBS snapshots.</p> <p>This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html\">Accessing the Contents of an EBS Snapshot</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>. For more information about the supported AWS Regions, endpoints, and service quotas for the EBS direct APIs, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/ebs-service.html\">Amazon Elastic Block Store Endpoints and Quotas</a> in the <i>AWS General Reference</i>.</p>"
359 }