Creates an Artificial Intelligence Recommendation (AIRec) instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/openapi/instances
Request parameters
Parameter | Type | Required | Description | Example |
---|
The current API does not require request parameters
Parameter | Type | Required | Description |
---|---|---|---|
type | String | Yes | The type of the instance. Valid values: Algorithm Configuration Edition and Industry Operation Edition. |
chargeType | String | Yes | The billing method of the instance. Valid values: PrePaid and PostPaid. PrePaid: the subscription billing method. If you set the value to PrePaid, make sure that your Alibaba Cloud account supports balance payment or credit payment. Otherwise, the system returns the InvalidPayMethod error message. If you set the value to PrePaid, you must also specify the paymentInfo parameter. PostPaid: the pay-as-you-go billing method. Currently, this method is not supported. |
quota | Map | Yes | The quotas that you want to apply for. |
userCount | Integer | Yes | The quota for the number of documents in the user table that you want to apply for. For more information about the limits on the quota, refer to the buy page. |
itemCount | Integer | Yes | The quota for the number of documents in the item table that you want to apply for. For more information about the limits on the quota, refer to the buy page. |
qps | Integer | Yes | The queries per second (QPS) quota for recommendation requests that you want to apply for. For more information about the limits on the quota, refer to the buy page. |
paymentInfo | Map | No | The billing information. |
duration | Integer | No | The billing cycle. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 12. |
pricingCycle | String | No | The unit of the billing cycle. Valid values: Month and Year. |
autoRenew | Boolean | No | Specifies whether to enable auto-renewal. Valid values: true and false. |
Response parameters
Examples
Sample success responses
JSON
format
{
"result": {
"instanceId": "airec-cn-xxxxx"
},
"code": "InternalServerError",
"requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
"message": "An internal server error occurred"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history