ci:CreateAuditingVirusJob permission is required. For details, see Cloud Infinite action.cam:passrole permission is required. The asynchronous processing interface performs read and write operations on COS resources through CAM's "role". The PassRole permission is used for role passing. For details, refer to Access Management - Write Operation - PassRole API.POST /virus/detect HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Input><Object></Object><Url></Url></Input><Conf><DetectType>Virus</DetectType><Callback></Callback></Conf></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Request | None. | Virus detection configuration items. | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Input | Request | File information that needs to be detected. | Container | Yes |
Conf | Request | Detection rule configuration. | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Object | Request.Input | The filename of a virus file stored in a COS storage bucket, for example, the file virus.doc in the directory test, then the filename is test/virus.doc. Choose one of Object or Url. | String | Yes |
Url | Request.Input | Link address of virus files, for example: http://examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/virus.docChoose one of Object or Url. | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
DetectType | Request.Conf | Detected virus type, currently fixed to: Virus. | String | Yes |
Callback | Request.Conf | Detection results are callback notified to your set address, supporting addresses starting with http:// or https://, for example: http://www.callback.com. | String | No |
<Response><JobsDetail><JobId></JobId><State></State><CreationTime></CreationTime><Object></Object></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None. | The specific response content returned by virus detection. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Detailed information of the virus detection task. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobId | Response.JobsDetail | The task ID of this virus detection task. | String |
State | Response.JobsDetail | Status of the virus detection task, which can be one of: Submitted (detection submitted), Success (detection succeeded), Failed (detection failed), Auditing (detection in progress). | String |
CreationTime | Response.JobsDetail | Creation time of the virus detection task. | String |
Object | Response.JobsDetail | Filename of this detection. | String |
POST /virus/detect HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host: examplebucket-1250000000.ci.ap-beijing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Input><Object>a.doc</Object></Input><Conf><DetectType>Virus</DetectType><Callback>http://callback.com/</Callback></Conf></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><JobId>ssb1ca9fc8a3ed11ea834c525400863904</JobId><State>Submitted</State><CreationTime>2021-07-07T12:12:12+0800</CreationTime><Object>a.doc</Object></JobsDetail></Response>
masukan