csm-data rds-load-csv¶
Description
Use csm-data to query the results api and store it in a csv file, you need to add your arguments for filename and query while using this template
Command
csm-data api rds-load-csv --target-folder $CSM_DATASET_ABSOLUTE_PATH --organization-id $CSM_ORGANIZATION_ID --workspace-id $CSM_WORKSPACE_ID --runner-id $CSM_RUNNER_ID --run-id $CSM_RUN_ID
Defined Environment
Variable Name | Description |
---|---|
CSM_DATASET_ABSOLUTE_PATH | Target folder in which to write the resulting CSV file |
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 |
CSM_RUN_ID | A run id for the Cosmo Tech API |
Will be passed all system Environment Variables
as well as the defined Environment
csm-data rds-load-csv json file
{
"id":"csm-data rds-load-csv",
"command":"csm-data",
"arguments":[
"api",
"rds-load-csv",
"--target-folder",
"$CSM_DATASET_ABSOLUTE_PATH",
"--organization-id",
"$CSM_ORGANIZATION_ID",
"--workspace-id",
"$CSM_WORKSPACE_ID",
"--runner-id",
"$CSM_RUNNER_ID",
"--run-id",
"$CSM_RUN_ID"
],
"environment":{
"CSM_DATASET_ABSOLUTE_PATH":{
"description":"Target folder in which to write the resulting CSV file"
},
"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"
},
"CSM_RUN_ID":{
"description":"A run id for the Cosmo Tech API"
}
},
"description":"Use csm-data to query the results api and store it in a csv file, you need to add your arguments for filename and query while using this template",
"useSystemEnvironment":true
}