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 |
Request | None | Virus detection configuration. | Container | Yes |
Request
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Input | Request | File to be detected. | Container | Yes |
Conf | Request | Detection rule configuration. | Container | Yes |
Input
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Object | Request.Input | Name of the file stored in the COS bucket; for example, if the file is virus.doc in the test directory, then the filename is test/virus.doc . Note: Either Object or Url can be selected at a time. | String | Yes |
Url | Request.Input | Full URL of the file, such as http://examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/virus.doc . Note: Either Object or Url can be selected at a time. | String | No |
Conf
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
DetectType | Request.Conf | Virus detection type, which is fixed at Virus currently. | String | Yes |
Callback | Request.Conf | The detection result can be sent to your callback address in the form of a callback. Addresses starting with http:// or https:// are supported, such as http://www.callback.com . | String | No |
<Response><JobsDetail><JobId></JobId><State></State><CreationTime></CreationTime></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None | Specific virus detection response content. | Container |
Response
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Virus detection job details | Container |
JobsDetail
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
JobId | Response.JobsDetail | Virus detection job ID. | String |
State | Response.JobsDetail | Virus detection job status. Valid values: Submitted , Success , Failed , Auditing . | String |
CreationTime | Response.JobsDetail | Virus detection job creation time. | String |
POST /virus/detect HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0e****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></JobsDetail></Response>
Was this page helpful?