|
| 1 | +openapi: 3.0.2 |
| 2 | +info: |
| 3 | + title: Album API |
| 4 | + contact: |
| 5 | + |
| 6 | + name: Alert Logic Support |
| 7 | + url: https://support.alertlogic.com |
| 8 | + x-alertlogic-iws-service: |
| 9 | + type: public |
| 10 | + description: |- |
| 11 | + AMI sharing service |
| 12 | + version: 1.0.0 |
| 13 | +servers: |
| 14 | + - url: https://api.global.alertlogic.com |
| 15 | + x-alertlogic-session-endpoint: true |
| 16 | + description: production (US) |
| 17 | + - url: https://api.global.alertlogic.com |
| 18 | + description: production (UK) |
| 19 | + x-alertlogic-session-endpoint: true |
| 20 | + - url: https://api.global-integration.product.dev.alertlogic.com |
| 21 | + description: integration |
| 22 | +paths: |
| 23 | + /album/v1/images: |
| 24 | + get: |
| 25 | + operationId: get_current_images |
| 26 | + tags: |
| 27 | + - GET |
| 28 | + summary: Get current images |
| 29 | + description: |- |
| 30 | + Returns a list of current images. |
| 31 | + parameters: |
| 32 | + - $ref: 'parameters.yaml#/query_product_type' |
| 33 | + - $ref: 'parameters.yaml#/query_platform_type' |
| 34 | + responses: |
| 35 | + '200': |
| 36 | + $ref: 'responses.yaml#/get_current_images' |
| 37 | + |
| 38 | + /album/v1/all/images: |
| 39 | + get: |
| 40 | + operationId: get_all_images |
| 41 | + tags: |
| 42 | + - GET |
| 43 | + summary: Get all images |
| 44 | + description: |- |
| 45 | + Returns a list of all image records, including their ami name and description. |
| 46 | + responses: |
| 47 | + '200': |
| 48 | + $ref: 'responses.yaml#/get_all_images' |
| 49 | + |
| 50 | + /album/v1/all/images/{image_id}: |
| 51 | + get: |
| 52 | + operationId: get_image |
| 53 | + tags: |
| 54 | + - GET |
| 55 | + summary: Get specified image |
| 56 | + description: |- |
| 57 | + Returns single image record, including their ami name and description. |
| 58 | + parameters: |
| 59 | + - $ref: 'parameters.yaml#/path_image_id' |
| 60 | + responses: |
| 61 | + '200': |
| 62 | + $ref: 'responses.yaml#/get_image' |
| 63 | + '404': |
| 64 | + $ref: 'responses.yaml#/not_found' |
| 65 | + |
| 66 | + /album/v1/all/images/{image_id}/product_type: |
| 67 | + get: |
| 68 | + operationId: get_image_product_type |
| 69 | + tags: |
| 70 | + - GET |
| 71 | + summary: Get specified images' product type |
| 72 | + description: |- |
| 73 | + Returns product type for specified image id. |
| 74 | + parameters: |
| 75 | + - $ref: 'parameters.yaml#/path_image_id' |
| 76 | + responses: |
| 77 | + '200': |
| 78 | + $ref: 'responses.yaml#/get_image_product_type' |
| 79 | + '404': |
| 80 | + $ref: 'responses.yaml#/not_found' |
| 81 | + |
| 82 | + /album/v1/shares/{platform_type}/{platform_id}: |
| 83 | + put: |
| 84 | + operationId: add_launch_permission |
| 85 | + tags: |
| 86 | + - PUT |
| 87 | + summary: Add launch permission |
| 88 | + description: |- |
| 89 | + Adds launch permission for the current images the the specified platform account. |
| 90 | + parameters: |
| 91 | + - $ref: 'parameters.yaml#/path_platform_type' |
| 92 | + - $ref: 'parameters.yaml#/path_platform_id' |
| 93 | + responses: |
| 94 | + '204': |
| 95 | + $ref: 'responses.yaml#/no_content' |
| 96 | + '404': |
| 97 | + $ref: 'responses.yaml#/not_found' |
| 98 | + |
| 99 | + /album/v2/images/{product_type}/{platform_type}/{version}: |
| 100 | + get: |
| 101 | + operationId: get_version_image_set |
| 102 | + tags: |
| 103 | + - GET |
| 104 | + summary: Get a specific version set of images |
| 105 | + description: |- |
| 106 | + Get a specific version set of images. |
| 107 | + parameters: |
| 108 | + - $ref: 'parameters.yaml#/path_platform_type' |
| 109 | + - $ref: 'parameters.yaml#/path_product_type' |
| 110 | + - $ref: 'parameters.yaml#/path_version' |
| 111 | + responses: |
| 112 | + '200': |
| 113 | + $ref: 'responses.yaml#/get_version_image_set' |
| 114 | + '404': |
| 115 | + $ref: 'responses.yaml#/not_found' |
| 116 | + post: |
| 117 | + operationId: add_new_images_and_create_version_set |
| 118 | + tags: |
| 119 | + - POST |
| 120 | + summary: Add new images |
| 121 | + description: |- |
| 122 | + Add a new version of images. |
| 123 | + parameters: |
| 124 | + - $ref: 'parameters.yaml#/path_platform_type' |
| 125 | + - $ref: 'parameters.yaml#/path_product_type' |
| 126 | + - $ref: 'parameters.yaml#/path_version' |
| 127 | + requestBody: |
| 128 | + content: |
| 129 | + application/json: |
| 130 | + schema: |
| 131 | + $ref: 'schemas.yaml#/ami_record_ref' |
| 132 | + examples: |
| 133 | + ami_record: |
| 134 | + summary: Request for adding ami records |
| 135 | + description: |- |
| 136 | + An array of records that will be added to the db, |
| 137 | + this will also put all ami in the request under a single version. |
| 138 | + value: |
| 139 | + { |
| 140 | + "ami_name": "Example-AMI-Name", |
| 141 | + "description": "Example-AMI-Description", |
| 142 | + "image_array": [ |
| 143 | + { |
| 144 | + "image_id": "ami-11111111111111111", |
| 145 | + "region": "us-east-1" |
| 146 | + }, |
| 147 | + { |
| 148 | + "image_id": "ami-22222222222222222", |
| 149 | + "region": "us-east-2" |
| 150 | + }, |
| 151 | + { |
| 152 | + "image_id": "ami-33333333333333333", |
| 153 | + "region": "us-west-1" |
| 154 | + }, |
| 155 | + { |
| 156 | + "image_id": "ami-44444444444444444", |
| 157 | + "region": "us-west-2" |
| 158 | + } |
| 159 | + ] |
| 160 | + } |
| 161 | + responses: |
| 162 | + '202': |
| 163 | + $ref: 'responses.yaml#/accepted' |
| 164 | + '400': |
| 165 | + $ref: 'responses.yaml#/bad_request' |
| 166 | + |
| 167 | + /album/v2/images/enabled: |
| 168 | + get: |
| 169 | + operationId: get_enabled_image_set |
| 170 | + tags: |
| 171 | + - GET |
| 172 | + summary: Get enabled sets of images |
| 173 | + description: |- |
| 174 | + Get enabled sets of images per product type. |
| 175 | + responses: |
| 176 | + '200': |
| 177 | + $ref: 'responses.yaml#/accepted' |
| 178 | + '404': |
| 179 | + $ref: 'responses.yaml#/not_found' |
| 180 | + |
| 181 | + /album/v2/images/all: |
| 182 | + get: |
| 183 | + operationId: get_all_image_set |
| 184 | + tags: |
| 185 | + - GET |
| 186 | + summary: Get all sets of images |
| 187 | + description: |- |
| 188 | + Get all sets of images. |
| 189 | + responses: |
| 190 | + '200': |
| 191 | + $ref: 'responses.yaml#/accepted' |
| 192 | + '404': |
| 193 | + $ref: 'responses.yaml#/not_found' |
| 194 | + |
| 195 | + /album/v2/images/{product_type}/{platform_type}/{version}/enable: |
| 196 | + put: |
| 197 | + operationId: enable_image_records_version_set |
| 198 | + tags: |
| 199 | + - PUT |
| 200 | + summary: Enable a specific version set of images |
| 201 | + description: |- |
| 202 | + Enable a specific version set of images. |
| 203 | + parameters: |
| 204 | + - $ref: 'parameters.yaml#/path_platform_type' |
| 205 | + - $ref: 'parameters.yaml#/path_product_type' |
| 206 | + - $ref: 'parameters.yaml#/path_version' |
| 207 | + responses: |
| 208 | + '200': |
| 209 | + $ref: 'responses.yaml#/accepted' |
| 210 | + '404': |
| 211 | + $ref: 'responses.yaml#/not_found' |
| 212 | + |
0 commit comments