GetCrawlerTypeCapabilities

Updated at:

Queries the crawler types supported in the current region, along with their collection scope, scheduling, and extension configuration capabilities.

Operation description

Scenarios

Queries the crawler types that can be created in the current region, as well as the data sources, collection scope, resource groups, scheduling, AI metadata description, and extension configuration capabilities supported by each type.

Recommended workflow

  1. Call this operation before creating or updating a crawler.

  2. Construct a CreateCrawler or UpdateCrawler request based on the returned capability information.

Edition requirements

DataWorks Basic Edition or a higher edition is required.

Precautions

Capabilities may vary by region and crawler type. Use the actual response of this operation as the reference.

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

dataworks:GetCrawlerTypeCapabilities

get

*All Resource

*

None None

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

This operation does not require business request parameters.

Response elements

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID. Used for locating logs and troubleshooting issues.

9252F32F-D855-549E-8898-61CF5A733050

Success

boolean

Indicates whether the request was successful.

CrawlerTypes

array<object>

The list of crawler types and capabilities supported in the current region.

array<object>

The capability information of a single crawler type.

Type

string

The crawler type.

holo

DisplayName

string

The display name.

Hologres

SupportedEntityTypes

array<object>

The metadata entity levels that the crawler type supports for collection.

object

A single metadata entity level.

Type

string

The metadata entity type identifier.

holo

SubType

string

The metadata entity subtype.

database

Optional

boolean

Indicates whether the metadata entity level is optional.

ParentSubType

string

The parent-level metadata entity subtype.

instance

SupportedScopeUnits

array

The list of supported collection scope granularities.

string

A single collection scope granularity.

DATABASE

DefaultScopeUnit

string

The default collection scope granularity.

DATABASE

SupportedOptionKeys

array<object>

The supported crawler extension configuration items.

object

A single crawler extension configuration item.

Key

string

The name of the extension configuration item.

CollectRecyclebin

ValueType

string

The value type of the extension configuration item, such as BOOLEAN.

BOOLEAN

Required

boolean

Indicates whether the extension configuration item is required.

DefaultValue

string

The default value of the extension configuration item.

false

AllowedValues

array

The list of allowed values for the extension configuration item.

string

A single allowed value for the extension configuration item.

true

SupportExcludeRegex

boolean

Indicates whether schema or table exclusion regular expressions are supported.

SupportSchedule

boolean

Indicates whether periodic scheduling is supported.

SupportAiComment

boolean

Indicates whether AI metadata description is supported.

RequireResourceGroup

boolean

Indicates whether a resource group must be specified when creating this type of crawler.

SupportedDatasourceTypes

array

The list of supported data source types.

string

A single data source type.

holo

CrawlerTypes contains only the crawler types that can be created in the current region.

Examples

Success response

JSON format

{
  "RequestId": "9252F32F-D855-549E-8898-61CF5A733050",
  "Success": false,
  "CrawlerTypes": [
    {
      "Type": "holo",
      "DisplayName": "Hologres",
      "SupportedEntityTypes": [
        {
          "Type": "holo",
          "SubType": "database",
          "Optional": false,
          "ParentSubType": "instance"
        }
      ],
      "SupportedScopeUnits": [
        "DATABASE"
      ],
      "DefaultScopeUnit": "DATABASE",
      "SupportedOptionKeys": [
        {
          "Key": "CollectRecyclebin",
          "ValueType": "BOOLEAN",
          "Required": false,
          "DefaultValue": "false",
          "AllowedValues": [
            "true"
          ]
        }
      ],
      "SupportExcludeRegex": false,
      "SupportSchedule": false,
      "SupportAiComment": false,
      "RequireResourceGroup": false,
      "SupportedDatasourceTypes": [
        "holo"
      ]
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.