导出 (0) 打印
全部展开

作业

更新时间: 2014年8月

作业是包含有关一组任务的元数据的实体。每个任务对输入资产执行原子操作。作业通常用于处理一个音频/视频演示。如果要处理多个视频,应为要编码的每个视频创建一个作业。

本主题提供 Job 实体的概述,并且还演示如何使用 Media Services REST API 执行各种操作。

Important重要提示
使用 Media Services REST API 时,需注意以下事项:

 

属性 类型 描述

Id

只读。由 媒体服务 在创建时设置。

Edm.String

唯一标识符。

Name

可选。

Edm.String

作业的友好名称。最大长度为 4000。

Created

只读。由 媒体服务 在创建时设置。

Edm.DateTime

表示自 1970 年 1 月 1 日午夜以来的毫秒数。

LastModified

只读。由 媒体服务 设置。

Edm.DateTime

此值由媒体服务在做出任何属性更改后更新。它表示自 1970 年 1 月 1 日午夜以来的毫秒数。

EndTime

只读。由 媒体服务 设置。

Edm.DateTime

作业完成、失败或被取消时的日期时间。

Priority

可选。

Edm.Int32

作业的优先级。值越大表示相对其他计划作业的优先级就越高。例如,优先级为 40 的作业将在优先级为 30 的作业之前处理。上限等于 MaxInt。默认值为 0。

RunningDuration

只读。由 媒体服务 设置。

Edm.Double

作业的用时(秒)。

StartTime

只读。由 媒体服务 设置。

Edm.DateTime

作业开始时的日期时间。

State

只读。由 媒体服务 设置。

Edm.Int32

作业的状态。这是任务状态的聚合。如果有一个任务失败,则会将此属性设置为“失败”。有效值包括:

  • Queued = 0

  • Scheduled = 1

  • Processing = 2

  • Finished = 3

  • Error = 4

  • Canceled = 5

  • Canceling = 6

TemplateId

可选。

Edm.String

作业模板实体的 ID。

InputMediaAssets

必需。

资产实体集

导航属性,该属性引用作为作业的输入资产的所有关联资产实体。

OutputMediaAssets

只读。由 媒体服务 设置。

资产实体集

导航属性,该属性引用作为作业的输出资产的所有关联资产实体。资产及其 BLOB 存储容器在作业创建时创建。

Tasks

可选。

任务实体集

导航属性,该属性引用所有关联的任务实体。

JobNotificationSubscriptions

可选。在创建实体后无法进行更新。

JobNotificationSubscription

媒体服务 版本 2.1 中已添加此属性。

Warning警告
Azure 队列通知可能会有所延迟。

引用作业通知订阅的导航属性。

在创建作业后,无法更新此属性。

可以使用 HTTP POST 请求来创建包含通知的作业。

 

方法 请求 URI HTTP 版本

POST

https://media.windows.net/API/$batch

HTTP/1.1

Important重要提示
成功连接到 https://media.windows.net 后,将收到一个 301 重定向,指定另一个媒体服务 URI。你必须对这个新 URI 进行后续调用。

以下示例代码将创建一个包含作业通知订阅的编码 Job。请注意,媒体服务 版本 2.5 中已添加 JobNotificationSubscriptions 属性。

POST https://media.windows.net/API/$batch HTTP/1.1
User-Agent: Microsoft ADO.NET Data Services
DataServiceVersion: 1.0
MaxDataServiceVersion: 3.0
Accept: multipart/mixed
Accept-Charset: UTF-8
Authorization: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0-F35C-4A5A-9249-485BBF4EC70B&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1334275521&Issuer=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&HMACSHA256=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3d 
x-ms-version: 2.6
Content-Type: multipart/mixed; boundary=batch_c8ccf56a-87f6-4a61-bfa2-46aac3bb87d9
Host: media.windows.net
Content-Length: 3856

--batch_c8ccf56a-87f6-4a61-bfa2-46aac3bb87d9
Content-Type: multipart/mixed; boundary=changeset_0e31bdec-b799-400c-aa2f-d040aaa6ef2d

