Creates a scan task for a running container application based on the application name.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | No | The cluster ID. | cfb7a55a81f7246b5ac18845ea79a**** |
AppNames | string | No | The name of the container application. | app-centos-01 |
Lang | string | No | The language of the content within the request and response.
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"TaskId": "fc98d58eb56f699d49bf7ebbd6d7****",
"TotalCount": 5,
"FinishCount": 5,
"CollectTime": 1644286364150,
"ExecTime": 1644286364150,
"Status": "SUCCESS",
"Progress": 100,
"Result": "SUCCESS",
"CanCreate": true
},
"RequestId": "1EE7B150-D67E-53FD-A52D-3E8E669A****",
"HttpStatusCode": 200
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-10-07 | The Error code has changed | see changesets | ||||
|