Aracılığıyla paylaş


Generate - Restricted Viewer Access Token

Azure Video Indexer kısıtlanmış görüntüleyici erişim belirteci oluşturun.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}/generateRestrictedViewerAccessToken?api-version=2025-01-01

URI Parametreleri

Name İçinde Gerekli Tür Description
accountName
path True

string

minLength: 3
maxLength: 50
pattern: ^[A-Za-z0-9-]+$

Azure Video Indexer hesabının adı.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız.

subscriptionId
path True

string

minLength: 1

Hedef aboneliğin kimliği.

api-version
query True

string

minLength: 1

Bu işlem için kullanılacak API sürümü.

İstek Gövdesi

Name Gerekli Tür Description
scope True

scope

İstenen medya türü

projectId

string

Proje kimliği

videoId

string

Video kimliği

Yanıtlar

Name Tür Description
200 OK

AccessToken

Azure Video Indexer hesabının erişim belirteci özellikleri başarıyla alındı.

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Akışı

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

Generate restricted viewer accessToken for account
Generate restricted viewer accessToken for project
Generate restricted viewer accessToken for video

Generate restricted viewer accessToken for account

Örnek isteği

POST https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-azurevideoindexer/generateRestrictedViewerAccessToken?api-version=2025-01-01

{
  "scope": "Account"
}

Örnek yanıt

{
  "accessToken": "<jwt token of 1260 characters length>"
}

Generate restricted viewer accessToken for project

Örnek isteği

POST https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-azurevideoindexer/generateRestrictedViewerAccessToken?api-version=2025-01-01

{
  "scope": "Project",
  "projectId": "07ec9e38d4"
}

Örnek yanıt

{
  "accessToken": "<jwt token of 1260 characters length>"
}

Generate restricted viewer accessToken for video

Örnek isteği

POST https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-azurevideoindexer/generateRestrictedViewerAccessToken?api-version=2025-01-01

{
  "scope": "Video",
  "videoId": "07ec9e38d4"
}

Örnek yanıt

{
  "accessToken": "<jwt token of 1260 characters length>"
}

Tanımlar

Name Description
AccessToken

Azure Video Indexer erişim belirteci.

ErrorDefinition

Hata tanımı.

ErrorResponse

Hata yanıtı.

GenerateRestrictedViewerAccessTokenParameters

Kısıtlı görüntüleyici erişim belirteci oluşturma isteğinin parametreleri

scope

İstenen medya türü

AccessToken

Azure Video Indexer erişim belirteci.

Name Tür Description
accessToken

string

Erişim belirteci.

ErrorDefinition

Hata tanımı.

Name Tür Description
code

string

HTTP hata kodu için alt durum olarak hizmet veren hizmete özgü hata kodu.

details

ErrorDefinition[]

İç hata ayrıntıları.

message

string

Hatanın açıklaması.

ErrorResponse

Hata yanıtı.

Name Tür Description
error

ErrorDefinition

Hata ayrıntıları.

GenerateRestrictedViewerAccessTokenParameters

Kısıtlı görüntüleyici erişim belirteci oluşturma isteğinin parametreleri

Name Tür Description
projectId

string

Proje kimliği

scope

scope

İstenen medya türü

videoId

string

Video kimliği

scope

İstenen medya türü

Değer Description
Account
Project
Video