This operation can be used to export the details of a particular Application as a zip file.
apim:app_import_export
i
GET https://localhost:9443/api/am/store/v0.11/export/applications?appName=sampleApp&appOwner=admin
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 200 OK
Connection: keep-alive
Content-Disposition: attachment; filename="exported-application.zip"
Content-Type: application/zip
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -X GET https://localhost:9443/api/am/admin/v0.11/export/applications?appName=sampleApp&appOwner=admin > admin_sampleApp.zip
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
appName required |
Application Name |
String | |
Query |
appOwner required |
Owner of the Application |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK.\nExport Successful.\n |
file |
400 |
Bad Request.\nInvalid request or validation error\n |
Error |
404 |
Not Found.\nRequested Application does not exist.\n |
Error |
406 |
Not Acceptable.\nThe requested media type is not supported\n |
Error |
This operation can be used to import an Application.
apim:app_import_export
i
POST https://localhost:9443/api/am/store/v0.11/import/applications
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 201 Created
Location: https://localhost:9443/api/am/admin/v0.11/applications/c30f3a6e-ffa4-4ae7-afce-224d1f820524
Content-Type: application/json
{
"groupId": "",
"callbackUrl": "http://my.server.com/callback",
"owner": "admin",
"applicationId": "c30f3a6e-ffa4-4ae7-afce-224d1f820524",
"status": "APPROVED",
"name": "sampleapp"
}
curl -k -F "file=@exported.zip" -X POST -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" https://localhost:9443/api/am/admin/v0.11/import/applications
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Form |
file required |
Zip archive consisting of exported Application Configuration. |
file | |
Query |
preserveOwner optional |
Preserve Original Creator of the Application |
Boolean | |
Query |
skipSubscriptions optional |
Skip importing Subscriptions of the Application |
Boolean | |
Query |
appOwner optional |
Expected Owner of the Application in the Import Environment |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK.\nSuccessful response with the updated object information as entity in the body.\n |
ApplicationInfo |
207 |
Multi Status.\nPartially successful response with skipped APIs information object as entity in the body.\n |
APIInfoList |
400 |
Bad Request.\nInvalid request or validation error\n |
Error |
406 |
Not Acceptable.\nThe requested media type is not supported\n |
Error |