Share via


Streaming Locators - Create

Media Services 계정에서 스트리밍 로케이터 만들기

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}?api-version=2022-08-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
accountName
path True

string

Media Services 계정 이름입니다.

resourceGroupName
path True

string

Azure 구독 내 리소스 그룹의 이름입니다.

streamingLocatorName
path True

string

스트리밍 로케이터 이름입니다.

subscriptionId
path True

string

Microsoft Azure 구독의 고유 식별자입니다.

api-version
query True

string

클라이언트 요청과 함께 사용할 API의 버전입니다.

요청 본문

Name 필수 형식 Description
properties.assetName True

string

자산 이름

properties.streamingPolicyName True

string

이 스트리밍 로케이터에서 사용하는 스트리밍 정책의 이름입니다. 만든 스트리밍 정책의 이름을 지정하거나 미리 정의된 스트리밍 정책 중 하나를 사용합니다. 사용 가능한 미리 정의된 스트리밍 정책은 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' 및 'Predefined_MultiDrmStreaming'입니다.

properties.alternativeMediaId

string

이 스트리밍 로케이터의 대체 미디어 ID

properties.contentKeys

StreamingLocatorContentKey[]

이 스트리밍 로케이터에서 사용하는 ContentKeys입니다.

properties.defaultContentKeyPolicyName

string

이 스트리밍 로케이터에서 사용하는 ContentKeyPolicy의 기본 이름입니다.

properties.endTime

string

스트리밍 로케이터의 종료 시간입니다.

properties.filters

string[]

이 스트리밍 로케이터에 적용되는 자산 또는 계정 필터 목록

properties.startTime

string

스트리밍 로케이터의 시작 시간입니다.

properties.streamingLocatorId

string

스트리밍 로케이터의 StreamingLocatorId입니다.

응답

Name 형식 Description
201 Created

StreamingLocator

생성일

Other Status Codes

ErrorResponse

자세한 오류 정보입니다.

예제

Creates a Streaming Locator with clear streaming
Creates a Streaming Locator with secure streaming
Creates a Streaming Locator with user defined content keys

Creates a Streaming Locator with clear streaming

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator?api-version=2022-08-01

{
  "properties": {
    "streamingPolicyName": "clearStreamingPolicy",
    "assetName": "ClimbingMountRainier"
  }
}

Sample Response

{
  "name": "UserCreatedClearStreamingLocator",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.4323237Z",
    "endTime": "9999-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013",
    "streamingPolicyName": "clearStreamingPolicy",
    "contentKeys": []
  }
}

Creates a Streaming Locator with secure streaming

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator?api-version=2022-08-01

{
  "properties": {
    "streamingPolicyName": "UserCreatedSecureStreamingPolicy",
    "assetName": "ClimbingMountRainier",
    "startTime": "2018-03-01T00:00:00Z",
    "endTime": "2028-12-31T23:59:59.9999999Z"
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingLocator",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.6243295Z",
    "startTime": "2018-03-01T00:00:00Z",
    "endTime": "2028-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945",
    "streamingPolicyName": "UserCreatedSecureStreamingPolicy",
    "contentKeys": [
      {
        "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4",
        "type": "CommonEncryptionCbcs",
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "tracks": []
      },
      {
        "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4",
        "type": "CommonEncryptionCenc",
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "tracks": []
      },
      {
        "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1",
        "type": "EnvelopeEncryption",
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "tracks": []
      }
    ]
  }
}

Creates a Streaming Locator with user defined content keys

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys?api-version=2022-08-01

{
  "properties": {
    "assetName": "ClimbingMountRainier",
    "streamingPolicyName": "secureStreamingPolicy",
    "streamingLocatorId": "90000000-0000-0000-0000-00000000000A",
    "contentKeys": [
      {
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "id": "60000000-0000-0000-0000-000000000001",
        "value": "1UqLohAfWsEGkULYxHjYZg=="
      },
      {
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "id": "60000000-0000-0000-0000-000000000004",
        "value": "4UqLohAfWsEGkULYxHjYZg=="
      },
      {
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "id": "60000000-0000-0000-0000-000000000007",
        "value": "7UqLohAfWsEGkULYxHjYZg=="
      }
    ]
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.7859424Z",
    "endTime": "9999-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "90000000-0000-0000-0000-00000000000a",
    "streamingPolicyName": "secureStreamingPolicy",
    "contentKeys": [
      {
        "id": "60000000-0000-0000-0000-000000000007",
        "type": "CommonEncryptionCbcs",
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "tracks": []
      },
      {
        "id": "60000000-0000-0000-0000-000000000004",
        "type": "CommonEncryptionCenc",
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "tracks": []
      },
      {
        "id": "60000000-0000-0000-0000-000000000001",
        "type": "EnvelopeEncryption",
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "tracks": []
      }
    ]
  }
}

