Tüm Ürünler
Search
Belge Merkezi

:GetTemplate

Son Güncelleme:Oct 12, 2026

Şablon kimliğine göre bir şablonun bilgilerini getirir. Gelişmiş şablonlar daha uzun bir ayrıştırma süresi gerektirir. Şablon türü gelişmiş ise, şablon ancak Durum Available olduktan sonra kullanılabilir.

Operation description

Şablon fabrikası, düzenleme ve sentez zaman çizelgesini sarmalar. Sık kullanılan zaman çizelgelerini şablon olarak tanımlayabilirsiniz. Benzer gereksinimler ortaya çıktığında video üretmek için yalnızca temel parametreleri ve medya varlıklarını iletmeniz yeterlidir.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:GetTemplate

*Tüm kaynaklar.

*

None None

Request parameters

Parameter

Type

Required

Description

Example

TemplateId

string

No

Şablon kimliği.

****20b48fb04483915d4f2cd8ac****

RelatedMediaidFlag

string

No

Şablonla ilişkili medya varlıklarının döndürülüp döndürülmeyeceğini belirtir. Geçerli değerler:

  • 1: İlişkili medya varlıklarını döndürür.

  • 0: İlişkili medya varlıklarını döndürmez. Varsayılan değer: 0. Bu parametre yalnızca standart şablonlar için geçerlidir.

0

Response elements

Element

Type

Description

Example

object

Yanıt verileri.

RequestId

string

İstek kimliği.

******11-DB8D-4A9A-875B-275798******

Template

object

Şablon bilgileri.

TemplateId

string

Şablon kimliği.

****20b48fb04483915d4f2cd8ac****

Name

string

Şablon adı.

Video watermark template

Type

string

Şablon türü. Geçerli değerler:

  • Timeline: standart şablon

  • VETemplate: gelişmiş şablon

  • BatchEditing: tek tıkla video üretim şablonu

Timeline

Config

string

Şablon yapılandırması.

Refer to Timeline template configuration details

PreviewMedia

string

Önizleme medya varlığı.

****20b48fb04483915d4f2cd8ac****

Status

string

Şablon durumu. Geçerli değerler:

  • Available

  • Created

  • Uploading

  • Processing

  • UploadFailed

  • ProcessFailed

Available

CreateSource

string

Oluşturma kaynağı. Geçerli değerler:

  • AliyunConsole

  • OpenAPI

  • WebSDK

OpenAPI

ModifiedSource

string

Değişiklik kaynağı. Geçerli değerler:

  • AliyunConsole

  • OpenAPI

  • WebSDK

OpenAPI

PreviewMediaStatus

string

Önizleme medya varlığı durumu. Geçerli değerler:

  • Init (başlangıç durumu: kaynak dosya hazır değil)

  • Preparing (kaynak dosya hazırlanıyor, örneğin yükleniyor veya düzenleme ve sentezden geçiyor)

  • PrepareFail (kaynak dosya hazırlama işlemi başarısız oldu, örneğin kaynak dosya bilgileri alınamadı)

  • Normal (normal: kaynak dosya hazır)

Normal

CreationTime

string

Oluşturma zamanı. Zaman ISO 8601 biçimindedir ve UTC saat dilimini kullanır (Z ile biter).

2020-12-26T04:11:10Z

ModifiedTime

string

Değişiklik zamanı. Zaman ISO 8601 biçimindedir ve UTC saat dilimini kullanır (Z ile biter).

2020-12-26T04:11:10Z

CoverURL

string

Kapak URL'si.

http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg

ClipsParam

string

Sentez görevi göndermek için ClipsParam parametre şablonu. Sentez görevini göndermek için mediaId ve text değerlerini gerçek parametrelerle değiştirebilirsiniz. Kullanım yöntemleri için şu konulara bakın:

{"Media1":"mediaId","Text1":"text"}

RelatedMediaids

string

Şablonla ilişkili medya varlıkları. Standart şablon düzenleyicisi tarafından kullanılır.

{"video":["******c04f1d4a06996144cc1a******"],"audio":["******c04f1d4a06996144cc1a******"],"image":["******c04f1d4a06996144cc1a******"]}

Examples

Success response

JSON format

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "Template": {
    "TemplateId": "****20b48fb04483915d4f2cd8ac****",
    "Name": "视频添加水印模板",
    "Type": "Timeline",
    "Config": "参考Timeline模板配置详解",
    "PreviewMedia": "****20b48fb04483915d4f2cd8ac****",
    "Status": "Available",
    "CreateSource": "OpenAPI",
    "ModifiedSource": "OpenAPI",
    "PreviewMediaStatus": "Normal",
    "CreationTime": "2020-12-26T04:11:10Z",
    "ModifiedTime": "2020-12-26T04:11:10Z",
    "CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
    "ClipsParam": "{\"Media1\":\"mediaId\",\"Text1\":\"text\"}",
    "RelatedMediaids": "{\"video\":[\"******c04f1d4a06996144cc1a******\"],\"audio\":[\"******c04f1d4a06996144cc1a******\"],\"image\":[\"******c04f1d4a06996144cc1a******\"]}"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.