Share via


NotificationEndPoint

작업 상태에 대한 알림이 전송되는 엔드포인트입니다.

이 형식은 Media Services 버전 2.1에 추가되었습니다.

참고

Azure 큐 알림이 약간 지연될 수 있습니다.

이 항목에서는 NotificationEndPoint 엔터티에 대해 간략하게 설명하는 동시에 미디어 서비스 REST API를 사용하여 다양한 작업을 실행하는 방법도 보여 줍니다.

중요

Media Services에서 엔터티에 액세스할 때는 HTTP 요청에서 구체적인 헤더 필드와 값을 설정해야 합니다.
자세한 내용은 Media Services REST API 개발 설정 및 Media Services REST API를 사용하여 Media Services에 연결을 참조하세요.

NotificationEndPoint 엔터티 속성

속성 형식 설명
Id

읽기 전용입니다. 만들 때 Media Services에서 설정합니다.
Edm.String 고유 식별자입니다. 형식: nb:ncid:UUID:<GUID>.
속성

필수 사항입니다.
Edm.String 알림 엔드포인트의 이름을 표시합니다.
생성일

읽기 전용입니다. 만들 때 Media Services에서 설정합니다.
Edm.DateTime 이 값은 생성 시 Media Services에 의해 설정됩니다.
EndpointType

필수 요소. 엔터티가 만들어진 후에는 업데이트할 수 없습니다.
Edm.Int32 알림 엔드포인트의 유형입니다.

유효한 값은 AzureQueue = 1뿐입니다.
EndpointAddress

필수 요소. 엔터티가 만들어진 후에는 업데이트할 수 없습니다.
Edm.String EndpointAddress는 사용할 AzureQueue의 이름입니다. azure 큐의 명명 규칙이 적용됩니다. 자세한 내용은 큐 및 메타데이터 명명을 참조하세요.
CredentialType Edm.Int32 알림 엔드포인트 에 대한 자격 증명 유형을 설정합니다.
EncryptedEndPointCredential Edm.String 암호화된 endPoint 자격 증명입니다.
ProtectionKeyId Edm.String 보호 키 ID입니다.
ProtectionKeyType Edm.Int32 보호 키 유형입니다.

NotificationEndPoint 만들기

최신 x-ms-version:을 얻으려면 Media Services REST를 참조하세요.

NotificationEndPoint는 HTTP POST 요청을 사용하여 만들 수 있습니다.

POST https://<accountname>.restv2.<location>.media.azure.net/api/NotificationEndPoints HTTP/1.1  
User-Agent: Microsoft ADO.NET Data Services  
DataServiceVersion: 1.0  
MaxDataServiceVersion: 3.0  
Accept: application/atom+xml,application/xml  
Accept-Charset: UTF-8  
Authorization: Bearer <token value>  
x-ms-version: 2.19  
Content-Type: application/atom+xml  
Host: media.windows.net  
Content-Length: 533  
Expect: 100-continue  
  
<?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"><id /><title /><updated>2013-04-21T21:44:14Z</updated><author><name /></author><content type="application/xml"><m:properties><d:EndPointAddress>endpointpueu1</d:EndPointAddress><d:EndPointType m:type="Edm.Int32">1</d:EndPointType><d:Id m:null="true" /><d:Name>EndPointName1</d:Name></m:properties></content></entry>  
  

다음은 NotificationEndPoint 만들기에 대한 응답입니다.

HTTP/1.1 201 Created  
Cache-Control: no-cache  
Content-Length: 1113  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Location: https://&lt;accountname&gt;.restv2.&lt;location&gt;.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A1b373460-1fc4-4e80-aad6-b2b0cdb9e674')  
Server: Microsoft-IIS/7.5  
request-id: 9da4221a-7284-4767-905b-4a6823ae2f6f  
x-ms-request-id: 9da4221a-7284-4767-905b-4a6823ae2f6f  
X-Content-Type-Options: nosniff  
DataServiceVersion: 1.0;  
X-Powered-By: ASP.NET  
Date: Sun, 21 Apr 2013 21:44:17 GMT  
  
<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://&lt;accountname&gt;.restv2.&lt;location&gt;.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"><id>https://&lt;accountname&gt;.restv2.&lt;location&gt;.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A1b373460-1fc4-4e80-aad6-b2b0cdb9e674')</id><category term="Microsoft.Cloud.Media.Vod.Rest.Data.Models.NotificationEndPoint" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="NotificationEndPoint" href="NotificationEndPoints('nb%3Anepid%3AUUID%3A1b373460-1fc4-4e80-aad6-b2b0cdb9e674')" /><title /><updated>2013-04-21T21:44:17Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Id>nb:nepid:UUID:1b373460-1fc4-4e80-aad6-b2b0cdb9e674</d:Id><d:Name>EndPointName1</d:Name><d:Created m:type="Edm.DateTime">2013-04-21T21:44:16.4802609Z</d:Created><d:EndPointAddress>endpointpueu1</d:EndPointAddress><d:EndPointType m:type="Edm.Int32">1</d:EndPointType></m:properties></content></entry>  
  

NotificationEndPoint 업데이트

최신 x-ms-version:을 얻으려면 Media Services REST를 참조하세요.

NotificationEndPoint는 HTTP POST 요청을 사용하여 업데이트할 수 있습니다.