정의

Name Description
createdByType

리소스를 만든 ID 유형입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

StreamingLocator

스트리밍 로케이터 리소스

StreamingLocatorContentKey

스트리밍 로케이터의 콘텐츠 키에 대한 클래스

StreamingLocatorContentKeyType

콘텐츠 키의 암호화 유형

systemData

리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다.

TrackPropertyCompareOperation

속성 조건 작업 추적

TrackPropertyCondition

하나의 트랙 속성 조건을 지정하는 클래스

TrackPropertyType

추적 속성 유형

TrackSelection

트랙을 선택하는 클래스

createdByType

리소스를 만든 ID 유형입니다.

Name 형식 Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

Error 개체.

StreamingLocator

스트리밍 로케이터 리소스

Name 형식 Description
id

string

리소스에 대한 정규화된 리소스 ID입니다. 예 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

리소스의 이름입니다.

properties.alternativeMediaId

string

이 스트리밍 로케이터의 대체 미디어 ID

properties.assetName

string

자산 이름

properties.contentKeys

StreamingLocatorContentKey[]

이 스트리밍 로케이터에서 사용하는 ContentKeys입니다.

properties.created

string

스트리밍 로케이터를 만든 시간입니다.

properties.defaultContentKeyPolicyName

string

이 스트리밍 로케이터에서 사용하는 ContentKeyPolicy의 기본 이름입니다.

properties.endTime

string

스트리밍 로케이터의 종료 시간입니다.

properties.filters

string[]

이 스트리밍 로케이터에 적용되는 자산 또는 계정 필터 목록

properties.startTime

string

스트리밍 로케이터의 시작 시간입니다.

properties.streamingLocatorId

string

스트리밍 로케이터의 StreamingLocatorId입니다.

properties.streamingPolicyName

string

이 스트리밍 로케이터에서 사용하는 스트리밍 정책의 이름입니다. 만든 스트리밍 정책의 이름을 지정하거나 미리 정의된 스트리밍 정책 중 하나를 사용합니다. 사용 가능한 미리 정의된 스트리밍 정책은 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' 및 'Predefined_MultiDrmStreaming'입니다.

systemData

systemData

이 리소스와 관련된 시스템 메타데이터입니다.

type

string

리소스 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"

StreamingLocatorContentKey

스트리밍 로케이터의 콘텐츠 키에 대한 클래스

Name 형식 Description
id

string

콘텐츠 키의 ID

labelReferenceInStreamingPolicy

string

스트리밍 정책에 지정된 콘텐츠 키의 레이블

policyName

string

콘텐츠 키에서 사용하는 ContentKeyPolicy

tracks

TrackSelection[]

이 콘텐츠 키를 사용하는 트랙

type

StreamingLocatorContentKeyType

콘텐츠 키의 암호화 유형

value

string

콘텐츠 키의 값

StreamingLocatorContentKeyType

콘텐츠 키의 암호화 유형

Name 형식 Description
CommonEncryptionCbcs

string

CBCS를 사용한 일반 암호화

CommonEncryptionCenc

string

CENC를 사용한 일반 암호화

EnvelopeEncryption

string

Envelope 암호화

systemData

리소스 만들기 및 마지막 수정과 관련된 메타데이터입니다.

Name 형식 Description
createdAt

string

UTC(리소스 만들기)의 타임스탬프입니다.

createdBy

string

리소스를 만든 ID입니다.

createdByType

createdByType

리소스를 만든 ID 유형입니다.

lastModifiedAt

string

리소스 마지막 수정의 타임스탬프(UTC)

lastModifiedBy

string

리소스를 마지막으로 수정한 ID입니다.

lastModifiedByType

createdByType

리소스를 마지막으로 수정한 ID 유형입니다.

TrackPropertyCompareOperation

속성 조건 작업 추적

Name 형식 Description
Equal

string

같음 연산

Unknown

string

알 수 없는 트랙 속성 비교 작업

TrackPropertyCondition

하나의 트랙 속성 조건을 지정하는 클래스

Name 형식 Description
operation

TrackPropertyCompareOperation

속성 조건 작업 추적

property

TrackPropertyType

추적 속성 유형

value

string

추적 속성 값

TrackPropertyType

추적 속성 유형

Name 형식 Description
FourCC

string

FourCC 추적

Unknown

string

알 수 없는 트랙 속성

TrackSelection

트랙을 선택하는 클래스

Name 형식 Description
trackSelections

TrackPropertyCondition[]

TrackSelections는 track을 지정할 수 있는 트랙 속성 조건 목록입니다.