--changeset_0e31bdec-b799-400c-aa2f-d040aaa6ef2d
Content-Type: application/http
Content-Transfer-Encoding: binary

POST https://media.windows.net/API/Jobs HTTP/1.1
Content-ID: 1
Content-Type: application/atom+xml
DataServiceVersion: 3.0;NetFx
MaxDataServiceVersion: 3.0;NetFx
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8

<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/InputMediaAssets" type="application/atom+xml;type=feed" title="InputMediaAssets" href="https://media.windows.net/API/Assets('nb%3Acid%3AUUID%3A33662ded-f00b-4020-9fcf-4c4a22070c01')" /><id /><title /><updated>2013-04-20T22:41:57Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Created m:type="Edm.DateTime">0001-01-01T00:00:00</d:Created><d:EndTime m:null="true" /><d:Id m:null="true" /><d:JobNotificationSubscriptions><d:element><d:NotificationEndPointId>nb:nepid:UUID:36e510df-8560-4bae-a698-87723f677e98</d:NotificationEndPointId><d:TargetJobState m:type="Edm.Int32">2</d:TargetJobState></d:element></d:JobNotificationSubscriptions><d:LastModified m:type="Edm.DateTime">0001-01-01T00:00:00</d:LastModified><d:Name>My MP4 to Smooth Streaming encoding job</d:Name><d:Priority m:type="Edm.Int32">0</d:Priority><d:RunningDuration m:type="Edm.Double">0</d:RunningDuration><d:StartTime m:null="true" /><d:State m:type="Edm.Int32">0</d:State><d:TemplateId m:null="true" /></m:properties></content></entry>
--changeset_0e31bdec-b799-400c-aa2f-d040aaa6ef2d
Content-Type: application/http
Content-Transfer-Encoding: binary

POST https://media.windows.net/API/$1/Tasks HTTP/1.1
Content-ID: 2
Content-Type: application/atom+xml
DataServiceVersion: 3.0
MaxDataServiceVersion: 3.0
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8

<?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"><id /><title /><updated>2013-04-20T22:41:57Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Configuration>H264 Smooth Streaming 720p</d:Configuration><d:EncryptionKeyId m:null="true" /><d:EncryptionScheme m:null="true" /><d:EncryptionVersion m:null="true" /><d:EndTime m:null="true" /><d:ErrorDetails /><d:HistoricalEvents /><d:Id></d:Id><d:InitializationVector m:null="true" /><d:MediaProcessorId>nb:mpid:UUID:70bdc2c3-ebf4-42a9-8542-5afc1e55d217</d:MediaProcessorId><d:Name>My Mp4 to Smooth Task</d:Name><d:Options m:type="Edm.Int32">0</d:Options><d:PerfMessage m:null="true" /><d:Priority m:type="Edm.Int32">0</d:Priority><d:Progress m:type="Edm.Double">0</d:Progress><d:RunningDuration m:type="Edm.Double">0</d:RunningDuration><d:StartTime m:null="true" /><d:State m:type="Edm.Int32">0</d:State><d:TaskBody>&lt;?xml version="1.0" encoding="utf-16"?&gt;&#xD;
&lt;taskBody&gt;&#xD;
  &lt;inputAsset&gt;JobInputAsset(0)&lt;/inputAsset&gt;&#xD;
  &lt;outputAsset assetCreationOptions="0" assetName="Output asset"&gt;JobOutputAsset(0)&lt;/outputAsset&gt;&#xD;
&lt;/taskBody&gt;</d:TaskBody></m:properties></content></entry>
--changeset_0e31bdec-b799-400c-aa2f-d040aaa6ef2d--
--batch_c8ccf56a-87f6-4a61-bfa2-46aac3bb87d9--


以下是针对创建包含通知的作业的响应:

