All Products
Search
Document Center

DataWorks:ListDataServiceApiAuthorities

Last Updated:Nov 21, 2024

Queries the APIs on which other users are granted the access permissions.

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 ID of the workspace.

10000
PageNumberintegerYes

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

1
PageSizeintegerYes

The number of entries per page. Valid values: 1 to 100. Default value: 10.

10
TenantIdlongNo

The tenant ID. This parameter is deprecated.

10001
ApiNameKeywordstringNo

The keyword in the name of the API. The keyword can be used to search for the API whose name contains the keyword.

My API name

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

HttpStatusCodeinteger

The HTTP status code.

200
RequestIdstring

The request ID.

0000-ABCD-EFG****
ErrorMessagestring

The error message.

Normal
Successboolean

Indicates whether the request was successful.

true
ErrorCodestring

The error code.

0
Dataobject

The APIs on which other users are granted the access permissions.

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. Valid values: 1 to 100. Default value: 10.

10
TotalCountinteger

The total number of entries returned.

100
ApiAuthorizationListarray<object>

The APIs on which other users are granted the access permissions.

ApiAuthorizationobject
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
ApiIdlong

The API ID.

10002
ModifiedTimestring

The time when the API was last modified.

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

The group ID.

ab123
ProjectIdlong

The workspace ID.

10000
CreatorIdstring

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

12345
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
AuthorizationRecordsarray<object>

The authorization records.

AuthorizationRecordobject
EndTimestring

The end time of the validity period of the authorization.

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

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

12345
CreatedTimestring

The time when the access permissions on the API were granted to other users.

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

The ID of the workspace to which the access permissions on the API are granted.

10004

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "Normal\n",
  "Success": true,
  "ErrorCode": "0",
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "ApiAuthorizationList": [
      {
        "ApiStatus": 0,
        "ApiId": 10002,
        "ModifiedTime": "2020-06-23T00:21:01+0800",
        "GroupId": "ab123",
        "ProjectId": 10000,
        "CreatorId": "12345",
        "CreatedTime": "2020-06-23T00:21:01+0800",
        "ApiName": "My API name\n",
        "TenantId": 10001,
        "ApiPath": "/test/1",
        "AuthorizationRecords": [
          {
            "EndTime": "2020-06-24T00:21:01+0800",
            "CreatorId": "12345",
            "CreatedTime": "2020-06-23T00:21:01+0800",
            "ProjectId": 10004
          }
        ]
      }
    ]
  }
}

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