All Products
Search
Document Center

DataWorks:DsgPlatformQueryProjectsAndSchemaFromMeta

Last Updated:Oct 17, 2024

Queries a list of compute engines of different types in the current tenant.

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
EngineNamestringYes

The type of the compute engine. Valid values:

  • ODPS.ODPS
  • EMR
  • HOLO.POSTGRES
EMR

Response parameters

ParameterTypeDescriptionExample
object

OpenApiResultModel<List>

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

1029030003
ErrorMessagestring

The error message.

param error
HttpStatusCodeinteger

The HTTP status code.

400
Dataarray<object>

The data returned.

Datasobject
Projectstring

The name of the compute engine.

emr_test_project
ClusterIdstring

The ID of the EMR cluster. This parameter is generated only when the request parameter EngineName is set to EMR.

c-12345
RequestIdstring

The request ID. You can use the ID to locate logs and troubleshoot issues.

102400001

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "ErrorCode": "1029030003",
  "ErrorMessage": "param error",
  "HttpStatusCode": 400,
  "Data": [
    {
      "Project": "emr_test_project",
      "ClusterId": "c-12345"
    }
  ],
  "RequestId": "102400001"
}

Error codes

HTTP status codeError codeError messageDescription
400PARAMS.ERRORparam error.-
400ENGINE.NOT.ALLOWengine not allow.Engine type not allowed
403PERMISSION.DENIED.ERRORPermission deniedInsufficient permissions.
500UNKNOWN.ERRORunknown error.Unknown error.

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