RegenerateSourceModel
Regenerates an objective model on an ad hoc basis.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:RegenerateSourceModel |
update |
*Project
|
None | None |
Request syntax
POST /source-models/regenerate HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
No |
The name of the project. The model belongs to the project, and each project corresponds to one model. |
my-project |
| body |
object |
No |
The request body. This parameter is optional. You can specify only the scope and language for the current regeneration. |
|
| language |
string |
No |
The generation language. Valid values: zh_cn and en_us. Default value: zh_cn. This value is not inherited from the creation request and must be specified for each regeneration. |
zh_cn |
| logstores |
array |
No |
The list of Logstore names used for modeling. If this parameter is omitted or an empty array is specified, all Logstores in the project are used for modeling. |
|
|
string |
No |
The name of a Logstore. The Logstore must exist in the project. Wildcards and prefix matching are not supported. |
order-log |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. Indicates that the regeneration request has been accepted. |
||
| status |
string |
The status of the operation. If the request is accepted, success is returned. Regeneration is an asynchronous process. A success response only indicates that the task has been submitted. To check whether the model is ready, call GetSourceModelStatus. |
success |
Examples
Success response
JSON format
{
"status": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.