200 |
Each transfer can have a compact or detailed response. It depends on the parameter compact .
- The compact view has the following fields
- surveyDate
- id
- historyId
- controllerId
- profile
- state
- _operation
- workflowPath
- orderId
- job
- jobPosition
- numOfFiles
- start
- end
- error
- The detailed view has the following fields in addition to the compact view
- source
- account
- host
- port
- protocol
- target
- account
- host
- port
- protocol
- jump
|
|
application/json
model |
example
{
"title": "yade history",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.yade.Transfers",
"type": "object",
"required": [
"deliveryDate",
"transfers"
],
"properties": {
"deliveryDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"transfers": {
"type": "array",
"items": {
"javaType": "com.sos.joc.model.yade.Transfer",
"type": "object",
"description": "compact=true -> required fields + possibly numOfFiles, end, error",
"required": [
"id",
"surveyDate",
"historyId",
"controllerId",
"profile",
"state",
"_operation",
"workflowPath",
"orderId",
"job",
"jobPosition",
"start"
],
"properties": {
"surveyDate": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"id": {
"type": "number",
"format": "utc-millisec",
"minimum": 0
},
"profile": {
"type": "string"
},
"state": {
"javaType": "com.sos.joc.model.yade.TransferState",
"type": "object",
"required": [
"severity",
"_text"
],
"properties": {
"severity": {
"description": "0=SUCCESSFUL, 1=INCOMPLETE, 2=FAILED",
"type": "integer"
},
"_text": {
"javaType": "com.sos.joc.model.yade.TransferStateText",
"type": "string",
"enum": [
"SUCCESSFUL",
"FAILED",
"INCOMPLETE"
]
}
}
},
"_operation": {
"description": "must have the same entries as com.sos.yade.commons.Yade.TransferOperation",
"javaType": "com.sos.joc.model.yade.Operation",
"type": "string",
"enum": [
"UNKNOWN",
"COPY",
"MOVE",
"GETLIST",
"RENAME",
"COPYTOINTERNET",
"COPYFROMINTERNET",
"REMOVE"
]
},
"start": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"end": {
"description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
"type": "string",
"format": "date-time"
},
"error": {
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"source": {
"javaType": "com.sos.joc.model.yade.ProtocolFragment",
"type": "object",
"properties": {
"host": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"protocol": {
"javaType": "com.sos.joc.model.yade.Protocol",
"type": "string",
"enum": [
"LOCAL",
"FTP",
"FTPS",
"SFTP",
"HTTP",
"HTTPS",
"WEBDAV",
"WEBDAVS",
"SMB",
"UNKNOWN"
]
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"account": {
"type": "string",
"maxLength": 255
}
}
},
"target": {
"javaType": "com.sos.joc.model.yade.ProtocolFragment",
"type": "object",
"properties": {
"host": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"protocol": {
"javaType": "com.sos.joc.model.yade.Protocol",
"type": "string",
"enum": [
"LOCAL",
"FTP",
"FTPS",
"SFTP",
"HTTP",
"HTTPS",
"WEBDAV",
"WEBDAVS",
"SMB",
"UNKNOWN"
]
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"account": {
"type": "string",
"maxLength": 255
}
}
},
"jump": {
"javaType": "com.sos.joc.model.yade.ProtocolFragment",
"type": "object",
"properties": {
"host": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255,
"minLength": 1
},
"protocol": {
"javaType": "com.sos.joc.model.yade.Protocol",
"type": "string",
"enum": [
"LOCAL",
"FTP",
"FTPS",
"SFTP",
"HTTP",
"HTTPS",
"WEBDAV",
"WEBDAVS",
"SMB",
"UNKNOWN"
]
},
"port": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"account": {
"type": "string",
"maxLength": 255
}
}
},
"numOfFiles": {
"type": "number",
"format": "utc-millisec",
"minimum": 0
},
"controllerId": {
"type": "string",
"pattern": "^[^/\\<>?:\"|*]*$",
"maxLength": 100
},
"workflowPath": {
"description": "absolute path of an object.",
"type": "string",
"pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
"maxLength": 255,
"minLength": 1
},
"orderId": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"job": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"jobPosition": {
"type": "string",
"pattern": "^[^<>]*$",
"maxLength": 255
},
"historyId": {
"type": "number",
"format": "utc-millisec",
"minimum": 0
}
}
}
}
}
}
{ "deliveryDate": "2021-06-09T08:25:04.202Z", "transfers": [{ "_operation": "MOVE", "controllerId": "testsuite", "end": "2021-05-27T21:40:17Z", "error": {}, "historyId": 358062, "id": 1, "job": "transferFile", "jobPosition": "0", "numOfFiles": 1, "orderId": "#2021-05-27#F1622151608-pdfFilesCsv:4.csv", "profile": "product_demo_to_demo_file_path_sftp", "source": { "account": ".", "host": "agent-2-0-primary", "port": 0, "protocol": "LOCAL" }, "start": "2021-05-27T21:40:15Z", "state": { "_text": "SUCCESSFUL", "severity": 6 }, "surveyDate": "2021-05-27T21:40:17Z", "target": { "account": "sos", "host": "centostest_primary.sos", "port": 22, "protocol": "SFTP" }, "workflowPath": "/pdwWatchFileAndTransferFile" }, { "_operation": "MOVE", "controllerId": "testsuite", "end": "2021-05-27T21:40:17Z", "error": {}, "historyId": 358063, "id": 2, "job": "transferFile", "jobPosition": "0", "numOfFiles": 1, "orderId": "#2021-05-27#F1622151608-pdfFilesCsv:3.csv", "profile": "product_demo_to_demo_file_path_sftp", "source": { "account": ".", "host": "agent-2-0-primary", "port": 0, "protocol": "LOCAL" }, "start": "2021-05-27T21:40:15Z", "state": { "_text": "SUCCESSFUL", "severity": 6 }, "surveyDate": "2021-05-27T21:40:17Z", "target": { "account": "sos", "host": "centostest_primary.sos", "port": 22, "protocol": "SFTP" }, "workflowPath": "/pdwWatchFileAndTransferFile" }, { "_operation": "MOVE", "controllerId": "testsuite", "end": "2021-05-27T21:40:17Z", "error": {}, "historyId": 358064, "id": 3, "job": "transferFile", "jobPosition": "0", "numOfFiles": 1, "orderId": "#2021-05-27#F1622151608-pdfFilesCsv:2.csv", "profile": "product_demo_to_demo_file_path_sftp", "source": { "account": ".", "host": "agent-2-0-primary", "port": 0, "protocol": "LOCAL" }, "start": "2021-05-27T21:40:15Z", "state": { "_text": "SUCCESSFUL", "severity": 6 }, "surveyDate": "2021-05-27T21:40:17Z", "target": { "account": "sos", "host": "centostest_primary.sos", "port": 22, "protocol": "SFTP" }, "workflowPath": "/pdwWatchFileAndTransferFile" }, { "_operation": "MOVE", "controllerId": "testsuite", "end": "2021-05-27T21:40:17Z", "error": {}, "historyId": 358065, "id": 4, "job": "transferFile", "jobPosition": "0", "numOfFiles": 1, "orderId": "#2021-05-27#F1622151608-pdfFilesCsv:1.csv", "profile": "product_demo_to_demo_file_path_sftp", "source": { "account": ".", "host": "agent-2-0-primary", "port": 0, "protocol": "LOCAL" }, "start": "2021-05-27T21:40:15Z", "state": { "_text": "SUCCESSFUL", "severity": 6 }, "surveyDate": "2021-05-27T21:40:17Z", "target": { "account": "sos", "host": "centostest_primary.sos", "port": 22, "protocol": "SFTP" }, "workflowPath": "/pdwWatchFileAndTransferFile" }, { "_operation": "MOVE", "controllerId": "testsuite", "end": "2021-05-27T21:40:17Z", "error": {}, "hasIntervention": false, "historyId": 358066, "id": 5, "job": "transferFile", "jobPosition": "0", "numOfFiles": 1, "orderId": "#2021-05-27#F1622151608-pdfFilesCsv:5.csv", "profile": "product_demo_to_demo_file_path_sftp", "source": { "account": ".", "host": "agent-2-0-primary", "port": 0, "protocol": "LOCAL" }, "start": "2021-05-27T21:40:15Z", "state": { "_text": "SUCCESSFUL", "severity": 6 }, "surveyDate": "2021-05-27T21:40:17Z", "target": { "account": "sos", "host": "centostest_primary.sos", "port": 22, "protocol": "SFTP" }, "workflowPath": "/pdwWatchFileAndTransferFile" }] }
{
"deliveryDate": "2021-06-09T08:25:04.202Z",
"transfers": [{
"_operation": "MOVE",
"controllerId": "testsuite",
"end": "2021-05-27T21:40:17Z",
"error": {},
"historyId": 358062,
"id": 1,
"job": "transferFile",
"jobPosition": "0",
"numOfFiles": 1,
"orderId": "#2021-05-27#F1622151608-pdfFilesCsv:4.csv",
"profile": "product_demo_to_demo_file_path_sftp",
"source": {
"account": ".",
"host": "agent-2-0-primary",
"port": 0,
"protocol": "LOCAL"
},
"start": "2021-05-27T21:40:15Z",
"state": {
"_text": "SUCCESSFUL",
"severity": 6
},
"surveyDate": "2021-05-27T21:40:17Z",
"target": {
"account": "sos",
"host": "centostest_primary.sos",
"port": 22,
"protocol": "SFTP"
},
"workflowPath": "/pdwWatchFileAndTransferFile"
}, {
"_operation": "MOVE",
"controllerId": "testsuite",
"end": "2021-05-27T21:40:17Z",
"error": {},
"historyId": 358063,
"id": 2,
"job": "transferFile",
"jobPosition": "0",
"numOfFiles": 1,
"orderId": "#2021-05-27#F1622151608-pdfFilesCsv:3.csv",
"profile": "product_demo_to_demo_file_path_sftp",
"source": {
"account": ".",
"host": "agent-2-0-primary",
"port": 0,
"protocol": "LOCAL"
},
"start": "2021-05-27T21:40:15Z",
"state": {
"_text": "SUCCESSFUL",
"severity": 6
},
"surveyDate": "2021-05-27T21:40:17Z",
"target": {
"account": "sos",
"host": "centostest_primary.sos",
"port": 22,
"protocol": "SFTP"
},
"workflowPath": "/pdwWatchFileAndTransferFile"
}, {
"_operation": "MOVE",
"controllerId": "testsuite",
"end": "2021-05-27T21:40:17Z",
"error": {},
"historyId": 358064,
"id": 3,
"job": "transferFile",
"jobPosition": "0",
"numOfFiles": 1,
"orderId": "#2021-05-27#F1622151608-pdfFilesCsv:2.csv",
"profile": "product_demo_to_demo_file_path_sftp",
"source": {
"account": ".",
"host": "agent-2-0-primary",
"port": 0,
"protocol": "LOCAL"
},
"start": "2021-05-27T21:40:15Z",
"state": {
"_text": "SUCCESSFUL",
"severity": 6
},
"surveyDate": "2021-05-27T21:40:17Z",
"target": {
"account": "sos",
"host": "centostest_primary.sos",
"port": 22,
"protocol": "SFTP"
},
"workflowPath": "/pdwWatchFileAndTransferFile"
}, {
"_operation": "MOVE",
"controllerId": "testsuite",
"end": "2021-05-27T21:40:17Z",
"error": {},
"historyId": 358065,
"id": 4,
"job": "transferFile",
"jobPosition": "0",
"numOfFiles": 1,
"orderId": "#2021-05-27#F1622151608-pdfFilesCsv:1.csv",
"profile": "product_demo_to_demo_file_path_sftp",
"source": {
"account": ".",
"host": "agent-2-0-primary",
"port": 0,
"protocol": "LOCAL"
},
"start": "2021-05-27T21:40:15Z",
"state": {
"_text": "SUCCESSFUL",
"severity": 6
},
"surveyDate": "2021-05-27T21:40:17Z",
"target": {
"account": "sos",
"host": "centostest_primary.sos",
"port": 22,
"protocol": "SFTP"
},
"workflowPath": "/pdwWatchFileAndTransferFile"
}, {
"_operation": "MOVE",
"controllerId": "testsuite",
"end": "2021-05-27T21:40:17Z",
"error": {},
"hasIntervention": false,
"historyId": 358066,
"id": 5,
"job": "transferFile",
"jobPosition": "0",
"numOfFiles": 1,
"orderId": "#2021-05-27#F1622151608-pdfFilesCsv:5.csv",
"profile": "product_demo_to_demo_file_path_sftp",
"source": {
"account": ".",
"host": "agent-2-0-primary",
"port": 0,
"protocol": "LOCAL"
},
"start": "2021-05-27T21:40:15Z",
"state": {
"_text": "SUCCESSFUL",
"severity": 6
},
"surveyDate": "2021-05-27T21:40:17Z",
"target": {
"account": "sos",
"host": "centostest_primary.sos",
"port": 22,
"protocol": "SFTP"
},
"workflowPath": "/pdwWatchFileAndTransferFile"
}]
}
|