HTTP/1.1 202 Accepted
Cache-Control: no-cache
Content-Length: 6056
Content-Type: multipart/mixed; boundary=batchresponse_2ae0b2a5-ec8b-438b-ae62-a02bf2b4a502
Server: Microsoft-IIS/7.5
request-id: 9a3f6a5e-8363-42db-97bd-1f693b71f7f0
x-ms-request-id: 9a3f6a5e-8363-42db-97bd-1f693b71f7f0
X-Content-Type-Options: nosniff
DataServiceVersion: 1.0;
X-Powered-By: ASP.NET
Date: Sat, 20 Apr 2013 22:42:02 GMT

--batchresponse_2ae0b2a5-ec8b-438b-ae62-a02bf2b4a502
Content-Type: multipart/mixed; boundary=changesetresponse_10441dcf-ec34-4b8a-919e-2368b2c6444e

--changesetresponse_10441dcf-ec34-4b8a-919e-2368b2c6444e
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 201 Created
DataServiceVersion: 3.0;
Content-Type: application/atom+xml;type=entry;charset=utf-8
Content-ID: 1
X-Content-Type-Options: nosniff
Cache-Control: no-cache
Location: https://media.windows.net/api/Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')

<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://media.windows.net/api/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"><id>https://media.windows.net/api/Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')</id><category term="Microsoft.Cloud.Media.Vod.Rest.Data.Models.Job" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="Job" href="Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Tasks" type="application/atom+xml;type=feed" title="Tasks" href="Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')/Tasks" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OutputMediaAssets" type="application/atom+xml;type=feed" title="OutputMediaAssets" href="Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')/OutputMediaAssets" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/InputMediaAssets" type="application/atom+xml;type=feed" title="InputMediaAssets" href="Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')/InputMediaAssets" /><title /><updated>2013-04-20T22:42:02Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Id>nb:jid:UUID:7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab</d:Id><d:Name>My MP4 to Smooth Streaming encoding job</d:Name><d:Created m:type="Edm.DateTime">0001-01-01T00:00:00</d:Created><d:LastModified m:type="Edm.DateTime">0001-01-01T00:00:00</d:LastModified><d:EndTime m:null="true" /><d:Priority m:type="Edm.Int32">0</d:Priority><d:RunningDuration m:type="Edm.Double">0</d:RunningDuration><d:StartTime m:null="true" /><d:State m:type="Edm.Int32">0</d:State><d:TemplateId m:null="true" /><d:JobNotificationSubscriptions m:type="Collection(Microsoft.Cloud.Media.Vod.Rest.Data.Models.JobNotificationSubscription)"><d:element><d:TargetJobState m:type="Edm.Int32">2</d:TargetJobState><d:NotificationEndPointId>nb:nepid:UUID:36e510df-8560-4bae-a698-87723f677e98</d:NotificationEndPointId></d:element></d:JobNotificationSubscriptions></m:properties></content></entry>
--changesetresponse_10441dcf-ec34-4b8a-919e-2368b2c6444e
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 201 Created
DataServiceVersion: 3.0;
Content-Type: application/atom+xml;type=entry;charset=utf-8
Content-ID: 2
X-Content-Type-Options: nosniff
Cache-Control: no-cache
Location: https://media.windows.net/api/Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')

<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://media.windows.net/api/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"><id>https://media.windows.net/api/Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')</id><category term="Microsoft.Cloud.Media.Vod.Rest.Data.Models.Task" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="Task" href="Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/OutputMediaAssets" type="application/atom+xml;type=feed" title="OutputMediaAssets" href="Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')/OutputMediaAssets" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/InputMediaAssets" type="application/atom+xml;type=feed" title="InputMediaAssets" href="Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')/InputMediaAssets" /><title /><updated>2013-04-20T22:42:02Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Id>nb:tid:UUID:94d3c509-24c2-467f-aa65-d16a4ea28b19</d:Id><d:Configuration>H264 Smooth Streaming 720p</d:Configuration><d:EndTime m:null="true" /><d:ErrorDetails m:type="Collection(Microsoft.Cloud.Media.Vod.Rest.Data.Models.ErrorDetail)" /><d:HistoricalEvents m:type="Collection(Microsoft.Cloud.Media.Vod.Rest.Data.Models.TaskHistoricalEvent)" /><d:MediaProcessorId>nb:mpid:UUID:70bdc2c3-ebf4-42a9-8542-5afc1e55d217</d:MediaProcessorId><d:Name>My Mp4 to Smooth Task</d:Name><d:PerfMessage m:null="true" /><d:Priority m:type="Edm.Int32">0</d:Priority><d:Progress m:type="Edm.Double">0</d:Progress><d:RunningDuration m:type="Edm.Double">0</d:RunningDuration><d:StartTime m:null="true" /><d:State m:type="Edm.Int32">0</d:State><d:TaskBody>&lt;?xml version="1.0" encoding="utf-16"?&gt;&#xD;
&lt;taskBody&gt;&#xD;
  &lt;inputAsset&gt;JobInputAsset(0)&lt;/inputAsset&gt;&#xD;
  &lt;outputAsset assetCreationOptions="0" assetName="Output asset"&gt;JobOutputAsset(0)&lt;/outputAsset&gt;&#xD;
