Mengkueri konfigurasi Template watermark gambar atau teks berdasarkan ID-nya. Anda dapat memanggil operasi ini untuk mendapatkan informasi seperti posisi, ukuran, dan pengatur waktu tampil Watermark gambar atau konten, posisi, font, dan warna font Watermark teks.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetWatermark |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| WatermarkId |
string |
Yes |
ID Template watermark. Anda hanya dapat menentukan satu ID Template watermark. Anda dapat memperoleh ID dengan menggunakan salah satu metode berikut:
|
9bcc8bfadb843f*****09a2671d0df97 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
25818875-5F78-4A*****F6-D7393642CA58 |
| WatermarkInfo |
object |
The information about the watermark template. |
|
| CreationTime |
string |
The time when the watermark template was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2018-11-06T08:03:17Z |
| Type |
string |
The type of the watermark template. Valid values:
|
Text |
| IsDefault |
string |
Indicates whether the watermark template is the default one. Valid values:
|
NotDefault |
| FileUrl |
string |
The URL of the watermark file. The URL is an Object Storage Service (OSS) URL or an Alibaba Cloud CDN URL. Catatan
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 ID of the application. |
app-**** |
| WatermarkConfig |
string |
The configuration information of the watermark such as the display position and special effects. The value is a JSON string. The configuration parameters for image and text watermarks are different. 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 ID of the watermark template. |
505e2e287ea*****ecfddd386d384 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"WatermarkInfo": {
"CreationTime": "2018-11-06T08:03:17Z",
"Type": "Text",
"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"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.