All Products
Search
Document Center

DataWorks:ListDataServiceAuthorizedApis

Last Updated:Oct 17, 2024

Queries the APIs that you are authorized to access.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongYes

The workspace ID.

10000
PageNumberintegerYes

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerYes

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

10
TenantIdlongNo

The tenant ID. This parameter is deprecated.

10001
ApiNameKeywordstringNo

The keyword in API names. The keyword is used to search for the APIs whose names contain the keyword.

My API Name

Response parameters

ParameterTypeDescriptionExample
object
HttpStatusCodeinteger

The HTTP status code.

200
RequestIdstring

The request ID.

0000-ABCD-EFG****
ErrorMessagestring

The error message.

The specified parameters are invalid.
Successboolean

Indicates whether the request was successful.

true
ErrorCodestring

The error code.

1031203110005
Dataobject

The information about the APIs that you are authorized to access.

PageNumberinteger

The page number. The value of this parameter is the same as that of the PageNumber parameter in the request.

1
PageSizeinteger

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

10
TotalCountinteger

The total number of entries returned.

100
ApiAuthorizedListarray<object>

The APIs that you are authorized to access.

ApiAuthorizedobject
ApiIdlong

The API ID.

10002
ApiStatusinteger

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
GrantOperatorIdstring

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

23456
ProjectIdlong

The workspace ID.

10000
CreatorIdstring

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

12345
GrantEndTimestring

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

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

The time when the API was last updated.

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

The group ID.

abcde123456789
GrantCreatedTimestring

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

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

The time when the API was created.

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

The name of the API.

My API Name
TenantIdlong

The tenant ID.

10001
ApiPathstring

The path of the API.

/test/1

Examples

Sample success responses

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": "My API Name\n",
        "TenantId": 10001,
        "ApiPath": "/test/1"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403Forbidden.AccessAccess is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.No permission, please authorize
429Throttling.ApiThe request for this resource has exceeded your available limit.-
429Throttling.SystemThe DataWorks system is busy. Try again later.-
429Throttling.UserYour request is too frequent. Try again later.-
500InternalError.SystemAn internal system error occurred. Try again later.-
500InternalError.UserId.MissingAn internal system error occurred. Try again later.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-09The Error code has changedView Change Details