Creating a Data Space
Function
This API is used to create a data space.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/workspaces/{workspace_id}/siem/dataspaces
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
workspace_id |
Yes |
String |
Workspace ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
dataspace_name |
Yes |
String |
Data space name. |
description |
Yes |
String |
Description. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
domain_id |
String |
Account ID. |
region_id |
String |
region ID |
project_id |
String |
Project ID. |
dataspace_id |
String |
Workspace ID. |
dataspace_name |
String |
Workspace name. |
dataspace_type |
String |
Data space type. The value can be system-defined or user-defined. |
description |
String |
Description. |
create_by |
String |
Creator. |
create_time |
Long |
Creation time. |
update_by |
String |
Updater. |
update_time |
Long |
Update time. |
Example Requests
{ "dataspace_name" : "dataspace-01", "description" : "test dataspace" }
Example Responses
Status code: 200
Response value to a successful creation.
{ "domain_id" : "0531ed520xxxxxxebedb6e57xxxxxxxx", "region_id" : "region_id", "project_id" : "2b31ed520xxxxxxebedb6e57xxxxxxxx", "dataspace_id" : "a00106ba-bede-453c-8488-b60c70bd6aed", "dataspace_name" : "dataspace-01", "dataspace_type" : "system-defined", "description" : "test dataspace", "create_by" : "0642ed520xxxxxxebedb6e57xxxxxxxx", "create_time" : 1584883694354, "update_by" : "0642ed520xxxxxxebedb6e57xxxxxxxx", "update_time" : 1584883694354 }
Status Codes
Status Code |
Description |
---|---|
200 |
Response value to a successful creation. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot