GetDataset

Updated at:

Queries the description, field structure, labels, and favorite status of a dataset.

Operation description

If the version parameter is not specified, this operation queries the current dataset. If an existing version number is provided, it queries the corresponding historical version. You can retrieve the version list by calling ListDatasetVersions. The returned schema describes the field structure of the dataset. To read the data content, call ExecuteQuery.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

agentloop:GetDataset

get

*Dataset

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/dataset/{#DatasetName}

None None

Request syntax

GET /agentspace/{agentSpace}/dataset/{datasetName} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

Yes

The name of the agent space.

sop-agent

datasetName

string

Yes

The name of the dataset.

product_faq_dataset

Request parameters

Parameter

Type

Required

Description

Example

version

string

No

The version number of the dataset to read. If omitted, the current dataset is read.

1.0.0

Response elements

Element

Type

Description

Example

object

The response of the API call.

description

string

The description of the dataset.

Product FAQ dataset for semantic search

createTime

string

The time when the resource was created in RFC 3339 format.

2026-06-15T10:30:00Z

requestId

string

The ID of the request.

D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D

updateTime

string

The time when the resource was last updated in RFC 3339 format.

2026-06-15T11:20:00Z

agentSpace

string

The name of the agent space.

sop-agent

datasetName

string

The name of the dataset.

product_faq_dataset

regionId

string

The region ID.

cn-beijing

schema

object

The table schema of the dataset.

{ "field1": { "chn": false, "embedding": null, "jsonKeys": { "test": { "chn": true, "type": "text" } }, "type": "json" } }

IndexKey

The table schema of the dataset.

{ "chn": false, "embedding": null, "jsonKeys": { "test": { "chn": true, "type": "text" } }, "type": "json" }

isFavorite

boolean

Indicates whether the dataset is added to favorites.

true

labels

object

The labels of the dataset.

{ "Agent": ["Member Marketing"] }

array

The list of label values corresponding to the same label key.

["Member Marketing"]

string

The label value.

Member Marketing

ttlDays

integer

The data retention period in days.

7

Examples

Success response

JSON format

{
  "description": "Product FAQ dataset for semantic search",
  "createTime": "2026-06-15T10:30:00Z",
  "requestId": "D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D",
  "updateTime": "2026-06-15T11:20:00Z",
  "agentSpace": "sop-agent",
  "datasetName": "product_faq_dataset",
  "regionId": "cn-beijing",
  "schema": {
    "key": {
      "chn": true,
      "description": "test",
      "embedding": "agentloop-embedding-v4",
      "jsonKeys": {
        "key": {
          "chn": false,
          "type": "text"
        }
      },
      "type": "text"
    }
  },
  "isFavorite": true,
  "labels": {
    "key": [
      "Member Marketing"
    ]
  },
  "ttlDays": 7
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.