MERGE https://<accountname>.restv2.<location>.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A64bb03ea-bb6a-4d3c-b6e9-4a0f3e346638') HTTP/1.1  
User-Agent: Microsoft ADO.NET Data Services  
DataServiceVersion: 1.0  
MaxDataServiceVersion: 3.0  
Accept: application/atom+xml,application/xml  
Accept-Charset: UTF-8  
Authorization: Bearer <token value>  
x-ms-version: 2.19  
Content-Type: application/atom+xml  
Host: media.windows.net  
Content-Length: 690  
Expect: 100-continue  
  
<?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"><id>https://&lt;accountname&gt;.restv2.&lt;location&gt;.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A64bb03ea-bb6a-4d3c-b6e9-4a0f3e346638')</id><title /><updated>2013-04-21T21:56:15Z</updated><author><name /></author><content type="application/xml"><m:properties><d:EndPointAddress>endpointqueue2</d:EndPointAddress><d:EndPointType m:type="Edm.Int32">1</d:EndPointType><d:Id>nb:nepid:UUID:64bb03ea-bb6a-4d3c-b6e9-4a0f3e346638</d:Id><d:Name>NewEndPoint1</d:Name></m:properties></content></entry>  
  

다음은 NotificationEndPoint 업데이트에 대한 응답입니다.

HTTP/1.1 204 No Content  
Cache-Control: no-cache  
Server: Microsoft-IIS/7.5  
request-id: 6e1533d9-1efc-4c45-b299-8060d2355e48  
x-ms-request-id: 6e1533d9-1efc-4c45-b299-8060d2355e48  
X-Content-Type-Options: nosniff  
DataServiceVersion: 1.0;  
X-Powered-By: ASP.NET  
Date: Sun, 21 Apr 2013 21:56:16 GMT  
  

NotificationEndPoint 가져오기

최신 x-ms-version:을 얻으려면 Media Services REST를 참조하세요.

다음 요청은 지정된 알림 지점을 가져옵니다. 매개 변수 없이 모든 알림 지점 호출 NotificationEndPoints 을 얻으려면: GET https://<accountname>.restv2.<location>.media.azure.net/api/NotificationEndPoints.

GET https://<accountname>.restv2.<location>.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A6286704e-e69f-454e-80e0-7fda53ce7dba') HTTP/1.1  
DataServiceVersion: 1.0;NetFx  
MaxDataServiceVersion: 3.0;NetFx  
Accept: application/atom+xml,application/xml  
Accept-Charset: UTF-8  
User-Agent: Microsoft ADO.NET Data Services  
Authorization: Bearer <token value>  
x-ms-version: 2.19  
Host: media.windows.net  
  
HTTP/1.1 200 OK  
Cache-Control: no-cache  
Content-Length: 1167  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Server: Microsoft-IIS/7.5  
request-id: aa32c140-8e59-4043-bbe8-c2221ca61a5f  
x-ms-request-id: aa32c140-8e59-4043-bbe8-c2221ca61a5f  
X-Content-Type-Options: nosniff  
DataServiceVersion: 1.0;  
X-Powered-By: ASP.NET  
Date: Fri, 02 Aug 2013 06:25:33 GMT  
  
<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://&lt;accountname&gt;.restv2.&lt;location&gt;.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"><id>https://&lt;accountname&gt;.restv2.&lt;location&gt;.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A6286704e-e69f-454e-80e0-7fda53ce7dba')</id><category term="Microsoft.Cloud.Media.Vod.Rest.Data.Models.NotificationEndPoint" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" title="NotificationEndPoint" href="NotificationEndPoints('nb%3Anepid%3AUUID%3A6286704e-e69f-454e-80e0-7fda53ce7dba')" /><title /><updated>2013-08-02T06:25:33Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Id>nb:nepid:UUID:6286704e-e69f-454e-80e0-7fda53ce7dba</d:Id><d:Name>62abde48-420f-4f76-9ca4-9ba1d8852f38</d:Name><d:Created m:type="Edm.DateTime">2013-08-02T06:25:02.48</d:Created><d:EndPointAddress>b71b6ac6-e598-4fdf-b5cb-e8494cb955ef</d:EndPointAddress><d:EndPointType m:type="Edm.Int32">1</d:EndPointType></m:properties></content></entry>  

NotificationEndPoint 삭제

최신 x-ms-version:을 얻으려면 Media Services REST를 참조하세요.

NotificationEndPoint는 HTTP POST 요청을 사용하여 삭제할 수 있습니다.

DELETE https://<accountname>.restv2.<location>.media.azure.net/api/NotificationEndPoints('nb%3Anepid%3AUUID%3A64bb03ea-bb6a-4d3c-b6e9-4a0f3e346638') HTTP/1.1  
User-Agent: Microsoft ADO.NET Data Services  
DataServiceVersion: 1.0  
MaxDataServiceVersion: 3.0  
Accept: application/atom+xml,application/xml  
Accept-Charset: UTF-8  
Authorization: Bearer <token value>  
x-ms-version: 2.19  
Host: media.windows.net  
Content-Length: 0  
  

다음은 NotificationEndPoint 삭제에 대한 응답입니다.

HTTP/1.1 204 No Content  
Cache-Control: no-cache  
Server: Microsoft-IIS/7.5  
request-id: f838c56f-d9f6-4e6f-8e0a-945d10a7a48c  
x-ms-request-id: f838c56f-d9f6-4e6f-8e0a-945d10a7a48c  
X-Content-Type-Options: nosniff  
DataServiceVersion: 1.0;  
X-Powered-By: ASP.NET  
Date: Sun, 21 Apr 2013 21:56:17 GMT