Add an OSS data source

更新时间:
复制 MD 格式

Add an Object Storage Service (OSS) data source to DataV. OSS allows you to store and access unstructured data such as text, images, audio, and video files over the Internet at any time.

Prerequisites

The OSS data source is prepared.

Add an OSS data source

  1. Log on to the DataV console.

  2. On the My Data tab, select Data Source Management and click Add Data.

  3. Select OSS from the Type drop-down list.
  4. Configure the following OSS parameters.
    Add an OSS data source
    Parameter Description
    Name The name of the data source. You can set this parameter to a custom name.
    AK ID The AccessKey ID of an account with access to the target OSS bucket.
    AK Secret The AccessKey secret that corresponds to the AccessKey ID.
    Region The public region of the OSS bucket. Log on to the OSS console and click your bucket name to find this value. OSS region information

    For example, if your bucket is in China (Shanghai), set Region to oss-cn-shanghai.

  5. After you configure the parameters, click OK.

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

Use an OSS data source

  1. Log on to the DataV console.

  2. On the My Visualization page, hover the pointer over the visualization application that you want to edit, and then click Edit.

    Important

    If you do not have any visualization applications on the My Visualization page, create one. For more information, see Create a PC visualization application using a template.

  3. On the canvas editor page, click a widget on the canvas.

    If the canvas does not have any widgets, add one. For more information, see Add an asset.

  4. In the configuration panel for the widget on the right, click the Data tab, and then click Configure 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.