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 |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[A-Za-z0-9-]+$ |
Azure Video Indexer hesabının adı. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız. |
subscription
|
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 |
İstenen medya türü |
|
projectId |
string |
Proje kimliği |
|
videoId |
string |
Video kimliği |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Azure Video Indexer hesabının erişim belirteci özellikleri başarıyla alındı. |
|
Other Status Codes |
İş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 access |
Generate restricted viewer access |
Generate restricted viewer access |
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 |
---|---|
Access |
Azure Video Indexer erişim belirteci. |
Error |
Hata tanımı. |
Error |
Hata yanıtı. |
Generate |
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 |
İç hata ayrıntıları. |
|
message |
string |
Hatanın açıklaması. |
ErrorResponse
Hata yanıtı.
Name | Tür | Description |
---|---|---|
error |
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 |
İstenen medya türü |
|
videoId |
string |
Video kimliği |
scope
İstenen medya türü
Değer | Description |
---|---|
Account | |
Project | |
Video |