Membuat Tugas AI
Deskripsi operasi
This API allows users to create an AI task based on the specified task type, covering a range of capabilities from natural language understanding to resource stack deployment. Users need to provide the task type and any required parameters, and the API will return a unique TaskId for tracking the status and results of the task.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:CreateAITask |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
No |
Tipe Tugas AI. Nilai:
Valid values:
|
GenerateTemplate |
| Prompt |
string |
No |
Deskripsi input untuk Tugas AI.
|
创建一台ECS,部署nignx服务 |
| Template |
string |
No |
Ketika tipe tugas adalah perbaikan Templat AI, tentukan Templat asli yang perlu diperbaiki atau dimodifikasi. |
{"ROSTemplateFormatVersion": "2015-09-01"} |
| TemplateType |
string |
No |
Tipe Templat yang akan dibuat atau diperbaiki. Default adalah ROS. Valid values:
|
ROS |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Request ID. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| TaskId |
string |
AI task ID. |
t-asas***** |
| Code |
string |
Error code. |
Forbidden |
| Message |
string |
Error message. |
You are not authorized to complete this action. |
| Success |
string |
Indicates whether the call was successful. Values:
|
true |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"TaskId": "t-asas*****",
"Code": "Forbidden",
"Message": "You are not authorized to complete this action.",
"Success": "true",
"HttpStatusCode": 200
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.