すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:メディアアセットを検索ライブラリに追加する

最終更新日:Mar 17, 2025

ALIYUN::ICE::InsertMediaToSearchLib は、検索ライブラリにメディアアセットを追加するために使用されます。

構文

{
  "Type": "ALIYUN::ICE::InsertMediaToSearchLib",
  "Properties": {
    "Input": String,
    "MediaId": String,
    "MediaType": String,
    "MsgBody": Map,
    "SearchLibName": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Input

String

はい

いいえ

検索ライブラリに追加するビデオ、オーディオ、または画像ファイルの URL です。

なし。

MediaId

String

いいえ

いいえ

メディアアセットの ID です。

なし。

MediaType

String

いいえ

いいえ

メディアアセットのタイプです。

有効な値:

  • video (デフォルト)

  • image

  • audio

MsgBody

Map

いいえ

はい

メディアアセットのメッセージ本文です。

なし。

SearchLibName

String

いいえ

いいえ

検索ライブラリの名前です。

なし。

戻り値

Fn::GetAtt

MediaId: メディアアセットの ID。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Input:
    Type: String
    Description:
      en: |-
        The URL of the video, audio, or image file that you want to import to the search library.
        Note: Make sure that you specify a correct file name and the bucket in which the file resides is in the same region where this operation is called. Otherwise, the file cannot be found or the operation may fail.
        Specify an Object Storage Service (OSS) URL in the following format: oss://[Bucket name]/[File path]. For example, you can specify oss://[example-bucket-]/[object_path-].
        Specify an HTTP URL in the following format: public endpoint. For example, you can specify http://example-test-****.mp4.
    Required: true
    Default: http://example-test.mp4
Resources:
  InsertMediaToSearchLib:
    Type: ALIYUN::ICE::InsertMediaToSearchLib
    Properties:
      Input:
        Ref: Input
Outputs:
  MediaId:
    Description: The ID of the media asset.
    Value:
      Fn::GetAtt:
        - InsertMediaToSearchLib
        - MediaId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Input": {
      "Type": "String",
      "Description": {
        "en": "The URL of the video, audio, or image file that you want to import to the search library.\nNote: Make sure that you specify a correct file name and the bucket in which the file resides is in the same region where this operation is called. Otherwise, the file cannot be found or the operation may fail.\nSpecify an Object Storage Service (OSS) URL in the following format: oss://[Bucket name]/[File path]. For example, you can specify oss://[example-bucket-]/[object_path-].\nSpecify an HTTP URL in the following format: public endpoint. For example, you can specify http://example-test-****.mp4."
      },
      "Required": true,
      "Default": "http://example-test.mp4"
    }
  },
  "Resources": {
    "InsertMediaToSearchLib": {
      "Type": "ALIYUN::ICE::InsertMediaToSearchLib",
      "Properties": {
        "Input": {
          "Ref": "Input"
        }
      }
    }
  },
  "Outputs": {
    "MediaId": {
      "Description": "The ID of the media asset.",
      "Value": {
        "Fn::GetAtt": [
          "InsertMediaToSearchLib",
          "MediaId"
        ]
      }
    }
  }
}