AbolishDataServiceApi
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
Test
RAM authorization
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.