All Products
Search
Document Center

DataWorks:ListDataServiceAuthorizedApis

Last Updated:Jul 31, 2026

Mengambil daftar API yang diotorisasi di DataService.

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.

Parameter permintaan

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

ID ruang kerja. Anda dapat memperoleh nilai ini dari bidang PageResult.ProjectList[].ProjectId yang dikembalikan oleh operasi ListProjects.

10000

PageNumber

integer

No

Nomor halaman. Halaman dimulai dari 1. Nilai default: 1.

1

PageSize

integer

No

Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 50.

10

TenantId

integer

No

[Deprecated] ID penyewa.

10001

ApiNameKeyword

string

No

Kata kunci nama API. Parameter ini digunakan untuk memfilter API yang namanya mengandung kata kunci yang ditentukan.

MyAPIName

Elemen respons

Element

Type

Description

Example

object

HttpStatusCode

integer

Kode status HTTP.

200

RequestId

string

ID permintaan. Pengidentifikasi unik untuk permintaan.

0000-ABCD-EFG****

ErrorMessage

string

Pesan kesalahan.

Parameter yang ditentukan tidak valid

Success

boolean

Apakah panggilan berhasil.

true

ErrorCode

string

Kode kesalahan.

1031203110005

Data

object

Informasi tentang API yang diotorisasi.

PageNumber

integer

Nomor halaman, sama dengan nilai PageNumber dalam permintaan.

1

PageSize

integer

Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100.

10

TotalCount

integer

Jumlah total rekaman.

100

ApiAuthorizedList

array<object>

Daftar API yang diotorisasi.

object

ApiId

integer

The API ID.

10002

ApiStatus

integer

The status of the API. Valid values: 0 and 1. The value 0 indicates that the API is not published. The value 1 indicates that the API is published.

0

GrantOperatorId

string

The ID of the Alibaba Cloud account used by the user who granted the access permissions on the API.

23456

ProjectId

integer

The workspace ID.

10000

CreatorId

string

The ID of the Alibaba Cloud account used by the API owner.

12345

GrantEndTime

string

The expiration time of the access permissions granted on the API.

2020-06-24T00:21:01+0800

ModifiedTime

string

The time when the API was last updated.

2020-06-23T00:21:01+0800

GroupId

string

The group ID.

abcde123456789

GrantCreatedTime

string

The time when the access permissions on the API were granted.

2020-06-23T00:21:01+0800

CreatedTime

string

The time when the API was created.

2020-06-23T00:21:01+0800

ApiName

string

The name of the API.

我的API名称

TenantId

integer

The tenant ID.

10001

ApiPath

string

The path of the API.

/test/1

Contoh

Respons sukses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "The specified parameters are invalid.",
  "Success": true,
  "ErrorCode": "1031203110005",
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "ApiAuthorizedList": [
      {
        "ApiId": 10002,
        "ApiStatus": 0,
        "GrantOperatorId": "23456",
        "ProjectId": 10000,
        "CreatorId": "12345",
        "GrantEndTime": "2020-06-24T00:21:01+0800",
        "ModifiedTime": "2020-06-23T00:21:01+0800",
        "GroupId": "abcde123456789",
        "GrantCreatedTime": "2020-06-23T00:21:01+0800",
        "CreatedTime": "2020-06-23T00:21:01+0800",
        "ApiName": "我的API名称",
        "TenantId": 10001,
        "ApiPath": "/test/1"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.