ListComponents

Updated at:

Retrieves a list of components.

Operation description

You must purchase DataWorks Basic Edition or a higher edition to use this feature.

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:ListComponents

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

No

The ID of the workspace associated with the data source. You can call the ListProjects operation to obtain the workspace ID.

100001

Name

string

No

The name of the data source.

xm_create_test

PageNumber

integer

No

The page number for pagination.

1

PageSize

integer

No

The number of entries per page. Default value: 10. Maximum value: 100.

1000

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID. Use this ID for troubleshooting.

952795279527ab****

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries.

100

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

Components

array<object>

The UID of the user who created the dataset acceleration component. In Alibaba Cloud, this is the RAM user ID (or the Alibaba Cloud account ID if created by the account itself).

array<object>

The UID of the user who created the dataset acceleration component. In Alibaba Cloud, this is the RAM user ID (or the Alibaba Cloud account ID if created by the account itself).

ModifyTime

string

The timestamp when the deployment process was modified.

2023-11-30T13:30:58Z

Script

object

The script information.

Path

string

The script path.

/

Runtime

object

The runtime.

Command

string

The command.

SQL_COMPONENT

Id

string

ID

348100

Owner

string

The owner.

252675537980665607

Description

string

The description.

vpc peering management_staging

CreateTime

string

The creation time.

2023-03-13 16:35:59

Outputs

array<object>

The output parameters.

object

The node output.

DefaultValue

string

The default value.

32000

Type

string

The parameter type.

string

Description

string

The parameter description.

zdy

Name

string

The parameter name.

auto_updateAlertRule_test_bULIRo

ProjectId

integer

The DataWorks workspace ID. To obtain the workspace ID, log on to the DataWorks console and navigate to the workspace configuration page. You must specify either this parameter or ProjectIdentifier to identify the target DataWorks workspace for this API call.

199925

ComponentId

string

The component ID. This parameter can be used in requests to query, modify, or delete director components.

12312313123

Inputs

array<object>

The input parameters.

object

The variable element.

DefaultValue

string

The default value of the variable.

mdb.shard.2x.2xlarge.d

Type

string

The parameter type.

string

Description

string

The parameter description.

None

Name

string

The parameter name.

auto_updateAlertRule_test_bULIRo

Name

string

The resource name.

auto_updateAlertRule_test_lJd81f

Examples

Success response

JSON format

{
  "RequestId": "952795279527ab****",
  "PagingInfo": {
    "TotalCount": 100,
    "PageNumber": 1,
    "PageSize": 10,
    "Components": [
      {
        "ModifyTime": "2023-11-30T13:30:58Z",
        "Script": {
          "Path": "/",
          "Runtime": {
            "Command": "SQL_COMPONENT"
          },
          "Id": "348100"
        },
        "Owner": "252675537980665607",
        "Description": "vpc peering management_staging",
        "CreateTime": "2023-03-13 16:35:59",
        "Outputs": [
          {
            "DefaultValue": "32000",
            "Type": "string",
            "Description": "zdy",
            "Name": "auto_updateAlertRule_test_bULIRo"
          }
        ],
        "ProjectId": 199925,
        "ComponentId": "12312313123",
        "Inputs": [
          {
            "DefaultValue": "mdb.shard.2x.2xlarge.d",
            "Type": "string",
            "Description": "None",
            "Name": "auto_updateAlertRule_test_bULIRo"
          }
        ],
        "Name": "auto_updateAlertRule_test_lJd81f"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.