csm-data tdl-send-files¶
Description
Use csm-data to send a folder content to the Cosmo Tech API as a Twin Graph
Command
csm-data api tdl-send-files --dir $CSM_DATASET_ABSOLUTE_PATH --organization-id $CSM_ORGANIZATION_ID --workspace-id $CSM_WORKSPACE_ID --runner-id $CSM_RUNNER_ID
Defined Environment
Variable Name | Description |
---|---|
CSM_DATASET_ABSOLUTE_PATH | Folder containing the files to send to the API |
CSM_API_URL | The URL to a Cosmo Tech API instance |
CSM_ORGANIZATION_ID | An organization id for the Cosmo Tech API |
CSM_WORKSPACE_ID | A workspace id for the Cosmo Tech API |
CSM_RUNNER_ID | A runner id for the Cosmo Tech API |
Will be passed all system Environment Variables
as well as the defined Environment
csm-data tdl-send-files json file
{
"id":"csm-data tdl-send-files",
"command":"csm-data",
"arguments":[
"api",
"tdl-send-files",
"--dir",
"$CSM_DATASET_ABSOLUTE_PATH",
"--organization-id",
"$CSM_ORGANIZATION_ID",
"--workspace-id",
"$CSM_WORKSPACE_ID",
"--runner-id",
"$CSM_RUNNER_ID"
],
"environment":{
"CSM_DATASET_ABSOLUTE_PATH":{
"description":"Folder containing the files to send to the API"
},
"CSM_API_URL":{
"description":"The URL to a Cosmo Tech API instance"
},
"CSM_ORGANIZATION_ID":{
"description":"An organization id for the Cosmo Tech API"
},
"CSM_WORKSPACE_ID":{
"description":"A workspace id for the Cosmo Tech API"
},
"CSM_RUNNER_ID":{
"description":"A runner id for the Cosmo Tech API"
}
},
"description":"Use csm-data to send a folder content to the Cosmo Tech API as a Twin Graph",
"useSystemEnvironment":true
}