Aracılığıyla paylaş


Accounts - Create Or Update

Azure Video Indexer hesabı oluşturur veya güncelleştirir.

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

URI Parametreleri

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

string

Azure Video Indexer hesabının adı.

Regex pattern: ^[A-Za-z0-9-]+$

resourceGroupName
path True

string

Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

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

İstek Gövdesi

Name Gerekli Tür Description
location True

string

Kaynağın bulunduğu coğrafi konum

identity

ManagedServiceIdentity

Yönetilen hizmet kimliği (sistem tarafından atanan ve/veya kullanıcı tarafından atanan kimlikler)

properties.accountId

string

Hesabın veri düzlemi kimliği. Bu ayar yalnızca mevcut bir klasik hesaba bağlanırken ayarlanabilir

properties.storageServices

StorageServicesForPutRequest

Depolama hizmetleri ayrıntıları

tags

object

Kaynak etiketleri.

Yanıtlar

Name Tür Description
200 OK

Account

Kaynak başarıyla güncelleştirildi.

201 Created

Account

Kaynak başarıyla oluşturuldu.

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 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

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

Örnekler

Connect classic account to arm account using system assigned Mi
Connect classic account to arm account using user assigned Mi
Create or update account with system assigned Mi
Create or update account with user assigned Mi

Connect classic account to arm account using system assigned Mi

Sample Request

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"
  }
}

Sample Response

{
  "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

Sample Request

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": {}
    }
  }
}

Sample Response

{
  "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

Sample Request

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"
  }
}

Sample Response

{
  "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

Sample Request

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": {}
    }
  }
}

Sample Response

{
  "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"
      }
    }
  }
}

Tanımlar

Name Description
Account

Azure Video Indexer hesabı.

createdByType

Kaynağı oluşturan kimliğin türü.

ErrorDefinition

Hata tanımı.

ErrorResponse

Hata yanıtı.

ManagedServiceIdentity

Yönetilen hizmet kimliği (sistem tarafından atanan ve/veya kullanıcı tarafından atanan kimlikler)

ManagedServiceIdentityType

Yönetilen hizmet kimliği türü (hem SystemAssigned hem de UserAssigned türlerine izin verilir).

provisioningState

İşlem çağrıldığında hesabın durumunu alır.

StorageServicesForPutRequest

Depolama hizmetleri ayrıntıları

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

UserAssignedIdentity

Kullanıcı tarafından atanan kimlik özellikleri

Account

Azure Video Indexer hesabı.

Name Tür Varsayılan değer Description
id

string

Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

ManagedServiceIdentity

Yönetilen hizmet kimliği (sistem tarafından atanan ve/veya kullanıcı tarafından atanan kimlikler)

location

string

Kaynağın bulunduğu coğrafi konum

name

string

Kaynağın adı

properties.accountId

string

00000000-0000-0000-0000-000000000000

Hesabın veri düzlemi kimliği. Bu ayar yalnızca mevcut bir klasik hesaba bağlanırken ayarlanabilir

properties.accountName

string

Hesabın adı

properties.provisioningState

provisioningState

İşlem çağrıldığında hesabın durumunu alır.

properties.storageServices

StorageServicesForPutRequest

Depolama hizmetleri ayrıntıları

properties.tenantId

string

Hesabın kiracı kimliği

properties.totalSecondsIndexed

integer

Hesapta dizine alınan toplam saniyeyi temsil eden bir tamsayı

systemData

systemData

Bu kaynakla ilgili sistem meta verileri.

tags

object

Kaynak etiketleri.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"

createdByType

Kaynağı oluşturan kimliğin türü.

Name Tür Description
Application

string

Key

string

ManagedIdentity

string

User

string

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ı.

ManagedServiceIdentity

Yönetilen hizmet kimliği (sistem tarafından atanan ve/veya kullanıcı tarafından atanan kimlikler)

Name Tür Description
principalId

string

Sistem tarafından atanan kimliğin hizmet sorumlusu kimliği. Bu özellik yalnızca sistem tarafından atanan kimlik için sağlanacaktır.

tenantId

string

Sistem tarafından atanan kimliğin kiracı kimliği. Bu özellik yalnızca sistem tarafından atanan kimlik için sağlanacaktır.

type

ManagedServiceIdentityType

Yönetilen hizmet kimliği türü (hem SystemAssigned hem de UserAssigned türlerine izin verilir).

userAssignedIdentities

<string,  UserAssignedIdentity>

kimlikleri User-Assigned
Kaynakla ilişkilendirilmiş kullanıcı tarafından atanan kimlik kümesi. userAssignedIdentities sözlük anahtarları şu formda ARM kaynak kimlikleri olacaktır: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. Sözlük değerleri, isteklerdeki boş nesneler ({}) olabilir.

ManagedServiceIdentityType

Yönetilen hizmet kimliği türü (hem SystemAssigned hem de UserAssigned türlerine izin verilir).

Name Tür Description
None

string

SystemAssigned

string

SystemAssigned,UserAssigned

string

UserAssigned

string

provisioningState

İşlem çağrıldığında hesabın durumunu alır.

Name Tür Description
Accepted

string

Canceled

string

Deleting

string

Failed

string

Provisioning

string

Succeeded

string

StorageServicesForPutRequest

Depolama hizmetleri ayrıntıları

Name Tür Description
resourceId

string

Depolama hizmetleri kaynak kimliği

userAssignedIdentity

string

İzinleri vermek için kullanılacak kullanıcı tarafından atanan kimlik

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimliğin türü.

UserAssignedIdentity

Kullanıcı tarafından atanan kimlik özellikleri

Name Tür Description
clientId

string

Atanan kimliğin istemci kimliği.

principalId

string

Atanan kimliğin asıl kimliği.