GetDataServiceApplication

Updated at:

Queries the details of a Data Service application.

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

TenantId

integer

No

The tenant ID. You can log on to the DataWorks console, go to the DataStudio page, click the username in the upper-right corner, and choose Menu > User Information to obtain the tenant ID.

10002

ProjectId

integer

Yes

The ID of the workspace.

10001

ApplicationId

integer

Yes

The ID of the application. You can view the application information in the API Gateway console.

10000

ApigwVersion

integer

No

The gateway version. Valid values:

  • 1: API Gateway.

  • 2: Cloud-native API Gateway.

1

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID.

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 application details.

ApplicationCode

string

The AppCode for simple authentication, which is the first authentication method for API calls.

CODE123

ApplicationKey

string

The AppKey for encrypted signature authentication, which is the second authentication method for API calls.

KEY123

ApplicationSecret

string

The AppSecret for encrypted signature authentication, which is the second authentication method for API calls.

SECRET123

ProjectId

integer

The ID of the associated workspace.

10001

ApplicationName

string

The name of the application.

Test application

ApplicationId

integer

The ID of the application.

10000

Exposing the ApplicationCode or ApplicationSecret can compromise the security of your Data Service API resources. This operation masks both values before returning them.

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "Normal",
  "Success": true,
  "ErrorCode": "0",
  "Data": {
    "ApplicationCode": "CODE123",
    "ApplicationKey": "KEY123",
    "ApplicationSecret": "SECRET123",
    "ProjectId": 10001,
    "ApplicationName": "Test application",
    "ApplicationId": 10000
  }
}

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.