This topic describes how to add an Object Storage Service (OSS) data source in DataV. Alibaba Cloud OSS allows you to store and use unstructured data such as text, image, audio, and video files over the Internet at any time.

  1. Log on to the DataV console.
  2. Click the Data Sources tab and then Add Source.
  3. Select OSS from the Type drop-down list.
  4. Enter OSS information.
    Add an OSS data source
    Parameter Description
    Name The name that you want to display for the data source.
    AK ID The AccessKey ID of the account that has permissions to access the target OSS bucket.
    AK Secret The AccessKey secret of the account that has permissions to access the target OSS bucket.
    Region The region information of the target OSS bucket. Log on to the OSS console. Then, click your bucket name to obtain the required information.OSS region information

    In this figure, the OSS bucket is located in the China (Shanghai) region. Therefore, you must set Region to oss-cn-shanghai.

  5. After you enter the OSS information, click OK.

    The added data source is displayed in the data source list.

Use the OSS data source

  1. Log on to the DataV console.
  2. On the Projects tab, move the pointer over the project that you want to edit and click Edit.
  3. On the edit page of the canvas, click a widget.

    If no widget is added to the canvas, add a widget first. For more information, see Add a widget.

  4. In the right-side configuration pane, click the Data tab and then Set.
    Set Data Source
  5. In the Set Data Source pane, select OSS from the Data Source Type drop-down list.
  6. In the Select Data Source section, select the configured OSS data source.
  7. In the File Path section, enter the target file path.
  8. Click Preview Data Response to view the returned data.
    The file must meet the following requirements:
    • The file is in the JSON text format.
    • The file path is in the oss://bucket/file format. If your OSS bucket is named myBucket and the file is test.json, the file path must be oss://myBucket/test.json.