AbolishDataServiceApi

Updated at:

Takes a Data Service API offline.

Operation description

This operation takes a published Data Service API offline. To publish a Data Service API, call PublishDataServiceApi. Before you call this operation, you can call GetDataServiceApi to query the API status. A value of 0 indicates that the API is unpublished, and a value of 1 indicates that the API is published.

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. To obtain the tenant ID, log on to the DataWorks console, go to the Data Studio page, click the username of the current logged-on user in the upper-right corner, and choose Menu > User Information.

10002

ProjectId

integer

Yes

The workspace ID.

10001

ApiId

integer

Yes

The ID of the Data Service API.

10000

ApigwInstanceId

string

No

The Cloud Native API Gateway instance.

gw-abc123xyz789

Response elements

Element

Type

Description

Example

object

HttpStatusCode

integer

The HTTP status code.

200

Data

boolean

Indicates whether the Data Service API was successfully taken offline.

true

ErrorMessage

string

The error message.

The connection does not exist.

RequestId

string

The request ID, which uniquely identifies a request.

0000-ABCD-EFG****

ErrorCode

string

The error code.

Invalid.Tenant.ConnectionNotExists

Success

boolean

Indicates whether the call was successful.

true

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "Data": true,
  "ErrorMessage": "The connection does not exist.",
  "RequestId": "0000-ABCD-EFG****",
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.