你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
account
|
path | True |
string |
Azure 视频索引器帐户的名称。 正则表达式模式: |
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
location | True |
string |
资源所在的地理位置 |
identity |
托管服务标识 (系统分配的标识和/或用户分配的标识) |
||
properties.accountId |
string |
帐户的数据平面 ID。 仅当连接现有经典帐户时,才能设置此帐户 |
|
properties.storageServices |
存储服务详细信息 |
||
tags |
object |
资源标记。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功更新资源。 |
|
201 Created |
已成功创建资源。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
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"
}
}
}
}
定义
名称 | 说明 |
---|---|
Account |
Azure 视频索引器帐户。 |
created |
创建资源的标识类型。 |
Error |
错误定义。 |
Error |
错误响应。 |
Managed |
托管服务标识 (系统分配的标识和/或用户分配的标识) |
Managed |
托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。 |
provisioning |
获取调用操作时帐户的状态。 |
Storage |
存储服务详细信息 |
system |
与资源的创建和上次修改相关的元数据。 |
User |
用户分配的标识属性 |
Account
Azure 视频索引器帐户。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
identity |
托管服务标识 (系统分配的标识和/或用户分配的标识) |
||
location |
string |
资源所在的地理位置 |
|
name |
string |
资源的名称 |
|
properties.accountId |
string |
00000000-0000-0000-0000-000000000000 |
帐户的数据平面 ID。 仅当连接现有经典帐户时,才能设置此帐户 |
properties.accountName |
string |
帐户的名称 |
|
properties.provisioningState |
获取调用操作时帐户的状态。 |
||
properties.storageServices |
存储服务详细信息 |
||
properties.tenantId |
string |
帐户的租户 ID |
|
properties.totalSecondsIndexed |
integer |
一个整数,表示已在帐户上编制索引的总秒数 |
|
systemData |
与此资源相关的系统元数据。 |
||
tags |
object |
资源标记。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorDefinition
错误定义。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务特定的错误代码,用作 HTTP 错误代码的子状态。 |
details |
内部错误详细信息。 |
|
message |
string |
错误的说明。 |
ErrorResponse
错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误详细信息。 |
ManagedServiceIdentity
托管服务标识 (系统分配的标识和/或用户分配的标识)
名称 | 类型 | 说明 |
---|---|---|
principalId |
string |
系统分配的标识的服务主体 ID。 仅为系统分配的标识提供此属性。 |
tenantId |
string |
系统分配的标识的租户 ID。 仅为系统分配的标识提供此属性。 |
type |
托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 标识 |
ManagedServiceIdentityType
托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。
名称 | 类型 | 说明 |
---|---|---|
None |
string |
|
SystemAssigned |
string |
|
SystemAssigned,UserAssigned |
string |
|
UserAssigned |
string |
provisioningState
获取调用操作时帐户的状态。
名称 | 类型 | 说明 |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Deleting |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
StorageServicesForPutRequest
存储服务详细信息
名称 | 类型 | 说明 |
---|---|---|
resourceId |
string |
存储服务资源 ID |
userAssignedIdentity |
string |
要用于授予权限的用户分配的标识 |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源的创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |
UserAssignedIdentity
用户分配的标识属性
名称 | 类型 | 说明 |
---|---|---|
clientId |
string |
分配的标识的客户端 ID。 |
principalId |
string |
已分配标识的主体 ID。 |