Invokes this operation to query the parameter settings of a single image watermark template or text watermark template by watermark template ID, including the position, size, and display time of image watermarks, and the content, font, color, and position of text watermarks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetWatermark |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WatermarkId |
string |
Yes |
The ID of the watermark template to query. Only a single watermark template ID is supported. You can obtain the ID by using one of the following methods:
|
9bcc8bfadb843f*****09a2671d0df97 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4A*****F6-D7393642CA58 |
| WatermarkInfo |
object |
The watermark template information. |
|
| CreationTime |
string |
The time when the watermark template was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2018-11-06T08:03:17Z |
| Type |
string |
The type of the watermark template. Valid values:
|
Image |
| IsDefault |
string |
Indicates whether the watermark template is the default template. Valid values:
|
NotDefault |
| FileUrl |
string |
The URL of the watermark file (OSS URL or CDN URL). Note
This parameter is returned only for image watermark templates. |
https://outin-32*****f4b3e7.oss-cn-shanghai.aliyuncs.com/image/cover/F85529C8B715E6F8A72EC6B-6-2.png?Expires=1541600583&OSSAccessKeyId=****&Signature=gmf1eYMoDVg%2BHQCb4UGozBW**** |
| AppId |
string |
The application ID. |
app-**** |
| WatermarkConfig |
string |
The configuration information of the watermark (JSON string), including the display position and effect of the watermark. The configuration parameters differ between image watermarks and text watermarks. For more information about the parameter structure, see WatermarkConfig. |
{"ReferPos": "BottomRight","Height": "55","Width": "55","Dx": "8","Dy": "8" } |
| Name |
string |
The name of the watermark template. |
Image watermark test |
| WatermarkId |
string |
The watermark template ID. |
505e2e287ea*****ecfddd386d384 |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"WatermarkInfo": {
"CreationTime": "2018-11-06T08:03:17Z",
"Type": "Image",
"IsDefault": "NotDefault",
"FileUrl": "https://outin-32*****f4b3e7.oss-cn-shanghai.aliyuncs.com/image/cover/F85529C8B715E6F8A72EC6B-6-2.png?Expires=1541600583&OSSAccessKeyId=****&Signature=gmf1eYMoDVg%2BHQCb4UGozBW****",
"AppId": "app-****",
"WatermarkConfig": "{\"ReferPos\": \"BottomRight\",\"Height\": \"55\",\"Width\": \"55\",\"Dx\": \"8\",\"Dy\": \"8\" }",
"Name": "Image watermark test",
"WatermarkId": "505e2e287ea*****ecfddd386d384"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.