csm-data wsf-load-file¶
Description
Use csm-data to load files from a workspace inside the API
Command
csm-data api wsf-load-file --target-folder $CSM_DATASET_ABSOLUTE_PATH --organization-id $CSM_ORGANIZATION_ID --workspace-id $CSM_WORKSPACE_ID --workspace-path $CSM_WORKSPACE_PATH
Defined Environment
| Variable Name | Description | 
|---|---|
| CSM_DATASET_ABSOLUTE_PATH | Target folder in which to write the file from the Cosmo Tech API | 
| CSM_API_URL | The URL to a Cosmo Tech API instance | 
| CSM_API_KEY | An API key defined during the setup of the API instance granting access to the Run/data/send endpoint | 
| CSM_API_KEY_HEADER | The header key required to use the API key previously defined | 
| CSM_ORGANIZATION_ID | An organization id for the Cosmo Tech API | 
| CSM_WORKSPACE_ID | A workspace id for the Cosmo Tech API | 
| CSM_WORKSPACE_PATH | Path inside the workspace to load (end with '/' for a folder) | 
Will be passed all system Environment Variables as well as the defined Environment
csm-data wsf-load-file json file
{
  "id":"csm-data wsf-load-file",
  "command":"csm-data",
  "arguments":[
    "api",
    "wsf-load-file",
    "--target-folder",
    "$CSM_DATASET_ABSOLUTE_PATH",
    "--organization-id",
    "$CSM_ORGANIZATION_ID",
    "--workspace-id",
    "$CSM_WORKSPACE_ID",
    "--workspace-path",
    "$CSM_WORKSPACE_PATH"
  ],
  "environment":{
    "CSM_DATASET_ABSOLUTE_PATH":{
      "description":"Target folder in which to write the file from the Cosmo Tech API"
    },
    "CSM_API_URL":{
      "description":"The URL to a Cosmo Tech API instance"
    },
    "CSM_API_KEY":{
      "description":"An API key defined during the setup of the API instance granting access to the Run/data/send endpoint",
      "optional":true
    },
    "CSM_API_KEY_HEADER":{
      "defaultValue":"X-CSM-API-KEY",
      "description":"The header key required to use the API key previously defined",
      "optional":true
    },
    "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_WORKSPACE_PATH":{
      "description":"Path inside the workspace to load (end with '/' for a folder)"
    }
  },
  "description":"Use csm-data to load files from a workspace inside the API",
  "useSystemEnvironment":true
}