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.
successful operation
Show child attributes
Show child attributes
Number of milliseconds in which the data is saved and available for searching. Default value is 10000.
Show child attributes
DATA, LOGS, METRICS, SIGNALS, SIGNALS_AGGREGATION, SEARCHLOGS, SYNONYMS, RECOMMENDATIONS, HISTORY, BLOBS, MESSAGES, TAXONOMY, CRAWL_DB, JOB_HISTORY, ARCHIVING, AUTOCOMPLETE_DOCUMENTS, QUERY_REWRITE, USER_PREFS, JOB_REPORTS, ACL, NULL Show child attributes
Show child attributes
Show child attributes
Resource reference as a string, such as 'datasource:ratings-db'
Resource reference as a string, such as 'datasource:ratings-db'
Possible link types:
DependsOn - The subject depends on the object.
Supports - The subject is depended on by the object (the reverse of dependsOn).
IsPartOf - The subject is part of the object, where the object is a group.
HasPart - The subject is a group, of which the object is a member (the reverse of isPartOf).
RelatesTo - The subject relates to the object. This is a uni-directional relationship that associates two objects that have none of the relationships described above.
InContextOf - The subject exists in the context of the object, which is an app.
HasContext - The subject is an app that contains the object.
Self - The subject and the object are the same.
dependsOn, supports, isPartOf, hasPart, relatesTo, inContextOf, hasContext, self Show child attributes
Resource reference as a string, such as 'datasource:ratings-db'
Show child attributes
interval, cron, job The date and time at which the job will first run (ISO-8601 format). Applies to type 'interval'.
The date and time at which the job will run last (ISO-8601 format). Applies to type 'interval'.
The interval at which the job will run. Applies to type 'interval'.
The unit for the interval. Applies to type 'interval'.
minute, hour, day A cron string that defines the schedule. Applies to type 'cron'.
The ID of the job that triggers this one. Applies to type 'job'.
Run this job when the triggering job succeeds. Applies to type 'job'.
Run this job when the triggering job fails. Applies to type 'job'.
Run this job when the triggering job is aborted. Applies to type 'job'.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?