pipeline = project.pipelines.get(pipeline_id='pipeline_id') # # Get Pipeline object to use in your code. # # **prerequisites**: You must be an *owner* or *developer* to use this method. # # You must provide at least ONE of the following params: pipeline_name, pipeline_id. # # :param str pipeline_id: pipeline id # :param str pipeline_name: pipeline name # :param fetch: optional - fetch entity from platform, default taken from cookie # :return: Pipeline object # :rtype: dtlpy.entities.pipeline.Pipeline # #
{- "id": "string",
- "url": "string",
- "name": "string",
- "creator": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "projectId": "string",
- "orgId": "string",
- "compositionId": "string",
- "nodes": [
- {
- "metadata": {
- "property1": null,
- "property2": null
}, - "appName": "string",
- "dpkName": "string",
- "id": "string",
- "config": {
- "package": {
- "name": "string",
- "type": "codebase",
- "entryFile": "string",
- "code": "string",
- "requirements": [
- {
- "name": "string",
- "version": "string",
- "operator": "=="
}
], - "requirementsFilename": "string",
- "codebase": {
- "type": "item"
}, - "codebaseFilename": "string"
}
}, - "namespace": {
- "projectName": "string",
- "serviceName": "string",
- "functionName": "string",
- "moduleName": "string",
- "packageName": "string"
}, - "inputs": [
- {
- "type": "Dataset",
- "name": "string",
- "portId": "string",
- "displayName": "string",
- "color": "string",
- "actionIcon": "string",
- "actions": [
- "string"
], - "portPercentage": 0,
- "defaultValue": { },
- "variableName": "string"
}
], - "outputs": [
- {
- "type": "Dataset",
- "name": "string",
- "portId": "string",
- "displayName": "string",
- "color": "string",
- "actionIcon": "string",
- "actions": [
- "string"
], - "portPercentage": 0,
- "defaultValue": { },
- "variableName": "string"
}
], - "type": "code",
- "projectId": "string",
- "name": "string",
- "info": {
- "id": "string",
- "counts": {
- "pending": 0,
- "inProgress": 0,
- "failed": 0,
- "success": 0,
- "queue": 0
}, - "stats": {
- "avgMs": 0,
- "avgPerDay": 0
}, - "status": "pending"
}
}
], - "connections": [
- {
- "src": {
- "nodeId": "string",
- "portId": "string"
}, - "tgt": {
- "nodeId": "string",
- "portId": "string"
}, - "condition": "string"
}
], - "description": "string",
- "preview": "string",
- "startNodes": [
- {
- "nodeId": "string",
- "type": "root",
- "trigger": {
- "type": "Event",
- "spec": {
- "resource": "Dataset",
- "actions": [
- "Created"
], - "executionMode": "Once",
- "filter": {
- "property1": null,
- "property2": null
}
}, - "name": "string"
}
}
], - "status": "Created",
- "settings": {
- "defaultResumeOption": "terminateExistingCycles",
- "keepTriggersActive": true,
- "activeTriggerAskAgain": true,
- "lastUpdate": {
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}, - "variables": [
- {
- "id": "string",
- "name": "string",
- "reference": "string",
- "creator": "string",
- "value": { },
- "type": "Dataset",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "description": "string"
}
], - "resetTimestamp": "2019-08-24T14:15:22Z"
}