POST /<ObjectKey>?ci-process=ImageSearch&action=AddImage HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><EntityId>apple</EntityId><CustomContent>myapple</CustomContent><Tags>{"key1":"val1","key2":"val2"}</Tags></Request>
节点名称(关键字) | 父节点 | 描述 | 类型 | 是否必选 |
Request | 无 | 保存请求的容器 | Container | 是 |
节点名称(关键字) | 父节点 | 描述 | 类型 | 是否必选 |
EntityId | Request | 物品 ID,最多支持64个字符。若 EntityId 已存在,则对其追加图片 | String | 是 |
CustomContent | Request | 用户自定义的内容,最多支持4096个字符,查询时原样带回 | String | 否 |
Tags | Request | 图片自定义标签,最多不超过10个,json 字符串,格式为 key:value 对 | String | 否 |
POST /<ObjectKey>?ci-process=ImageSearch&action=AddImage HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1558699190;1558706390&q-key-time=1558699190;1558706390&q-header-list=date;host&q-url-param-list=&q-signature=89fa1f6a56c34e460f3db4d65f928eaf034a****Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comContent-Length: 100Content-Type: application/xml<Request><EntityId>apple</EntityId><CustomContent>myapple</CustomContent><Tags>{"key1":"val1","key2":"val2"}</Tags></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****
本页内容是否解决了您的问题?