|
| 1 | +--- |
| 2 | +subcategory: "VOD" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_vod_procedure_templates" |
| 5 | +sidebar_current: "docs-tencentcloud-datasource-vod_procedure_templates" |
| 6 | +description: |- |
| 7 | + Use this data source to query detailed information of VOD procedure templates. |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_vod_procedure_templates |
| 11 | + |
| 12 | +Use this data source to query detailed information of VOD procedure templates. |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +resource "tencentcloud_vod_procedure_template" "foo" { |
| 18 | + name = "tf-procedure" |
| 19 | + comment = "test" |
| 20 | + media_process_task { |
| 21 | + adaptive_dynamic_streaming_task_list { |
| 22 | + definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id |
| 23 | + } |
| 24 | + snapshot_by_time_offset_task_list { |
| 25 | + definition = tencentcloud_vod_snapshot_by_time_offset_template.foo.id |
| 26 | + ext_time_offset_list = [ |
| 27 | + "3.5s" |
| 28 | + ] |
| 29 | + } |
| 30 | + image_sprite_task_list { |
| 31 | + definition = tencentcloud_vod_image_sprite_template.foo.id |
| 32 | + } |
| 33 | + } |
| 34 | +} |
| 35 | +
|
| 36 | +data "tencentcloud_vod_procedure_templates" "foo" { |
| 37 | + type = "Custom" |
| 38 | + name = tencentcloud_vod_procedure_template.foo.id |
| 39 | +} |
| 40 | +``` |
| 41 | + |
| 42 | +## Argument Reference |
| 43 | + |
| 44 | +The following arguments are supported: |
| 45 | + |
| 46 | +* `name` - (Optional) Name of procedure template. |
| 47 | +* `result_output_file` - (Optional) Used to save results. |
| 48 | +* `sub_app_id` - (Optional) Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty. |
| 49 | +* `type` - (Optional) Template type filter. Valid values: `Preset`, `Custom`. `Preset`: preset template; `Custom`: custom template. |
| 50 | + |
| 51 | +## Attributes Reference |
| 52 | + |
| 53 | +In addition to all arguments above, the following attributes are exported: |
| 54 | + |
| 55 | +* `template_list` - A list of adaptive dynamic streaming templates. Each element contains the following attributes: |
| 56 | + * `comment` - Template description. |
| 57 | + * `create_time` - Creation time of template in ISO date format. |
| 58 | + * `media_process_task` - Parameter of video processing task. |
| 59 | + * `adaptive_dynamic_streaming_task_list` - List of adaptive bitrate streaming tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 60 | + * `definition` - Adaptive bitrate streaming template ID. |
| 61 | + * `watermark_list` - List of up to `10` image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. |
| 62 | + * `animated_graphic_task_list` - List of animated image generating tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 63 | + * `definition` - Animated image generating template ID. |
| 64 | + * `end_time_offset` - End time of animated image in video in seconds. |
| 65 | + * `start_time_offset` - Start time of animated image in video in seconds. |
| 66 | + * `cover_by_snapshot_task_list` - List of cover generating tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 67 | + * `definition` - Time point screen capturing template ID. |
| 68 | + * `position_type` - Screen capturing mode. Valid values: `Time`, `Percent`. `Time`: screen captures by time point, `Percent`: screen captures by percentage. |
| 69 | + * `position_value` - Screenshot position: For time point screen capturing, this means to take a screenshot at a specified time point (in seconds) and use it as the cover. For percentage screen capturing, this value means to take a screenshot at a specified percentage of the video duration and use it as the cover. |
| 70 | + * `watermark_list` - List of up to `10` image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. |
| 71 | + * `image_sprite_task_list` - List of image sprite generating tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 72 | + * `definition` - Image sprite generating template ID. |
| 73 | + * `sample_snapshot_task_list` - List of sampled screen capturing tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 74 | + * `definition` - Sampled screen capturing template ID. |
| 75 | + * `watermark_list` - List of up to `10` image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. |
| 76 | + * `snapshot_by_time_offset_task_list` - List of time point screen capturing tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 77 | + * `definition` - Time point screen capturing template ID. |
| 78 | + * `ext_time_offset_list` - The list of screenshot time points. `s` and `%` formats are supported: When a time point string ends with `s`, its unit is second. For example, `3.5s` means the 3.5th second of the video; When a time point string ends with `%`, it is marked with corresponding percentage of the video duration. For example, `10%` means that the time point is at the 10% of the video entire duration. |
| 79 | + * `watermark_list` - List of up to `10` image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. |
| 80 | + * `transcode_task_list` - List of transcoding tasks. Note: this field may return null, indicating that no valid values can be obtained. |
| 81 | + * `definition` - Video transcoding template ID. |
| 82 | + * `mosaic_list` - List of blurs. Up to 10 ones can be supported. |
| 83 | + * `coordinate_origin` - Origin position, which currently can only be: `TopLeft`: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text. |
| 84 | + * `end_time_offset` - End time offset of blur in seconds. If this parameter is left empty or `0` is entered, the blur will exist till the last video frame; If this value is greater than `0` (e.g., n), the blur will exist till second n; If this value is smaller than `0` (e.g., -n), the blur will exist till second n before the last video frame. |
| 85 | + * `height` - Blur height. `%` and `px` formats are supported: If the string ends in `%`, the `height` of the blur will be the specified percentage of the video height; for example, 10% means that Height is 10% of the video height; If the string ends in `px`, the `height` of the blur will be in px; for example, 100px means that Height is 100 px. |
| 86 | + * `start_time_offset` - Start time offset of blur in seconds. If this parameter is left empty or `0` is entered, the blur will appear upon the first video frame. If this parameter is left empty or `0` is entered, the blur will appear upon the first video frame; If this value is greater than `0` (e.g., n), the blur will appear at second n after the first video frame; If this value is smaller than `0` (e.g., -n), the blur will appear at second n before the last video frame. |
| 87 | + * `width` - Blur width. `%` and `px` formats are supported: If the string ends in `%`, the `width` of the blur will be the specified percentage of the video width; for example, 10% means that `width` is 10% of the video width; If the string ends in `px`, the `width` of the blur will be in px; for example, 100px means that Width is 100 px. |
| 88 | + * `x_pos` - The horizontal position of the origin of the blur relative to the origin of coordinates of the video. `%` and `px` formats are supported: If the string ends in `%`, the XPos of the blur will be the specified percentage of the video width; for example, 10% means that XPos is 10% of the video width; If the string ends in `px`, the XPos of the blur will be the specified px; for example, 100px means that XPos is 100 px. |
| 89 | + * `y_pos` - Vertical position of the origin of blur relative to the origin of coordinates of video. `%` and `px` formats are supported: If the string ends in `%`, the YPos of the blur will be the specified percentage of the video height; for example, 10% means that YPos is 10% of the video height; If the string ends in `px`, the YPos of the blur will be the specified px; for example, 100px means that YPos is 100 px. |
| 90 | + * `watermark_list` - List of up to `10` image or text watermarks. Note: this field may return null, indicating that no valid values can be obtained. |
| 91 | + * `name` - Task flow name. |
| 92 | + * `type` - Template type filter. Valid values: `Preset`, `Custom`. `Preset`: preset template; `Custom`: custom template. |
| 93 | + * `update_time` - Last modified time of template in ISO date format. |
| 94 | + |
| 95 | + |
0 commit comments