sdk.data_source.create()
elements.sdk.api.data_source
Create a data source.
Create a new data source definition. Data sources represent the origin of raw datasets used in computations.
Parameters
- data_source (Dict) - A dictionary containing the data source configuration:
- id (str) - The unique identifier for the data source
- name (str) - The human-readable name
- description (str) - A description of the data source
- data_types (List[str]) - List of data type names this source provides
- config_info (Dict) - Configuration information for the data source
Returns
DataSourceCreateResponse - The response containing the created data source
Example(s)
# Create a data source
response = await sdk.data_source.create({
"id": "my-satellite-provider",
"name": "My Satellite Provider",
"description": "High-resolution optical imagery",
"data_types": ["optical_imagery", "metadata"],
"config_info": {
"resolution": "0.5m",
"bands": ["R", "G", "B", "NIR"]
}
})
# Output contains the created data source ID
print(response)Updated 6 months ago