&lt;/taskBody&gt;</d:TaskBody><d:Options m:type="Edm.Int32">0</d:Options><d:EncryptionKeyId m:null="true" /><d:EncryptionScheme m:null="true" /><d:EncryptionVersion m:null="true" /><d:InitializationVector m:null="true" /></m:properties></content></entry>
--changesetresponse_10441dcf-ec34-4b8a-919e-2368b2c6444e--
--batchresponse_2ae0b2a5-ec8b-438b-ae62-a02bf2b4a502--

针对包含前面指定的终结点地址的队列执行的 Get Messages(获取消息)操作将生成以下通知消息:

{
"MessageVersion":"1.0",
"EventType":"NotificationEndPointRegistration",
"ETag":"d7a67e6e19acdb35c3de63e5d5a655b0a06cefb18192b4a6d6dc551298a2c01f",
"TimeStamp":"2013-04-22T19:33:32",
"Properties":
    {
    "NotificationEndPointId":"nb:nepid:UUID:36e510df-8560-4bae-a698-87723f677e98",
    "State":"Registered",
    "Name":"c9251969-d74e-40b3-927f-62de9c0cc3d1",
    "Created":"2013-04-22T19:33:31"
    }
}

{
"MessageVersion":"1.0",
"EventType":"JobStateChange",
"ETag":"4bc48c4bf9ae7f50e4dfdc5cda32a032e30c9ba94f9cd45d859c64e28e7e9937",
"TimeStamp":"2013-04-22T19:34:12",
"Properties":
    {
    "JobId":"nb:jid:UUID:3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab",
    "JobName":"My MP4 to Smooth Streaming encoding job",
    "NewState":"Scheduled",
    "OldState":"Queued",
    "AccountName":"account001"
    }
}

{
"MessageVersion":"1.0",
"EventType":"JobStateChange",
"ETag":"4f5ca985235ed262df7b995a278de24fea4bae1a630d5106dd215853a42cf2ca",
"TimeStamp":"2013-04-22T19:34:13",
"Properties":
    {
    "JobId":"nb:jid:UUID:3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab",
    "JobName":"My MP4 to Smooth Streaming encoding job",
    "NewState":"Processing",
    "OldState":"Scheduled",
    "AccountName":"account001"
    }
}

{
"MessageVersion":"1.0",
"EventType":"JobStateChange",
"ETag":"25af87b23c92a52d140fcf0915b3b1868f3bd9822347de9287688a9cff653623",
"TimeStamp":"2013-04-22T19:35:28",
"Properties":
    {
    "JobId":"nb:jid:UUID:3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab",
    "JobName":"My MP4 to Smooth Streaming encoding job",
    "NewState":"Finished",
    "OldState":"Processing",
    "AccountName":"account001"
    }
}

通知 EventType 可能具有以下值:None = 0、JobStateChange = 1、NotificationEndPointRegistration = 2 和 NotificationEndPointUnregistration = 3。

JobStateChange 事件可能具有以下作业状态:“已排队”= 0、“已安排”= 1、“正在处理”= 2、“已完成”= 3、“错误”= 4、“已取消”= 5 和“正在取消”= 6。

