ecr-2015-09-21.examples.json
7.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"version": "1.0",
"examples": {
"BatchDeleteImage": [
{
"input": {
"imageIds": [
{
"imageTag": "precise"
}
],
"repositoryName": "ubuntu"
},
"output": {
"failures": [
],
"imageIds": [
{
"imageDigest": "sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f",
"imageTag": "precise"
}
]
},
"comments": {
},
"description": "This example deletes images with the tags precise and trusty in a repository called ubuntu in the default registry for an account.",
"id": "batchdeleteimages-example-1470860541707",
"title": "To delete multiple images"
}
],
"BatchGetImage": [
{
"input": {
"imageIds": [
{
"imageTag": "precise"
}
],
"repositoryName": "ubuntu"
},
"output": {
"failures": [
],
"images": [
{
"imageId": {
"imageDigest": "sha256:example76bdff6d83a09ba2a818f0d00000063724a9ac3ba5019c56f74ebf42a",
"imageTag": "precise"
},
"imageManifest": "{\n \"schemaVersion\": 1,\n \"name\": \"ubuntu\",\n \"tag\": \"precise\",\n...",
"registryId": "244698725403",
"repositoryName": "ubuntu"
}
]
},
"comments": {
"output": {
"imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
}
},
"description": "This example obtains information for an image with a specified image digest ID from the repository named ubuntu in the current account.",
"id": "batchgetimage-example-1470862771437",
"title": "To obtain multiple images in a single request"
}
],
"CreateRepository": [
{
"input": {
"repositoryName": "project-a/nginx-web-app"
},
"output": {
"repository": {
"registryId": "012345678901",
"repositoryArn": "arn:aws:ecr:us-west-2:012345678901:repository/project-a/nginx-web-app",
"repositoryName": "project-a/nginx-web-app"
}
},
"comments": {
"output": {
"imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
}
},
"description": "This example creates a repository called nginx-web-app inside the project-a namespace in the default registry for an account.",
"id": "createrepository-example-1470863688724",
"title": "To create a new repository"
}
],
"DeleteRepository": [
{
"input": {
"force": true,
"repositoryName": "ubuntu"
},
"output": {
"repository": {
"registryId": "012345678901",
"repositoryArn": "arn:aws:ecr:us-west-2:012345678901:repository/ubuntu",
"repositoryName": "ubuntu"
}
},
"comments": {
"output": {
"imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
}
},
"description": "This example force deletes a repository named ubuntu in the default registry for an account. The force parameter is required if the repository contains images.",
"id": "deleterepository-example-1470863805703",
"title": "To force delete a repository"
}
],
"DeleteRepositoryPolicy": [
{
"input": {
"repositoryName": "ubuntu"
},
"output": {
"policyText": "{ ... }",
"registryId": "012345678901",
"repositoryName": "ubuntu"
},
"comments": {
},
"description": "This example deletes the policy associated with the repository named ubuntu in the current account.",
"id": "deleterepositorypolicy-example-1470866943748",
"title": "To delete the policy associated with a repository"
}
],
"DescribeRepositories": [
{
"input": {
},
"output": {
"repositories": [
{
"registryId": "012345678910",
"repositoryArn": "arn:aws:ecr:us-west-2:012345678910:repository/ubuntu",
"repositoryName": "ubuntu"
},
{
"registryId": "012345678910",
"repositoryArn": "arn:aws:ecr:us-west-2:012345678910:repository/test",
"repositoryName": "test"
}
]
},
"comments": {
"output": {
}
},
"description": "The following example obtains a list and description of all repositories in the default registry to which the current user has access.",
"id": "describe-repositories-1470856017467",
"title": "To describe all repositories in the current account"
}
],
"GetAuthorizationToken": [
{
"input": {
},
"output": {
"authorizationData": [
{
"authorizationToken": "QVdTOkN...",
"expiresAt": "1470951892432",
"proxyEndpoint": "https://012345678901.dkr.ecr.us-west-2.amazonaws.com"
}
]
},
"comments": {
},
"description": "This example gets an authorization token for your default registry.",
"id": "getauthorizationtoken-example-1470867047084",
"title": "To obtain an authorization token"
}
],
"GetRepositoryPolicy": [
{
"input": {
"repositoryName": "ubuntu"
},
"output": {
"policyText": "{\n \"Version\" : \"2008-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"new statement\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::012345678901:role/CodeDeployDemo\"\n },\n\"Action\" : [ \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\", \"ecr:BatchCheckLayerAvailability\" ]\n } ]\n}",
"registryId": "012345678901",
"repositoryName": "ubuntu"
},
"comments": {
},
"description": "This example obtains the repository policy for the repository named ubuntu.",
"id": "getrepositorypolicy-example-1470867669211",
"title": "To get the current policy for a repository"
}
],
"ListImages": [
{
"input": {
"repositoryName": "ubuntu"
},
"output": {
"imageIds": [
{
"imageDigest": "sha256:764f63476bdff6d83a09ba2a818f0d35757063724a9ac3ba5019c56f74ebf42a",
"imageTag": "precise"
}
]
},
"comments": {
},
"description": "This example lists all of the images in the repository named ubuntu in the default registry in the current account. ",
"id": "listimages-example-1470868161594",
"title": "To list all images in a repository"
}
]
}
}