BatchGetYikeAssetMediaInfos - 批量获取媒资信息详情

更新时间:
复制为 MD 格式

批量获取媒资信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

ice:BatchGetYikeAssetMediaInfos

get

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

MediaIds

string

所有待查询的媒资 ID,以逗号分隔。

******b48fb04483915d4f2cd8******,******c48fb37407365d4f2cd8******

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

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

MediaInfos

array<object>

符合要求的媒资集合。

array<object>

符合要求的媒资集合。

MediaId

string

媒资 ID。

******c48fb37407365d4f2cd8******

MediaBasicInfo

object

媒资基础信息。

MediaId

string

媒资 ID。

*****64623a94eca8516569c8f*****

InputURL

string

待注册的媒资在相应系统中的地址。

https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4

MediaType

string

媒资媒体类型。

video

BusinessType

string

媒资业务类型。

general

Source

string

来源。

oss

Title

string

标题。

title

Description

string

内容描述。

sample_description

Category

string

分类。

category

MediaTags

string

标签。

tag1,tag2

CoverURL

string

封面地址。

https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg

UserData

string

用户数据。

UserData

Snapshots

string

截图。

[]

Status

string

资源状态。

Normal

TranscodeStatus

string

转码状态。

Init

CreateTime

string

媒资创建时间。

2020-12-26T04:11:08Z

ModifiedTime

string

媒资修改时间。

2021-01-08T16:52:04Z

DeletedTime

string

媒资删除时间。

2021-01-08T16:52:07Z

SpriteImages

string

雪碧图。

[{"bucket":"example-bucket","count":"32","iceJobId":"******83ec44d58b2069def2e******","location":"oss-cn-shanghai","snapshotRegular":"example/example-{Count}.jpg","spriteRegular":"example/example-{TileCount}.jpg","templateId":"******e438b14ff39293eaec25******","tileCount":"1"}]

Biz

string

媒资所属业务。

ICE

FileInfoList

array<object>

文件列表信息。

array<object>

文件信息。

FileBasicInfo

object

文件基础信息,包含时长,大小等。

FileName

string

文件名。

example.mp4

FileStatus

string

文件状态。

Normal

FileType

string

文件类型。

source_file

FileSize

string

文件大小(字节)。

191

FileUrl

string

文件 OSS 地址。

http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=

Region

string

文件存储区域。

cn-shanghai

FormatName

string

封装格式。

jpg

Duration

string

时长。

200

Bitrate

string

码率。

30

Width

string

宽。

640

Height

string

高。

416

BizData

object

业务信息。

FolderId

string

文件夹 ID。

pd_0617169475

ProductionId

string

项目 ID。

pd_0617169475

AuditBlockedLabel

string

审核标签。

Label

AuditStatus

string

审核状态。

pass

MediaAssetType

string

媒资类型。

HistoricalUpload

MediaAssetSubType

string

媒资子类型。

Image

SourceType

string

源类型。

MainBody

SourceId

string

来源 ID。

f4a26390f02371f0a1f4e6e7c7586706

SourceName

string

源名称。

name

IsFavorite

string

是否最喜爱的。

1

IsLogicalDeleted

string

是否被删除。

1

CreationJobId

string

创建任务 ID。

ID

IgnoredList

array

获取失败的 ID 列表。

string

获取失败的 ID。

****fb2101bf24bf41cb318787dc****

示例

正常返回示例

JSON格式

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "MediaInfos": [
    {
      "MediaId": "******c48fb37407365d4f2cd8******",
      "MediaBasicInfo": {
        "MediaId": "*****64623a94eca8516569c8f*****",
        "InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
        "MediaType": "video",
        "BusinessType": "general",
        "Source": "oss",
        "Title": "title",
        "Description": "sample_description",
        "Category": "category",
        "MediaTags": "tag1,tag2",
        "CoverURL": "https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg",
        "UserData": "UserData",
        "Snapshots": "[]",
        "Status": "Normal",
        "TranscodeStatus": "Init",
        "CreateTime": "2020-12-26T04:11:08Z",
        "ModifiedTime": "2021-01-08T16:52:04Z",
        "DeletedTime": "2021-01-08T16:52:07Z",
        "SpriteImages": "[{\"bucket\":\"example-bucket\",\"count\":\"32\",\"iceJobId\":\"******83ec44d58b2069def2e******\",\"location\":\"oss-cn-shanghai\",\"snapshotRegular\":\"example/example-{Count}.jpg\",\"spriteRegular\":\"example/example-{TileCount}.jpg\",\"templateId\":\"******e438b14ff39293eaec25******\",\"tileCount\":\"1\"}]",
        "Biz": "ICE"
      },
      "FileInfoList": [
        {
          "FileBasicInfo": {
            "FileName": "example.mp4",
            "FileStatus": "Normal",
            "FileType": "source_file",
            "FileSize": "191",
            "FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
            "Region": "cn-shanghai",
            "FormatName": "jpg",
            "Duration": "200",
            "Bitrate": "30",
            "Width": "640",
            "Height": "416"
          }
        }
      ],
      "BizData": {
        "FolderId": "pd_0617169475",
        "ProductionId": "pd_0617169475",
        "AuditBlockedLabel": "Label",
        "AuditStatus": "pass",
        "MediaAssetType": "HistoricalUpload",
        "MediaAssetSubType": "Image",
        "SourceType": "MainBody",
        "SourceId": "f4a26390f02371f0a1f4e6e7c7586706",
        "SourceName": "name",
        "IsFavorite": "1",
        "IsLogicalDeleted": "1",
        "CreationJobId": "ID"
      }
    }
  ],
  "IgnoredList": [
    "****fb2101bf24bf41cb318787dc****"
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情