import requests
url = "https://{FUSION HOST}/api/objects/export"
response = requests.get(url)
print(response.text){
"objects": {
"collections": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"searchClusterId": "<string>",
"commitWithin": 10000,
"features": {},
"compositeIdSpec": {
"routeKey1Field": "<string>",
"routeKey1Bits": 123,
"routeKey2Field": "<string>",
"routeKey2Bits": 123
},
"solrParams": {
"name": "<string>",
"numShards": 123,
"replicationFactor": 123,
"collection.configName": "<string>"
},
"modifiedAt": "2023-11-07T05:31:56Z",
"type": "DATA",
"relatedCollectionId": "<string>",
"metadata": {}
}
],
"indexPipelines": [
{
"id": "<string>"
}
],
"queryPipelines": [
{
"id": "<string>"
}
],
"searchClusters": [
{
"id": "<string>",
"connectString": "<string>",
"zkClientTimeout": 123,
"zkConnectTimeout": 123,
"cloud": true,
"bufferFlushInterval": 123,
"bufferSize": 123,
"concurrency": 123,
"authConfig": {
"authType": "NONE",
"username": "<string>",
"password": "<string>",
"keyTab": "<string>",
"principal": "<string>"
},
"validateCluster": true
}
],
"features": {},
"indexProfiles": [
{
"id": "<string>"
}
],
"queryProfiles": [
{
"id": "<string>"
}
],
"parsers": [
{
"id": "<string>"
}
],
"objectGroups": [
{
"id": "<string>",
"name": "<string>",
"isSystem": true,
"description": "<string>"
}
],
"links": [
{
"subject": "<string>",
"object": "<string>",
"linkType": "dependsOn",
"originator": "<string>"
}
],
"tasks": [
{
"id": "<string>",
"type": "<string>"
}
],
"jobs": [
{
"resource": "<string>",
"enabled": true,
"triggers": [
{
"enabled": true,
"type": "interval",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"interval": 123,
"repeatUnit": "minute",
"value": "<string>",
"jobID": "<string>",
"runOnSuccess": true,
"runOnFailure": true,
"runOnAbort": true
}
],
"default": true
}
],
"sparkJobs": [
{
"id": "<string>"
}
],
"blobs": [
{
"id": "<string>",
"path": "<string>",
"dir": "<string>",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"modifiedTime": "2023-11-07T05:31:56Z",
"version": 123,
"md5": "<string>",
"metadata": {}
}
],
"experiments": [
{
"id": "<string>"
}
],
"appkitApps": [
{
"appkitApp": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"contextPath": "<string>",
"enabled": true,
"type": "<string>",
"war": "<string>",
"warMd5": "<string>",
"warSize": 123
},
"editingSessions": [
{
"id": "<string>",
"owner": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": "<string>"
}
]
}
],
"fusionApps": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"customRules": [
{
"id": "<string>"
}
],
"templates": [
{
"id": "<string>"
}
],
"zones": [
{
"id": "<string>"
}
],
"subscriptions": [
{
"id": "<string>"
}
],
"templateSettings": [
{
"id": "<string>",
"app": "<string>"
}
],
"dataModels": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"indexPipeline": "<string>",
"queryPipeline": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"required": true,
"mappings": [
{
"solrField": "<string>",
"queryField": true,
"phraseMatch": true,
"boostValue": 123,
"phraseBoost": 123
}
]
}
]
}
],
"dataSources": [
{
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"modified": "2023-11-07T05:31:56Z",
"connector": "<string>",
"type": "<string>",
"description": "<string>",
"pipeline": "<string>",
"parserId": "<string>",
"properties": {}
}
]
},
"properties": [
{
"id": "<string>",
"schema": {
"type": "<string>",
"title": "<string>",
"description": "<string>",
"hints": [
"<string>"
]
}
}
],
"metadata": {
"formatVersion": "<string>",
"exportedBy": "<string>",
"exportedDate": "<string>",
"fusionVersion": "<string>",
"fusionGuid": "<string>"
}
}Export Fusion objects as JSON. Omit parameters to export all objects. When you export an app that includes objects that are shared with other apps, then all apps linked to that object are also exported.
import requests
url = "https://{FUSION HOST}/api/objects/export"
response = requests.get(url)
print(response.text){
"objects": {
"collections": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"searchClusterId": "<string>",
"commitWithin": 10000,
"features": {},
"compositeIdSpec": {
"routeKey1Field": "<string>",
"routeKey1Bits": 123,
"routeKey2Field": "<string>",
"routeKey2Bits": 123
},
"solrParams": {
"name": "<string>",
"numShards": 123,
"replicationFactor": 123,
"collection.configName": "<string>"
},
"modifiedAt": "2023-11-07T05:31:56Z",
"type": "DATA",
"relatedCollectionId": "<string>",
"metadata": {}
}
],
"indexPipelines": [
{
"id": "<string>"
}
],
"queryPipelines": [
{
"id": "<string>"
}
],
"searchClusters": [
{
"id": "<string>",
"connectString": "<string>",
"zkClientTimeout": 123,
"zkConnectTimeout": 123,
"cloud": true,
"bufferFlushInterval": 123,
"bufferSize": 123,
"concurrency": 123,
"authConfig": {
"authType": "NONE",
"username": "<string>",
"password": "<string>",
"keyTab": "<string>",
"principal": "<string>"
},
"validateCluster": true
}
],
"features": {},
"indexProfiles": [
{
"id": "<string>"
}
],
"queryProfiles": [
{
"id": "<string>"
}
],
"parsers": [
{
"id": "<string>"
}
],
"objectGroups": [
{
"id": "<string>",
"name": "<string>",
"isSystem": true,
"description": "<string>"
}
],
"links": [
{
"subject": "<string>",
"object": "<string>",
"linkType": "dependsOn",
"originator": "<string>"
}
],
"tasks": [
{
"id": "<string>",
"type": "<string>"
}
],
"jobs": [
{
"resource": "<string>",
"enabled": true,
"triggers": [
{
"enabled": true,
"type": "interval",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"interval": 123,
"repeatUnit": "minute",
"value": "<string>",
"jobID": "<string>",
"runOnSuccess": true,
"runOnFailure": true,
"runOnAbort": true
}
],
"default": true
}
],
"sparkJobs": [
{
"id": "<string>"
}
],
"blobs": [
{
"id": "<string>",
"path": "<string>",
"dir": "<string>",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"modifiedTime": "2023-11-07T05:31:56Z",
"version": 123,
"md5": "<string>",
"metadata": {}
}
],
"experiments": [
{
"id": "<string>"
}
],
"appkitApps": [
{
"appkitApp": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"contextPath": "<string>",
"enabled": true,
"type": "<string>",
"war": "<string>",
"warMd5": "<string>",
"warSize": 123
},
"editingSessions": [
{
"id": "<string>",
"owner": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": "<string>"
}
]
}
],
"fusionApps": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
],
"customRules": [
{
"id": "<string>"
}
],
"templates": [
{
"id": "<string>"
}
],
"zones": [
{
"id": "<string>"
}
],
"subscriptions": [
{
"id": "<string>"
}
],
"templateSettings": [
{
"id": "<string>",
"app": "<string>"
}
],
"dataModels": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"indexPipeline": "<string>",
"queryPipeline": "<string>",
"fields": [
{
"name": "<string>",
"description": "<string>",
"required": true,
"mappings": [
{
"solrField": "<string>",
"queryField": true,
"phraseMatch": true,
"boostValue": 123,
"phraseBoost": 123
}
]
}
]
}
],
"dataSources": [
{
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"modified": "2023-11-07T05:31:56Z",
"connector": "<string>",
"type": "<string>",
"description": "<string>",
"pipeline": "<string>",
"parserId": "<string>",
"properties": {}
}
]
},
"properties": [
{
"id": "<string>",
"schema": {
"type": "<string>",
"title": "<string>",
"description": "<string>",
"hints": [
"<string>"
]
}
}
],
"metadata": {
"formatVersion": "<string>",
"exportedBy": "<string>",
"exportedDate": "<string>",
"fusionVersion": "<string>",
"fusionGuid": "<string>"
}
}One or more of: collection, index-pipeline, query-pipeline, search-cluster, datasource, parser, group, link, task, job, spark, blob, appkit or app.
List the IDs to match for the specified object type, such as datasource.ids=movies_csv-movie. The type and type.ids parameters can be combined as needed.
One of:
system: Filter system objects when exporting a particular type of object.none: Export all objects of that type.system, none Set to true to include all linked objects.
Was this page helpful?