AddWaterMarkTemplate API は、ウォーターマーク テンプレートを作成します。

リクエスト パラメーター

パラメーター タイプ 必須 説明
Action String はい 操作 API、システム必須パラメーター。パラメーターの値は AddWaterMarkTemplate にします。
Name String はい テンプレート名(最大 128 バイト)。
Config String はい ウォーターマーク テンプレートの設定。JSON オブジェクト。詳細は、「付録」の「パラメーター詳細」の「5. WaterMarkConfig」を参照。 例:{ "Width":"10", "Height":"30", "Dx":"10", "Dy":"5", "ReferPos":"TopRight", "Type":"Image", "Timeline":{"Start":"0", "Duration":"10"} }

応答パラメーター

名前 タイプ 説明
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&<Public parameter>

応答例

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"
        }
    }