İş
İş, bir görev kümesiyle ilgili meta verileri içeren bir varlıktır. Her görev, giriş varlıkları üzerinde atomik bir işlem gerçekleştirir. İş genellikle bir ses/video sunusunu işlemek için kullanılır. Birden çok videoyu işliyorsanız, her video için kodlanacak bir iş oluşturun.
Bu makalede varlığa genel bir bakış Job
ve Media Services REST API'siyle çeşitli işlemlerin nasıl yürütülecekleri gösterilmektedir.
Önemli
- Media Services'teki varlıklara erişirken, HTTP isteklerinizde belirli üst bilgi alanlarını ve değerlerini ayarlamanız gerekir.
Daha fazla bilgi için bkz. Media Services REST API Geliştirme kurulumu ve Media Services REST API ile Media Services'e Bağlanma.
- JSON kullanırken ve istekte __metadata anahtar sözcüğünü kullanmayı belirtirken (örneğin, bağlı bir nesneye başvurmak için) Accept üst bilgisini JSON Ayrıntılı biçimine ayarlamanız GEREKİr (Kabul et: application/json;odata=verbose). Odata, ayrıntılı olarak ayarlamadığınız sürece istekteki __metadata özelliğini anlamaz.
İş Varlığı Özellikleri
Özellik | Tür | Description |
---|---|---|
Id Salt okunur. Media Services tarafından oluşturma zamanında ayarlanır. |
Edm.String | Benzersiz tanımlayıcı. |
Name İsteğe bağlı. |
Edm.String | İş için kolay ad. Uzunluk = 256 olmalıdır <. |
Created Salt okunur. Media Services tarafından oluşturma zamanında ayarlanır. |
Edm.DateTime | 1 Ocak 1970 gece yarısından bu yana geçen milisaniye sayısını temsil eder. |
LastModified Salt okunur. Media Services tarafından ayarlanır. |
Edm.DateTime | Özellik değişiklikleri yapıldıktan sonra bu değer Media Services tarafından güncelleştirilir. 1 Ocak 1970 gece yarısından bu yana geçen milisaniye sayısını temsil eder. |
EndTime Salt okunur. Media Services tarafından ayarlanır. |
Edm.DateTime | İşin tamamlandığı, başarısız olduğu veya iptal edildiği tarih saat. |
Priority İsteğe bağlı. |
Edm.Int32 | İşin Önceliği. Daha yüksek bir değer, diğer zamanlanmış işleriniz için daha yüksek bir öncelik olduğunu gösterir. Örneğin, Öncelik = 40 olan bir iş, Öncelik = 30 olan bir işten önce işlenir. Üst sınır MaxInt'e eşittir. Varsayılan değer, 0'dur. |
RunningDuration Salt okunur. Media Services tarafından ayarlanır. |
Edm.Double | İş için geçen süre (milisaniye cinsinden) |
StartTime Salt okunur. Media Services tarafından ayarlanır. |
Edm.DateTime | İşin başladığı tarih saat. |
State Salt okunur. Media Services tarafından ayarlanır. |
Edm.Int32 | İşin durumu. Bu, Görevler durumunun bir toplamıdır. Bir Görev başarısız olursa, bu özellik Başarısız olarak ayarlanır. Geçerli değerler: - Kuyruğa alındı = 0 - Zamanlanmış = 1 - İşleme = 2 - Bitti = 3 - Hata = 4 - İptal edildi = 5 - İptal etme = 6 |
TemplateId İsteğe bağlı. |
Edm.String | JobTemplate varlığının kimliği. |
InputMediaAssets Gereklidir. |
Varlıklar varlık kümesi | İş'e giriş varlıkları olarak davranan tüm ilişkili Varlık varlıklarına başvuran gezinti özelliği. |
OutputMediaAssets Salt okunur. Media Services tarafından ayarlanır. |
Varlıklar varlık kümesi | İş'e çıkış varlıkları olarak davranan tüm ilişkili Varlık varlıklarına başvuran gezinti özelliği. Varlıklar ve blob depolama kapsayıcıları, iş oluşturulduktan sonra oluşturulur. Çıkış varlıkları, dosyaları (video, ses, küçük resimler vb.) ve giriş ve çıkış varlıkları hakkındaki meta verileri içerir. Daha fazla bilgi için Varlık ve Çıktı Meta Verileri konularına bakın. |
Tasks İsteğe bağlı. |
Görevler varlık kümesi | İlişkili tüm Görev varlıklarına başvuran gezinti özelliği. |
JobNotificationSubscriptions İsteğe bağlı. Varlık oluşturulduktan sonra güncelleştirilemez. |
JobNotificationSubscription Bu özellik Media Services sürüm 2.1'e eklendi. Uyarı: Azure kuyruk bildiriminde biraz gecikme olabilir. |
İş için bildirim aboneliklerine başvuran gezinti özelliği. İş oluşturulduktan sonra bu özellik güncelleştirilemez. |
Bildirim abonelikleri olmadan İş oluşturma
İşler bir HTTP POST isteğiyle oluşturulabilir.
Yöntem | İstek URI'si | HTTP Sürümü |
---|---|---|
POST | <https:// accountname.restv2>.<location.media.azure.net/api/Jobs> | HTTP/1.1 |
Aşağıdaki kod, Media Services sürüm 2.0 kullanarak nasıl istek oluşturulacağını gösterir. JSON kullanırken ve istekteki __metadata anahtar sözcüğünü kullanmayı belirtirken (örneğin, bağlı bir nesneye başvurmak için) Accept üst bilgisini JSON Ayrıntılı biçimine ayarlamanız gerektiğini unutmayın (Kabul et: application/json;odata=verbose). Odata, ayrıntılı olarak ayarlamadığınız sürece istekteki __metadata özelliğini anlamaz.
POST https://<accountname>.restv2.<location>.media.azure.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.19
Authorization: Bearer <token value>
Host: media.windows.net
Content-Length: 474
Expect: 100-continue
{"Name" : "NewTestJob", "InputMediaAssets" : [{"__metadata" : {"uri" : "https://<accountname>.restv2.<location>.media.azure.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>"}]}
Bildirim abonelikleriyle İş oluşturma
Bildirimleri olan işler HTTP POST toplu isteği kullanılarak oluşturulabilir.
Yöntem | İstek URI'si | HTTP Sürümü |
---|---|---|
POST | <https:// accountname.restv2>.<location.media.azure.net/api/$batch> | HTTP/1.1 |
Aşağıdaki örnek kod, iş için bildirim abonelikleriyle bir kodlama Job
oluşturur. özelliği Media JobNotificationSubscriptions
Services sürüm 2.5'e eklendi. JSON kullanırken ve istekteki __metadata anahtar sözcüğünü kullanmayı belirtirken (örneğin, bağlı bir nesneye başvurmak için) Accept üst bilgisini JSON Ayrıntılı biçimine ayarlamanız gerektiğini unutmayın (Kabul et: application/json;odata=verbose). Odata, ayrıntılı olarak ayarlamadığınız sürece istekteki __metadata özelliğini anlamaz.
En son x-ms-version:
sürümü edinmek için bkz. Media Services REST.
POST https://<accountname>.restv2.<location>.media.azure.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 <token value>
x-ms-version: 2.19
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://<accountname>.restv2.<location>.media.azure.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://<accountname>.restv2.<location>.media.azure.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://<accountname>.restv2.<location>.media.azure.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><?xml version="1.0" encoding="utf-16"?>
<taskBody>
<inputAsset>JobInputAsset(0)</inputAsset>
<outputAsset assetCreationOptions="0" assetName="Output asset">JobOutputAsset(0)</outputAsset>
</taskBody></d:TaskBody></m:properties></content></entry>
--changeset_0e31bdec-b799-400c-aa2f-d040aaa6ef2d--
--batch_c8ccf56a-87f6-4a61-bfa2-46aac3bb87d9--
Bildirim içeren iş oluşturma işlemine verilen yanıt aşağıdadır:
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://<accountname>.restv2.<location>.media.azure.net/api/Jobs('nb%3Ajid%3AUUID%3A7dc2642f-ab1e-9f4c-8ecd-027eeac2a4ab')
<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://<accountname>.restv2.<location>.media.azure.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://<accountname>.restv2.<location>.media.azure.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://<accountname>.restv2.<location>.media.azure.net/api/Tasks('nb%3Atid%3AUUID%3A94d3c509-24c2-467f-aa65-d16a4ea28b19')
<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://<accountname>.restv2.<location>.media.azure.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://<accountname>.restv2.<location>.media.azure.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><?xml version="1.0" encoding="utf-16"?>
<taskBody>
<inputAsset>JobInputAsset(0)</inputAsset>
<outputAsset assetCreationOptions="0" assetName="Output asset">JobOutputAsset(0)</outputAsset>
</taskBody></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--
Daha önce belirtilen uç nokta adresiyle kuyruk için İleti al işlemi aşağıdaki bildirim iletilerini oluşturur:
{
"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"
}
}
Bildirim EventType
şu değerlere sahip olabilir: None = 0, JobStateChange = 1, NotificationEndPointRegistration = 2 ve NotificationEndPointUnregistration = 3.
Olay JobStateChange
şu iş durumlarını içerebilir: Kuyruğa alındı = 0, Zamanlandı = 1, İşleme = 2, Bitti = 3, Hata = 4, İptal Edildi = 5 ve İptal Etme = 6.
İşleri Listele
İşler bir HTTP GET isteği kullanılarak alınabilir.
Önemli
İş varlıklarını listeleme isteğinde bulunurken istek başına en fazla 1000 döndürülür. Gönderilen tüm işleri izlemeniz gerekiyorsa, OData sorgu seçeneklerinde açıklandığı gibi üste/atla seçeneğini kullanabilirsiniz.
Yöntem | İstek URI'si | HTTP Sürümü |
---|---|---|
GET | <https:// accountname.restv2>.<location.media.azure.net/api/Jobs> | HTTP/1.1 |
Yöntem | İstek URI'si | HTTP Sürümü |
---|---|---|
GET | <https:// accountname.restv2>.<location.media.azure.net/api/Jobs>('jobid') | HTTP/1.1 |
Örnek İstek
En son x-ms-version:
sürümü edinmek için bkz. Media Services REST.
GET https://<accountname>.restv2.<location>.media.azure.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.19
Authorization: Bearer <token value>
Host: media.windows.net
İşi İptal Etme
İşlerin çalıştırılması CancelJob işlevi kullanılarak iptal edilebilir. Örnek için bkz . REST API İşlevleri.
İşi Silme
İşler HTTP DELETE isteği kullanılarak silinebilir. Bu, Azure Media Service hesap veritabanından tamamlanan eski işleri temizlemek için yararlıdır.
Yöntem | İstek URI'si | HTTP Sürümü |
---|---|---|
DELETE | <https:// accountname.restv2>.<location.media.azure.net/api/Jobs>('jobid') | HTTP/1.1 |
Örnek İstek
En son x-ms-version:
sürümü edinmek için bkz. Media Services REST.
DELETE https://<accountname>.restv2.<location>.media.azure.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.19
Authorization: Bearer <token value>
Host: media.windows.net
Content-Length: 0
Ayrıca Bkz.
ContentKey
Varlık
AccessPolicy
AssetFile
JobTemplate
Konumlandırıcı
MediaProcessor
Görev
Görev Şablonu
Kotalar ve Sınırlamalar