All Products
Search
Document Center

:ValidateInstance

Last Updated:Mar 29, 2021

Description

Verifies the validity of information of a specified instance. One or more data sources can be verified.

Method

PUT

URI

/openapi/instances/{instanceId}/actions/validate

Request parameters

Parameter

Type

Required

Description

Name

String

No

The name of the instance.

Industry

String

No

The name of the industry.

Scene

String

No

The name of the scene.

DataSources

List<DataSource>

No

The data sources.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

Boolean

Indicates whether the information of the instance is valid. Valid values: true and false.

Sample requests

Verify the instance name.

PUT /openapi/instances/airec-cn-xxxxxx/actions/validate
{
    "name": "abc"
}

Verify information about the industry, scene, and data sources.

{
  "industry": "content",
  "scene": "gul",
  "dataSources": [
    {
      "tableName": "user",
      "meta": {
        "type": "ODPS",
        "tableName": "table",
        "accessKeyId": "ak",
        "accessKeySecret": "secret",
        "projectName": "project_name",
        "timestamp": 1544112000000,
        "partition": "dt=20181122"
      }
    }
  ]
}

Sample responses

JSON format

{
    "RequestId": "90D6B8F5-FE97-4509-9AAB-367836C51818",
    "Result": true
}