| object | | |
HttpStatusCode | integer | The HTTP status code returned. | 200 |
RequestId | string | | 0000-ABCD-EFG**** |
ErrorMessage | string | The error message returned. | The connection does not exist. |
Success | boolean | Indicates whether the request was successful. | true |
ErrorCode | string | | Invalid.Tenant.ConnectionNotExists |
Data | object | The latest information about the API in the published state. | |
Timeout | integer | The timeout period of the API request. Unit: milliseconds. | 10000 |
Status | integer | The status of the API. Valid values: 0 and 1. The value 0 indicates that the API is not published. The value 1 indicates that the API is published. | 1 |
ApiId | long | The ID of the DataService Studio API. | 10000 |
ApiMode | integer | The type of the API. Valid values: 0, 1, and 2. The value 0 indicates that the API is generated in wizard mode. The value 1 indicates that the API is generated in script mode. The value 2 indicates that the API is generated by registration. | 0 |
ProjectId | long | | 10001 |
ResponseContentType | integer | The format in which the response of the API request is returned. Valid values: 0 and 1. The value 0 indicates the JSON format. The value 1 indicates the XML format. APIs generated in wizard or script mode support the JSON format. APIs generated by registration support the JSON and XML formats. | 0 |
CreatorId | string | The ID of the Alibaba Cloud account used by the creator of the API. | 1234567 |
VisibleRange | integer | The scope in which the API is visible. Valid values: 0 and 1. The value 0 indicates that the API is visible to the members in a specific workspace. The value 1 indicates that the API is visible only to the API creator. | 0 |
ModifiedTime | string | The time when the API was last modified. | 2020-06-23T00:21:01+0800 |
OperatorId | string | The ID of the Alibaba Cloud account used by the user who last modified the API. | 2345678 |
GroupId | string | | ab12** |
Description | string | | Description of the test API
|
RequestMethod | integer | The request method of the API. Valid values: 0, 1, 2, and 3. The value 0 indicates the GET method, the value 1 indicates the POST method, the value 2 indicates the PUT method, and the value 3 indicates the DELETE method. APIs generated in wizard or script mode support the GET and POST methods. APIs generated by registration support the GET, POST, PUT, and DELETE methods. | 0 |
CreatedTime | string | | 2020-06-23T00:21:01+0800 |
ApiName | string | | Name of the test API
|
TenantId | long | | 10001 |
ApiPath | string | | /test/1 |
Protocols | array | The protocol used by the API. Valid values: 0 and 1. The value 0 indicates HTTP. The value 1 indicates HTTPS. Multiple protocols are presented in a list. | |
Protocol | integer | The protocol used by the API. Valid values: 0 and 1. The value 0 indicates that the API uses HTTP. The value 1 indicates that the API uses HTTPS. Two protocols are presented in a list. | 0 |
RegistrationDetails | object | The details of the API generated by registration. This parameter is returned only if the API is generated by registration. | |
ServiceHost | string | The URL of the backend service. | http://example.aliyundoc.com |
ServiceContentType | integer | The format in which the response of the API request is returned. Valid values: 0 and 1. The value 0 indicates the JSON format. The value 1 indicates the XML format. APIs generated in wizard or script mode support the JSON format. APIs generated by registration support the JSON and XML formats. | 0 |
ServicePath | string | The path of the backend service. | /index |
SuccessfulResultSample | string | The sample success response of the API. | {"success": true} |
FailedResultSample | string | The sample error response of the API. | {"success": false} |
ServiceRequestBodyDescription | string | The description of the request body initiated to call the backend service. | {"abc":1} |
RegistrationErrorCodes | array<object> | The error codes returned for the API generated by registration. | |
RegistrationErrorCode | object | | |
ErrorMessage | string | | The connection does not exist. |
ErrorCode | string | | Invalid.Tenant.ConnectionNotExists |
ErrorSolution | string | The solution used to fix the error. | retry |
RegistrationRequestParameters | array<object> | The request parameters of the API generated by registration. | |
RegistrationRequestParameter | object | | |
ParameterName | string | The name of the parameter. | name1 |
ParameterPosition | integer | The position of the parameter. Valid values: 0, 1, 2, and 3. The value 0 indicates that the parameter is in the URL path of the request. The value 1 indicates that the parameter is in the Query parameter of the request URL. The value 2 indicates that the parameter is in the request header. The value 3 indicates that the parameter is in the request body. APIs generated in wizard or script mode support only the Query position. APIs generated by registration whose request method is GET or DELETE support the Query and Head positions. APIs generated by registration whose request method is PUT or POST support the Query, Head, and Body positions. | 0 |
ParameterDescription | string | | description1 |
DefaultValue | string | | default1 |
ParameterOperator | integer | The operator used for the value of the parameter. Valid values: 0, 1, 2, and 3. The value 0 indicates the Equal operator. The value 1 indicates the Like operator. The value 2 indicates the Const operator. The value 3 indicates the In operator. APIs generated in wizard mode support the Equal, Like, and In operators. APIs generated in script mode support the Equal operator. APIs generated by registration support the Equal and Const operators. | 0 |
ExampleValue | string | | example1 |
ParameterDataType | integer | The data type of the parameter. Valid values:
- 0: String
- 1: Int
- 2: Long
- 3: Float
- 4: Double
- 5: Boolean
- 6: StringList
- 7: IntList
- 8: LongList
- 9: FloatList
- 10: DoubleList
- 11: BooleanList
| 0 |
IsRequiredParameter | boolean | Indicates whether the parameter is required. | true |
ScriptDetails | object | The details of the API generated in script mode. This parameter is returned only if the API is generated in script mode. | |
IsPagedResponse | boolean | Indicates whether the entries were returned by page. | true |
SuccessfulResultSample | string | The sample success response of the API. | {"success": true} |
FailedResultSample | string | The sample error response of the API. | {"success": false} |
Script | string | | select a from t |
ScriptErrorCodes | array<object> | The error codes returned for the API generated in script mode. | |
ScriptErrorCode | object | | |
ErrorMessage | string | | fail to call |
ErrorCode | string | | 1001 |
ErrorSolution | string | The solution used to fix the error. | retry |
ScriptRequestParameters | array<object> | The request parameters of the API generated in script mode. | |
ScriptRequestParameter | object | | |
ParameterName | string | The name of the parameter. | param1 |
ParameterPosition | integer | The position of the parameter. Valid values:
- 0: indicates that the parameter is in the URL path of the request.
- 1: indicates that the parameter is in the Query parameter of the request URL.
- 2: indicates that the parameter is in the request header.
- 3: indicates that the parameter is in the request body.
APIs generated in wizard or script mode support only the Query position. APIs generated by registration whose request method is GET or DELETE support the Query and Head positions. APIs generated by registration whose request method is PUT or POST support the Query, Head, and Body positions. | 0 |
ParameterDescription | string | | description1 |
DefaultValue | string | | default1 |
ParameterOperator | integer | The operator used for the value of the parameter. Valid values:
- 0: Equal
- 1: Like
- 2: Const
- 3: In
APIs generated in wizard mode support the Equal, Like, and In operators. APIs generated in script mode support the Equal operator. APIs generated by registration support the Equal and Const operators. | 0 |
ExampleValue | string | | example1 |
ParameterDataType | integer | The data type of the parameter. Valid values:
- 0: String
- 1: Int
- 2: Long
- 3: Float
- 4: Double
- 5: Boolean
- 6: StringList
- 7: IntList
- 8: LongList
- 9: FloatList
- 10: DoubleList
- 11: BooleanList
| 0 |
IsRequiredParameter | boolean | Indicates whether the parameter is required. | true |
ScriptResponseParameters | array<object> | The response parameters of the API generated in script mode. | |
ScriptResponseParameter | object | | |
ParameterDescription | string | | description2 |
ParameterName | string | The name of the parameter. | param2 |
ExampleValue | string | | example2 |
ParameterDataType | integer | The data type of the parameter. Valid values:
- 0: String
- 1: Int
- 2: Long
- 3: Float
- 4: Double
- 5: Boolean
- 6: StringList
- 7: IntList
- 8: LongList
- 9: FloatList
- 10: DoubleList
- 11: BooleanList
| 0 |
ScriptConnection | object | The data source information of the API generated in script mode. | |
TableName | string | The name of the table in the data source. | t |
ConnectionId | long | The ID of the data source. | 123 |
WizardDetails | object | The details of the API generated in wizard mode. This parameter is returned only if the API is generated in wizard mode. | |
IsPagedResponse | boolean | Indicates whether the entries were returned by page. | true |
SuccessfulResultSample | string | The sample success response of the API. | {"success": true} |
FailedResultSample | string | The sample error response of the API. | {"success": false} |
WizardErrorCodes | array<object> | The error codes returned for the API generated in wizard mode. | |
WizardErrorCode | object | | |
ErrorMessage | string | | fail to call |
ErrorCode | string | | 1001 |
ErrorSolution | string | The solution used to fix the error. | retry |
WizardRequestParameters | array<object> | The request parameters of the API generated in wizard mode. | |
WizardRequestParameter | object | | |
ParameterName | string | The name of the parameter. | param1 |
ParameterPosition | integer | The position of the parameter. Valid values: 0, 1, 2, and 3. The value 0 indicates that the parameter is in the URL path of the request. The value 1 indicates that the parameter is in the Query parameter of the request URL. The value 2 indicates that the parameter is in the request header. The value 3 indicates that the parameter is in the request body. APIs generated in wizard or script mode support only the Query position. APIs generated by registration whose request method is GET or DELETE support the Query and Head positions. APIs generated by registration whose request method is PUT or POST support the Query, Head, and Body positions. | 0 |
ParameterDescription | string | | description1 |
DefaultValue | string | | default1 |
ParameterOperator | integer | The operator used for the value of the parameter. Valid values: 0, 1, 2, and 3. The value 0 indicates the Equal operator. The value 1 indicates the Like operator. The value 2 indicates the Const operator. The value 3 indicates the In operator. APIs generated in wizard mode support the Equal, Like, and In operators. APIs generated in script mode support the Equal operator. APIs generated by registration support the Equal and Const operators. | 0 |
ExampleValue | string | | example1 |
ParameterDataType | integer | The data type of the parameter. Valid values:
- 0: String
- 1: Int
- 2: Long
- 3: Float
- 4: Double
- 5: Boolean
- 6: StringList
- 7: IntList
- 8: LongList
- 9: FloatList
- 10: DoubleList
- 11: BooleanList
| 0 |
IsRequiredParameter | boolean | Indicates whether the parameter is required. | true |
WizardResponseParameters | array<object> | The response parameters of the API generated in wizard mode. | |
WizardResponseParameter | object | | |
ParameterDescription | string | | description2 |
ParameterName | string | The name of the parameter. | param2 |
ExampleValue | string | | example2 |
ParameterDataType | integer | The data type of the parameter. Valid values:
- 0: String
- 1: Int
- 2: Long
- 3: Float
- 4: Double
- 5: Boolean
- 6: StringList
- 7: IntList
- 8: LongList
- 9: FloatList
- 10: DoubleList
- 11: BooleanList
| 0 |
WizardConnection | object | The data source information of the API generated in wizard mode. | |
TableName | string | The name of the table in the data source. | t |
ConnectionId | long | The ID of the data source. | 123 |