POST {BaseUrl}/?Action=GetAsset&Version=2024-01-01
Content-Type: application/json
Status,变为 Active 后即可在生成任务中引用。
请求参数
string
必填
素材 ID。
string
可传
default 或不传。响应参数
object
隐藏 属性
隐藏 属性
{
"Id": "asset-20261020080000-abcde"
}
{
"ResponseMetadata": {
"RequestId": "20261020080000ABCDEF",
"Action": "GetAsset",
"Version": "2024-01-01",
"Service": "ark",
"Region": "ap-southeast-1"
},
"Result": {
"Id": "asset-20261020080000-abcde",
"GroupId": "group-20261020080000-abcde",
"Name": "tea-reference",
"AssetType": "Image",
"Status": "Active",
"URL": "https://media.example.com/reference.jpg?signature=xxx",
"Moderation": {
"Strategy": "Default"
},
"ProjectName": "default",
"CreateTime": "2026-10-20T08:00:00Z",
"UpdateTime": "2026-10-20T08:00:03Z"
}
}
{
"ResponseMetadata": {
"RequestId": "20261020080000ABCDEF",
"Action": "GetAsset",
"Version": "2024-01-01",
"Service": "ark",
"Region": "ap-southeast-1"
},
"Result": {
"Id": "asset-20261020080000-abcde",
"GroupId": "group-20261020080000-abcde",
"Name": "tea-reference",
"AssetType": "Image",
"Status": "Failed",
"Error": {
"Code": "InvalidParameter.DownloadFailed",
"Message": "Failed to download the file from the URL."
},
"ProjectName": "default",
"CreateTime": "2026-10-20T08:00:00Z",
"UpdateTime": "2026-10-20T08:00:05Z"
}
}
