All Products
Search
Document Center

E-MapReduce:GenerateTaskCodes

Last Updated:Jun 11, 2026

Menghasilkan kode acak untuk definisi tugas alur kerja.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

GET /dolphinscheduler/projects/{bizId}/task-definition/gen-task-codes HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

bizId

string

Yes

ID ruang kerja.

w-d8********

Parameter permintaan

Parameter

Type

Required

Description

Example

genNum

integer

Yes

Jumlah kode yang akan dihasilkan.

1

productNamespace

string

Yes

Namespace produk.

SS

regionId

string

No

ID wilayah.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

The response object.

requestId

string

The request ID.

DD6B1B2A-5837-5237-ABE4-FF0C8944****

code

integer

The error code.

1000000

msg

string

The error message.

No permission for resource action

success

boolean

Indicates whether the request was successful.

true

failed

boolean

Indicates whether the request failed.

false

data

array

The returned data.

integer

A randomly generated code for the workflow node definition.

1263424***

httpStatusCode

integer

The HTTP status code.

200

Contoh

Respons sukses

JSONformat

{
  "requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
  "code": 1000000,
  "msg": "No permission for resource action",
  "success": true,
  "failed": false,
  "data": [
    0
  ],
  "httpStatusCode": 200
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.