PublishDataServiceApi
Publishes a Data Service API.
Operation description
Publishing process: First, create an API group in API Gateway in the same region as the DataWorks workspace. Then, call the CreateDataServiceGroup operation and configure a valid ApiGatewayGroupId. Next, create, submit, and publish the data service API in sequence. The data service group to which the API belongs must be associated with an existing API Gateway group.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TenantId |
integer |
No |
The tenant ID. You can log on to the DataWorks console, go to the Data Studio page, click the username in the upper-right corner, and choose Menu > User Information to obtain the tenant ID. |
10002 |
| ProjectId |
integer |
Yes |
The workspace ID. |
10001 |
| ApiId |
integer |
Yes |
The ID of the API. |
10000 |
| ApigwInstanceId |
string |
No |
The cloud-native API gateway instance. |
gw-da40itmm1hkgrqjq9*** |
| ApigwDomainIds |
array |
No |
The list of domain name IDs of the cloud-native API gateway. |
d-cq1m3utlhtgvgkv7si***, d-i9803utlhtgvgkv7s*** |
|
string |
No |
The domain name ID of the cloud-native API gateway. |
d-cq1m3utlhtgvgkv7si*** |
|
| ApigwService |
string |
No |
The backend service of the cloud-native API gateway. |
svc-cr6pk4tlhtgm*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the publication was successful. |
true |
| ErrorMessage |
string |
The error message. |
The connection does not exist. |
| RequestId |
string |
The request ID, which uniquely identifies the 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.