CreateTable

Updated at:
Copy as MD

Create a data catalog

Operation description

Creates an event target under the specified rule.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

The name of the table.

my_table

Catalog

string

No

The data catalog to which the table belongs.

my_catalog

ClientToken

string

No

The idempotency token.

1e9b8f60-3a2c-4d7e-9f1b-8c3d5e7a2b4f

Namespace

string

No

The namespace to which the table belongs.

my_namespace

Comment

string

No

The description.

测试事件表

Columns

array<object>

No

The column definitions.

[{"Name":"id","Type":"bigint","Comment":"主键"}]

object

No

The column.

Name

string

No

The name of the connector.

kafka-default-agent-alikafka_pre-cn-28t3sfzno003

Type

string

No

The type of the column.

ehpc_cluster

Comment

string

No

The description of the field.

Isp

RetentionPolicy

object

No

The data retention policy.

{"HotTTL":7,"ColdTTL":30}

HotTTL

integer

No

The hot storage retention time.

30

ColdTTL

integer

No

The cold storage retention time.

30

Response elements

Element

Type

Description

Example

object

Message

string

The response message.

Operation success

RequestId

string

The request ID.

34AD682D-5B91-5773-8132-AA38C130****

Data

object

The response data.

{"TableARN":"acs:eventbridge:cn-hangzhou:123456789:catalog/my_catalog/namespace/my_namespace/table/my_table"}

TableARN

string

The ARN of the table.

acs:eventbridge:cn-hangzhou:123456789:catalog/my_catalog/namespace/my_namespace/table/my_table

Code

string

The response code.

200

Success

boolean

Indicates whether the request was successful.

true

Examples

Success response

JSON format

{
  "Message": "Operation success",
  "RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
  "Data": {
    "TableARN": "acs:eventbridge:cn-hangzhou:123456789:catalog/my_catalog/namespace/my_namespace/table/my_table"
  },
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

403 ServiceNotEnable Service not enable

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.