All Products
Search
Document Center

:AttachDataset

Last Updated:Mar 01, 2024

Uses a dataset of a specified version of a specified instance to provide online services.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/current

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The ID of the instance.

airec-cn-o400whm78004
versionIdstringYes

The ID of the version.

20181023214546

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The details about the dataset.

versionIdstring

The version number of the dataset.

20181023214546
statestring

The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.

Importing
gmtModifiedlong

The time when the data source was last modified.

1544112000000
gmtCreatelong

The time when the data source was created.

1544112000000
instanceIdstring

The ID of the instance.

airec-cn-o400whm78004
codestring

The error code.

InternalServerError
requestIdstring

The ID of the request.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

The error message.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "result": {
    "versionId": "20181023214546",
    "state": "Importing",
    "gmtModified": 1544112000000,
    "gmtCreate": 1544112000000,
    "instanceId": "airec-cn-o400whm78004"
  },
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history