Accounts - Create Or Update
建立或更新 Azure 影片索引器帳戶。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}?api-version=2024-01-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
account
|
path | True |
string |
Azure 影片索引器帳戶的名稱。 Regex 模式: |
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
要求本文
名稱 | 必要 | 類型 | Description |
---|---|---|---|
location | True |
string |
資源所在的地理位置 |
identity |
受控服務識別 (系統指派和/或使用者指派的身分識別) |
||
properties.accountId |
string |
帳戶的數據平面標識碼。 只有在連接現有的傳統帳戶時,才能設定此設定 |
|
properties.storageServices |
記憶體服務詳細數據 |
||
tags |
object |
資源標籤。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
資源已成功更新。 |
|
201 Created |
已成功建立資源。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Connect classic account to arm account using system assigned Mi
範例要求
PUT https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer?api-version=2024-01-01
{
"location": "NorthEurope",
"properties": {
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
}
},
"identity": {
"type": "SystemAssigned"
}
}
範例回覆
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
}
}
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
}
}
Connect classic account to arm account using user assigned Mi
範例要求
PUT https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer?api-version=2024-01-01
{
"location": "NorthEurope",
"properties": {
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
}
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
}
}
}
範例回覆
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
}
}
}
}
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
}
}
}
}
Create or update account with system assigned Mi
範例要求
PUT https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer?api-version=2024-01-01
{
"location": "NorthEurope",
"properties": {
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
}
},
"identity": {
"type": "SystemAssigned"
}
}
範例回覆
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
}
}
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"principalId": "43a83441-c17f-4e06-84a3-2eaf86668da7",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
}
}
Create or update account with user assigned Mi
範例要求
PUT https://management.azure.com/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer?api-version=2024-01-01
{
"location": "NorthEurope",
"properties": {
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
}
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {}
}
}
}
範例回覆
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
}
}
}
}
{
"id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer",
"name": "contosto-videoanalyzer",
"location": "NorthEurope",
"type": "Microsoft.VideoIndexer/accounts",
"tags": {},
"properties": {
"tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e",
"accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
"accountName": "contosto-videoanalyzer",
"storageServices": {
"resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
"userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi"
},
"totalSecondsIndexed": 0,
"provisioningState": "Succeeded"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {
"principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13",
"clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7"
}
}
}
}
定義
名稱 | Description |
---|---|
Account |
Azure 影片索引器帳戶。 |
created |
建立資源的身分識別類型。 |
Error |
錯誤定義。 |
Error |
錯誤回應。 |
Managed |
受控服務識別 (系統指派和/或使用者指派的身分識別) |
Managed |
(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。 |
provisioning |
取得呼叫作業時帳戶的狀態。 |
Storage |
記憶體服務詳細數據 |
system |
與建立和上次修改資源相關的元數據。 |
User |
使用者指派的身分識別屬性 |
Account
Azure 影片索引器帳戶。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
id |
string |
資源的完整資源識別碼。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
identity |
受控服務識別 (系統指派和/或使用者指派的身分識別) |
||
location |
string |
資源所在的地理位置 |
|
name |
string |
資源的名稱 |
|
properties.accountId |
string |
00000000-0000-0000-0000-000000000000 |
帳戶的數據平面標識碼。 只有在連接現有的傳統帳戶時,才能設定此設定 |
properties.accountName |
string |
帳戶的名稱 |
|
properties.provisioningState |
取得呼叫作業時帳戶的狀態。 |
||
properties.storageServices |
記憶體服務詳細數據 |
||
properties.tenantId |
string |
帳戶的租用戶標識碼 |
|
properties.totalSecondsIndexed |
integer |
整數,表示在帳戶上編製索引的總秒數 |
|
systemData |
與此資源相關的系統元數據。 |
||
tags |
object |
資源標籤。 |
|
type |
string |
資源類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
createdByType
建立資源的身分識別類型。
名稱 | 類型 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorDefinition
錯誤定義。
名稱 | 類型 | Description |
---|---|---|
code |
string |
服務特定的錯誤碼,可作為 HTTP 錯誤碼的子狀態。 |
details |
內部錯誤詳細數據。 |
|
message |
string |
錯誤的描述。 |
ErrorResponse
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤詳細資料。 |
ManagedServiceIdentity
受控服務識別 (系統指派和/或使用者指派的身分識別)
名稱 | 類型 | Description |
---|---|---|
principalId |
string |
系統指派身分識別的服務主體標識碼。 此屬性只會針對系統指派的身分識別提供。 |
tenantId |
string |
系統指派身分識別的租用戶標識碼。 此屬性只會針對系統指派的身分識別提供。 |
type |
(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 身分識別 |
ManagedServiceIdentityType
(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。
名稱 | 類型 | Description |
---|---|---|
None |
string |
|
SystemAssigned |
string |
|
SystemAssigned,UserAssigned |
string |
|
UserAssigned |
string |
provisioningState
取得呼叫作業時帳戶的狀態。
名稱 | 類型 | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Deleting |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
StorageServicesForPutRequest
記憶體服務詳細數據
名稱 | 類型 | Description |
---|---|---|
resourceId |
string |
記憶體服務資源標識碼 |
userAssignedIdentity |
string |
要用來授與許可權的使用者指派身分識別 |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string |
資源建立的時間戳 (UTC) 。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
UserAssignedIdentity
使用者指派的身分識別屬性
名稱 | 類型 | Description |
---|---|---|
clientId |
string |
指派之身分識別的用戶端標識碼。 |
principalId |
string |
指派之身分識別的主體標識碼。 |