ListDataServiceApiAuthorities

Updated at:

Queries the APIs authorized to other users.

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

ProjectId

integer

Yes

The ID of the workspace. You can call the ListProjects operation to obtain a valid workspace ID or view it in the workspace configurations in the DataWorks console. Before calling ListProjects, ensure that the DataWorks service and RAM permissions are ready.

10000

PageNumber

integer

Yes

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

1

PageSize

integer

Yes

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

10

TenantId deprecated

integer

No

[Deprecated] The tenant ID.

10001

ApiNameKeyword

string

No

The keyword in the API name. This parameter is used to filter APIs whose names contain the specified keyword.

MyApiName

ApigwVersion

integer

No

The gateway version. Valid values: 1: API Gateway. 2: Cloud-native API Gateway.

1

Response elements

Element

Type

Description

Example

object

The response structure.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The ID of the request.

0000-ABCD-EFG****

ErrorMessage

string

The error message.

Normal

Success

boolean

Indicates whether the call was successful.

true

ErrorCode

string

The error code.

0

Data

object

The list of APIs authorized to other users.

PageNumber

integer

The page number, which is the same as the PageNumber parameter in the request.

1

PageSize

integer

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

10

TotalCount

integer

The total number of entries.

100

ApiAuthorizationList

array<object>

The list of API authorizations.

array<object>

An API authorization.

ApiStatus

integer

The status of the API. Valid values: 0: Unpublished. 1: Published.

0

ApiId

integer

The ID of the API.

10002

ModifiedTime

string

The time when the API was last updated. The time is in the yyyy-MM-dd'T'HH:mm:ssZ format (example time zone offset: +0800).

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

GroupId

string

The ID of the group.

ab123

ProjectId

integer

The ID of the workspace.

10000

CreatorId

string

The Alibaba Cloud ID of the API owner.

12345

CreatedTime

string

The time when the API was created. The time is in the yyyy-MM-dd'T'HH:mm:ssZ format (example time zone offset: +0800).

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

ApiName

string

The name of the API.

MyApiName

TenantId

integer

The tenant ID.

10001

ApiPath

string

The path of the API.

/test/1

AuthorizationRecords

array<object>

The list of authorization records for other users.

object

An authorization record.

EndTime

string

The end time of the authorization validity period. The time is in the yyyy-MM-dd'T'HH:mm:ssZ format (example time zone offset: +0800).

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

CreatorId

string

The Alibaba Cloud ID of the API owner.

12345

CreatedTime

string

The authorization time. The time is in the yyyy-MM-dd'T'HH:mm:ssZ format (example time zone offset: +0800).

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

ProjectId

integer

The ID of the workspace to which the authorization is granted.

10004

ConsumerAuthorizationRuleId

string

The ID of the Cloud-native API Gateway authorization rule.

car-xxxx

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "Normal",
  "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": "MyApiName",
        "TenantId": 10001,
        "ApiPath": "/test/1",
        "AuthorizationRecords": [
          {
            "EndTime": "2020-06-24T00:21:01+0800",
            "CreatorId": "12345",
            "CreatedTime": "2020-06-23T00:21:01+0800",
            "ProjectId": 10004,
            "ConsumerAuthorizationRuleId": "car-xxxx"
          }
        ]
      }
    ]
  }
}

Error codes

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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.