Create a Data Source
Select
SaaS
Customer Managed
This operation creates a new data source in Data Cube.
- application/json
Request Body
collections object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Create Open Data Source
Schema
collections object[]
{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}
{
"collections": [
{
"clientId": 2,
"computedCoreName": "DC_open_OpenDSRestSample2_84",
"description": "",
"coreName": "OpenDSRestSample2",
"cloudId": 1,
"ownerUserId": 2,
"schemaType": "default",
"createUTCTime": 1507661275,
"coreId": 84,
"attribute": 0,
"datasources": [
{
"ownerType": 1,
"datasourceGuid": "7F52ED18-DD64-4BBF-9C50-F2DE6C0EA41D",
"description": "",
"userId": 2,
"datasourceType": 11,
"datasourceId": 82,
"createUTCTime": 1507661279,
"attribute": 0,
"datasourceName": "OpenDSRestSample2",
"modifiedByUserId": 2,
"modifiedUTCTime": 1507661282
}
]
}
]
}
POST /dcube/createdatasource
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/dcube/createDataSource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"collections": [
{
"clientId": 0,
"computedCoreName": "string",
"description": "string",
"coreName": "string",
"cloudId": 0,
"ownerUserId": 0,
"schemaType": "string",
"createUTCTime": 0,
"coreId": 0,
"attribute": 0,
"datasources": [
{
"ownerType": 0,
"datasourceGuid": "string",
"description": "string",
"userId": 0,
"datasourceType": 0,
"datasourceId": 0,
"createUTCTime": 0,
"attribute": 0,
"datasourceName": "string",
"modifiedByUserId": 0,
"modifiedUTCTime": 0
}
]
}
]
}'