建立浮水印模板。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
Action | String | 是 | 操作介面名,系統規定參數,取值:AddWaterMarkTemplate |
Name | String | 是 | 模板名稱。 最大長度128位元組。 |
Config | String | 是 | 浮水印模板配置。
|
返回參數
名稱 | 類型 | 描述 |
---|---|---|
WaterMarkTemplate | AliyunWaterMarkTemplate | 浮水印模板 |
樣本
請求樣本
http://mts.cn-hangzhou.aliyuncs.com/?Name=example-watermark&Config=%7B%22Width%22%3A%2210%22%2C%22Height%22%3A%2230%22%2C%22Dx%22%3A%2210%22%2C%0A%22Dy%22%3A%225%22%2C%22ReferencePos%22%3A%22TopRight%22%2C%0A%22Type%22%3A%22Image%22%7D%0A&Action=AddWaterMarkTemplate&<公用參數>
返回樣本
XML
<AddWaterMarkTemplateResponse>
<RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
<WaterMarkTemplate>
<Id>88c6ca184c0e47098a5b665e2a126797</Id>
<Name>example-watermark</Name>
<Width>10</Width>
<Height>30</Height>
<Dx>10</Dx>
<Dy>5</Dy>
<ReferPos>TopRight</ReferPos>
<Type>Image</Type>
<State>Normal</State>
</WaterMarkTemplate>
</AddWaterMarkTemplateResponse>
JSON
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"WaterMarkTemplate": {
"Id": "88c6ca184c0e47098a5b665e2a126797",
"Name": "example-watermark",
"Width": "10",
"Height": "30",
"Dx": "10",
"Dy": "5",
"ReferPos": "TopRight",
"Type": "Image",
"State": "Normal"
}
}