|
| 1 | +openapi: 3.0.1 |
| 2 | +info: |
| 3 | + title: Assets Manager 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 | + The assets management service. The service provides additional validation |
| 12 | + layer in front of assets to ensure the user supplied configuration is consistent. |
| 13 | + The service also provides different utility functions. |
| 14 | + version: 1.0.0 |
| 15 | +servers: |
| 16 | + - url: https://api.cloudinsight.alertlogic.com |
| 17 | + x-alertlogic-session-endpoint: true |
| 18 | + description: production (US) |
| 19 | + - url: https://api.cloudinsight.alertlogic.co.uk |
| 20 | + description: production (UK) |
| 21 | + x-alertlogic-session-endpoint: true |
| 22 | + - url: https://api.product.dev.alertlogic.com |
| 23 | + description: integration |
| 24 | +components: |
| 25 | + securitySchemes: |
| 26 | + x-aims-auth-token: |
| 27 | + name: x-aims-auth-token |
| 28 | + type: apiKey |
| 29 | + in: header |
| 30 | + description: AIMS Authentication Token |
| 31 | +paths: |
| 32 | + /assets_manager/v1/{account_id}/deployments/{deployment_id}/scope/export: |
| 33 | + post: |
| 34 | + operationId: export_scope |
| 35 | + tags: |
| 36 | + - Protection Scope Management |
| 37 | + summary: Export protection scope |
| 38 | + description: |- |
| 39 | + Endpoint for exporting the protection scope of a deployment along with |
| 40 | + asset metadata. By default the endpoints returns data in `CSV` format |
| 41 | + if no `Accept` header specified. |
| 42 | + cURL example: |
| 43 | + parameters: |
| 44 | + - $ref: 'parameters.yaml#/UrlParamAccountId' |
| 45 | + - $ref: 'parameters.yaml#/UrlParamDeploymentId' |
| 46 | + security: |
| 47 | + - x-aims-auth-token: [] |
| 48 | + x-codeSamples: |
| 49 | + - lang: Shell |
| 50 | + label: alcli |
| 51 | + source: | |
| 52 | + alcli assets_manager export_scope \ |
| 53 | + --account_id 134235158 \ |
| 54 | + --deployment_id 843BD5F3-583D-48D7-B929-616B100D6B7B \ |
| 55 | + > scope.csv |
| 56 | + - lang: cURL |
| 57 | + label: cURL |
| 58 | + source: | |
| 59 | + curl -X POST \ |
| 60 | + https://api.product.dev.alertlogic.com/assets_manager/v1/134235158/deployments/843BD5F3-583D-48D7-B929-616B100D6B7B/scope/export \ |
| 61 | + > scope.csv |
| 62 | + responses: |
| 63 | + '200': |
| 64 | + description: OK |
| 65 | + content: |
| 66 | + text/csv: |
| 67 | + schema: |
| 68 | + $ref: 'schemas.yaml#/AssetsProtection' |
| 69 | + examples: |
| 70 | + CSV: |
| 71 | + $ref: 'examples.yaml#/ScopeCSV' |
| 72 | + application/json: |
| 73 | + schema: |
| 74 | + $ref: 'schemas.yaml#/AssetsProtection' |
| 75 | + examples: |
| 76 | + JSON: |
| 77 | + $ref: 'examples.yaml#/ScopeJSON' |
| 78 | + '401': |
| 79 | + $ref: 'responses.yaml#/Unauthorized' |
| 80 | + '403': |
| 81 | + $ref: 'responses.yaml#/Forbidden' |
| 82 | + '404': |
| 83 | + $ref: 'responses.yaml#/DeploymentNotFound' |
| 84 | + /assets_manager/v1/{account_id}/deployments/{deployment_id}/scope/import: |
| 85 | + post: |
| 86 | + operationId: import_scope |
| 87 | + tags: |
| 88 | + - Protection Scope Management |
| 89 | + requestBody: |
| 90 | + description: |- |
| 91 | + By default If no `Content-Type` header specified the `CSV` format assumed. |
| 92 | + The data format is the same as returned by the export endpoint. |
| 93 | + The required fields are: `type`, `key` and `protection_level`. |
| 94 | + All other fields are ignored. Any invalid items are ignored. |
| 95 | + The protection scope policy id to `protection_level` mapping: |
| 96 | + * `D12D5E67-166C-474F-87AA-6F86FC9FB9BC` - professional |
| 97 | + * `A8E8B104-8F45-411D-A240-A30EA5FE25B0` - essentials |
| 98 | + * `EC735B49-2517-4D98-BB9D-BEBC1E75D56D` - enterprise |
| 99 | + * `A562D3E4-ECBE-426E-B2CF-78D2336E5D63` - lm_essentials |
| 100 | + * `7E184449-FB15-4693-807F-C01A1ECD7E66` - lmpro |
| 101 | + * `D2A589A9-EA56-456C-844E-65843B483D68` - tmpro |
| 102 | + required: true |
| 103 | + content: |
| 104 | + text/csv: |
| 105 | + examples: |
| 106 | + CSV: |
| 107 | + $ref: 'examples.yaml#/ScopeCSV' |
| 108 | + schema: |
| 109 | + $ref: 'schemas.yaml#/AssetsProtection' |
| 110 | + application/json: |
| 111 | + examples: |
| 112 | + JSON: |
| 113 | + $ref: 'examples.yaml#/ScopeJSON' |
| 114 | + schema: |
| 115 | + $ref: 'schemas.yaml#/AssetsProtection' |
| 116 | + summary: Import protection scope |
| 117 | + description: |- |
| 118 | + Endpoint for importing the protection scope of a deployment. |
| 119 | + parameters: |
| 120 | + - $ref: 'parameters.yaml#/UrlParamAccountId' |
| 121 | + - $ref: 'parameters.yaml#/UrlParamDeploymentId' |
| 122 | + - $ref: 'parameters.yaml#/WriteOption' |
| 123 | + security: |
| 124 | + - x-aims-auth-token: [] |
| 125 | + x-codeSamples: |
| 126 | + - lang: Shell |
| 127 | + label: alcli |
| 128 | + source: | |
| 129 | + alcli assets_manager import_scope \ |
| 130 | + --account_id 134235158 \ |
| 131 | + --deployment_id 843BD5F3-583D-48D7-B929-616B100D6B7B \ |
| 132 | + --content_type=text/csv \ |
| 133 | + --write true \ |
| 134 | + --data file://scope.csv |
| 135 | + - lang: cURL |
| 136 | + label: cURL |
| 137 | + source: | |
| 138 | + curl -X POST \ |
| 139 | + https://api.product.dev.alertlogic.com/assets_manager/v1/134235158/deployments/843BD5F3-583D-48D7-B929-616B100D6B7B/scope/import?write=true \ |
| 140 | + --data-binary @scope.csv |
| 141 | + responses: |
| 142 | + '200': |
| 143 | + description: OK |
| 144 | + content: |
| 145 | + application/json: |
| 146 | + examples: |
| 147 | + JSON: |
| 148 | + $ref: 'examples.yaml#/ImportSummary' |
| 149 | + schema: |
| 150 | + $ref: 'schemas.yaml#/ImportSummary' |
| 151 | + '401': |
| 152 | + $ref: 'responses.yaml#/Unauthorized' |
| 153 | + '403': |
| 154 | + $ref: 'responses.yaml#/Forbidden' |
| 155 | + '404': |
| 156 | + $ref: 'responses.yaml#/DeploymentNotFound' |
0 commit comments