Registers a datasource in a FeatureStore instance. A datasource provides offline or online storage for a project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
featurestore:CreateDatasource |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/instances/{InstanceId}/datasources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. Call the ListInstances operation to obtain this ID. |
featureStore-cn-test1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Name |
string |
Yes |
The name of the datasource. |
datasource1 |
| WorkspaceId |
string |
Yes |
The ID of the workspace. Call the ListWorkspaces operation to obtain this ID. |
234 |
| Type |
string |
Yes |
The datasource type. Valid values are: ● Hologres ● GraphCompute ● Redis ● MaxCompute |
Hologres |
| Uri |
string |
Yes |
The URI of the resource. |
igraph_instance1 |
| Config |
string |
No |
The configuration of the resource. |
{"address": ""} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
1C5B1511-8A5B-59C3-90AF-513F9210E882 |
| DatasourceId |
string |
The ID of the datasource. |
3 |
Examples
Success response
JSON format
{
"RequestId": "1C5B1511-8A5B-59C3-90AF-513F9210E882",
"DatasourceId": "3"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.