All Products
Search
Document Center

Intelligent Media Services:GetDynamicImageJob

Last Updated:Dec 16, 2024

Queries the information about an image animation job.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:GetDynamicImageJob
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
JobIdstringNo

The job ID.

****d80e4e4044975745c14b****

Response parameters

ParameterTypeDescriptionExample
object

PlainResponse

RequestIdstring

The request ID.

******36-3C1E-4417-BDB2-1E034F******
DynamicImageJobobject

The information about the snapshot job.

JobIdstring

The job ID.

****d80e4e4044975745c14b****
TriggerSourcestring

The request trigger source.

Valid values:

  • Console
  • Workflow
  • API
API
Namestring

The name of the job.

SampleJob
Inputobject

The input of the job.

Typestring

The type of the input file. Valid values:

  1. OSS: an Object Storage Service (OSS) object.
  2. Media: a media asset.
OSS
Mediastring

The input file. If Type is set to OSS, the URL of an OSS object is returned. If Type is set to Media, the ID of a media asset is returned. The URL of an OSS object can be in one of the following formats:

  1. OSS://bucket/object
  2. http(s)://bucket.oss-[RegionId].aliyuncs.com/object

In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS.

oss://test-bucket/sample-input.mp4
OssFileobject

The three key elements of OSS.

Bucketstring

The OSS bucket.

test-bucket
Locationstring

The OSS location.

oss-cn-shanghai
Objectstring

The OSS object.

sample-input.mp4
Outputobject

The output of the job.

Typestring

The type of the input file. Valid values: OSS: an OSS object. Media: a media asset.

Media
Mediastring

The input file. If Type is set to OSS, the URL of an OSS object is returned. If Type is set to Media, the ID of a media asset is returned. The URL of an OSS object can be in one of the following formats:

  1. OSS://bucket/object
  2. http(s)://bucket.oss-[RegionId].aliyuncs.com/object In the URL, bucket specifies an OSS bucket that resides in the same region as the job, and object specifies the object URL in OSS.
****d80e4e4044975745c14b****
OssFileobject

The three key elements of OSS.

Bucketstring

The OSS bucket.

sample-bucket
Locationstring

The OSS location.

oss-cn-shanghai
Objectstring

The OSS object.

path/to/object
OutputUrlstring

The URL of the output animated image.

http://test-bucket.oss-cn-shanghai.aliyuncs.com/output.gif
TemplateConfigstring

The animation template configuration.

{"Format":"gif","Fps":5,"Height":1080,"Width":1920}
TemplateIdstring

The template ID.

****d80e4e4044975745c14b****
PipelineIdstring

The ID of the MPS queue to which the job was submitted.

****d80e4e4044975745c14b****
Statusstring

The state of the job.

Valid values:

  • Init: The job is submitted.
  • Success: The job is successful.
  • Fail: The job failed.
Success
Codestring

Error codes

ResourceNotFound
Messagestring

The error message that is returned.

The specified resource for "CustomTemplate" could not be found.
SubmitTimestring

The time when the job was submitted.

2022-07-12T16:17:54Z
FinishTimestring

The time when the job was complete.

2022-07-12T16:30:54Z
UserDatastring

The user-defined data.

{"sampleParam": "sampleValue"}
CreateTimestring

The time when the job was created.

2022-07-12T16:17:54Z
ModifiedTimestring

The time when the job was last modified.

2022-07-12T16:30:54Z

Examples

Sample success responses

JSONformat

{
  "RequestId": "******36-3C1E-4417-BDB2-1E034F******",
  "DynamicImageJob": {
    "JobId": "****d80e4e4044975745c14b****\n",
    "TriggerSource": "API",
    "Name": "SampleJob",
    "Input": {
      "Type": "OSS",
      "Media": "oss://test-bucket/sample-input.mp4",
      "OssFile": {
        "Bucket": "test-bucket",
        "Location": "oss-cn-shanghai",
        "Object": "sample-input.mp4"
      }
    },
    "Output": {
      "Type": "Media",
      "Media": "****d80e4e4044975745c14b****",
      "OssFile": {
        "Bucket": "sample-bucket",
        "Location": "oss-cn-shanghai",
        "Object": "path/to/object"
      }
    },
    "OutputUrl": "http://test-bucket.oss-cn-shanghai.aliyuncs.com/output.gif",
    "TemplateConfig": "{\"Format\":\"gif\",\"Fps\":5,\"Height\":1080,\"Width\":1920}",
    "TemplateId": "****d80e4e4044975745c14b****",
    "PipelineId": "****d80e4e4044975745c14b****",
    "Status": "Success",
    "Code": "ResourceNotFound",
    "Message": "The specified resource for \"CustomTemplate\" could not be found.",
    "SubmitTime": "2022-07-12T16:17:54Z",
    "FinishTime": "2022-07-12T16:30:54Z",
    "UserData": "{\"sampleParam\": \"sampleValue\"}",
    "CreateTime": "2022-07-12T16:17:54Z",
    "ModifiedTime": "2022-07-12T16:30:54Z"
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-07-15Add OperationView Change Details
2022-07-11Add OperationView Change Details