可以使用 HTTP POST 请求创建作业。

 

方法 请求 URI HTTP 版本

POST

https://media.windows.net/API/Jobs

HTTP/1.1

Important重要提示
成功连接到 https://media.windows.net 后,将收到一个 301 重定向,指定另一个媒体服务 URI。你必须对这个新 URI 进行后续调用。

以下代码说明如何使用 媒体服务 版本 2.0 创建请求。

POST https://media.windows.net/API/Jobs HTTP/1.1
Content-Type: application/json;odata=verbose
Accept: application/json;odata=verbose
DataServiceVersion: 3.0
MaxDataServiceVersion: 3.0
x-ms-version: 2.0
Authorization: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0-F35C-4A5A-9249-485BBF4EC70B&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1334275521&Issuer=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&HMACSHA256=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3d 
Host: media.windows.net
Content-Length: 474
Expect: 100-continue

{"Name" : "NewTestJob", "InputMediaAssets" : [{"__metadata" : {"uri" : "https://media.windows.net/api/Assets('nb%3Acid%3AUUID%3Aba5356eb-30ff-4dc6-9e5a-41e4223540e7')"}}], "Tasks" : [{"Configuration" : "H.264 HD 720p VBR", "MediaProcessorId" : "nb:mpid:UUID:2f381738-c504-4e4a-a38e-d199e207fcd5", "TaskBody" : "<?xml version=\"1.0\" encoding=\"utf-8\"?><taskBody><inputAsset>JobInputAsset(0)</inputAsset><outputAsset>JobOutputAsset(0)</outputAsset></taskBody>"}]}

可以使用 HTTP GET 请求检索作业。

Important重要提示
列出作业实体时,最多将返回 1000 个实体。如果需要跟踪所有已提交的作业,可以定期列出作业并缓存结果。

 

方法 请求 URI HTTP 版本

GET

https://media.windows.net/API/Jobs

HTTP/1.1

 

方法 请求 URI HTTP 版本

GET

https://media.windows.net/API/Jobs('jobid')

HTTP/1.1

Warning警告
每个请求最多返回 1000 个作业。如果需要所有作业的完整列表,请定期发出请求。

Important重要提示
成功连接到 https://media.windows.net 后,将收到一个 301 重定向,指定另一个媒体服务 URI。你必须对这个新 URI 进行后续调用。

GET https://media.windows.net/API/Jobs('nb:jid:UUID:b1f956b3-774c-bb44-a3f7-ee47e23add31') HTTP/1.1
Content-Type: application/json;odata=verbose
Accept: application/json;odata=verbose
DataServiceVersion: 3.0
MaxDataServiceVersion: 3.0
x-ms-version: 2.6
Authorization: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0-F35C-4A5A-9249-485BBF4EC70B&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1334275521&Issuer=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&HMACSHA256=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3d 
Host: media.windows.net

可以使用 CancelJob 函数取消正在运行的作业。有关示例,请参阅REST API 函数

可以使用 HTTP DELETE 请求删除作业。此操作可用于从 Azure Media Services 帐户数据库中清除已完成的旧作业。

 

方法 请求 URI HTTP 版本

DELETE

https://media.windows.net/API/Jobs('jobid')

HTTP/1.1

Important重要提示
成功连接到 https://media.windows.net 后,将收到一个 301 重定向,指定另一个媒体服务 URI。你必须对这个新 URI 进行后续调用。

DELETE https://media.windows.net/api/Jobs('nb:jid:UUID:9f5b35d0-68ac-c249-8ece-ece9ea22a461') HTTP/1.1
Content-Type: application/json;odata=verbose
Accept: application/json;odata=verbose
DataServiceVersion: 3.0
MaxDataServiceVersion: 3.0
x-ms-version: 2.6
Authorization: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0-F35C-4A5A-9249-485BBF4EC70B&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1334275521&Issuer=https%3a%2f%2fwamsprodglobal001acs.accesscontrol.windows.net%2f&HMACSHA256=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3d
Host: media.windows.net
Content-Length: 0

另请参阅

显示:
© 2014 Microsoft