Accounts - Create Or Update
创建或更新地图帐户。 Maps 帐户包含允许访问地图 REST API 的密钥。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}?api-version=2023-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
account
|
path | True |
string |
地图帐户的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求正文
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| location | True |
string |
资源所在的地理位置 |
| sku | True |
此帐户的 SKU。 |
|
| identity |
托管服务标识(系统分配和/或用户分配的标识) |
||
| kind |
获取或设置 Kind 属性。 |
||
| properties |
映射帐户属性。 |
||
| 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 | 模拟用户帐户 |
示例
| Create Account with Encryption |
| Create Account with Managed Identities |
| Create Gen1 Account |
| Create Gen2 Account |
Create Account with Encryption
示例请求
PUT https://management.azure.com/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount?api-version=2023-06-01
{
"location": "eastus",
"sku": {
"name": "G2"
},
"kind": "Gen2",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {}
}
},
"properties": {
"encryption": {
"customerManagedKeyEncryption": {
"keyEncryptionKeyIdentity": {
"identityType": "userAssignedIdentity",
"userAssignedIdentityResourceId": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"
},
"keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"
}
}
}
}
示例响应
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"identity": {
"type": "UserAssigned",
"principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef",
"tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {
"clientId": "b602d315-01b5-4265-af23-859edc4f2431",
"principalId": "ac287332-364a-41d9-a567-9ad86b9fc299"
}
}
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"encryption": {
"customerManagedKeyEncryption": {
"keyEncryptionKeyIdentity": {
"identityType": "userAssignedIdentity",
"userAssignedIdentityResourceId": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"
},
"keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"
}
}
}
}
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"identity": {
"type": "UserAssigned",
"principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef",
"tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {
"clientId": "b602d315-01b5-4265-af23-859edc4f2431",
"principalId": "ac287332-364a-41d9-a567-9ad86b9fc299"
}
}
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Updating",
"encryption": {
"customerManagedKeyEncryption": {
"keyEncryptionKeyIdentity": {
"identityType": "userAssignedIdentity",
"userAssignedIdentityResourceId": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"
},
"keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"
}
}
}
}
Create Account with Managed Identities
示例请求
PUT https://management.azure.com/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount?api-version=2023-06-01
{
"location": "eastus",
"sku": {
"name": "G2"
},
"kind": "Gen2",
"tags": {
"test": "true"
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {}
}
},
"properties": {
"disableLocalAuth": false,
"linkedResources": [
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBatchStorageAccount"
},
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBlobDataSource"
}
]
}
}
示例响应
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef",
"tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {
"clientId": "b602d315-01b5-4265-af23-859edc4f2431",
"principalId": "ac287332-364a-41d9-a567-9ad86b9fc299"
}
}
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": true,
"linkedResources": [
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBatchStorageAccount"
},
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBlobDataSource"
}
]
}
}
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"principalId": "77f72dac-e0aa-484e-9acd-e5e7075310ef",
"tenantId": "06006684-60c1-4954-a20c-ffd8fbea7276",
"userAssignedIdentities": {
"/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName": {
"clientId": "b602d315-01b5-4265-af23-859edc4f2431",
"principalId": "ac287332-364a-41d9-a567-9ad86b9fc299"
}
}
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": true,
"linkedResources": [
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBatchStorageAccount"
},
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/mystorageacc",
"uniqueName": "myBlobDataSource"
}
]
}
}
Create Gen1 Account
示例请求
PUT https://management.azure.com/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount?api-version=2023-06-01
{
"location": "eastus",
"sku": {
"name": "S0"
},
"kind": "Gen1",
"tags": {
"test": "true"
},
"properties": {
"disableLocalAuth": false,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
示例响应
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen1",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "S0",
"tier": "Standard"
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": false,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen1",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "S0",
"tier": "Standard"
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": false,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
Create Gen2 Account
示例请求
PUT https://management.azure.com/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount?api-version=2023-06-01
{
"location": "eastus",
"sku": {
"name": "G2"
},
"kind": "Gen2",
"tags": {
"test": "true"
},
"properties": {
"disableLocalAuth": true,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
示例响应
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": true,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
{
"id": "/subscriptions/21a9967a-e8a9-4656-a70b-96ff1c4d05a0/resourceGroups/myResourceGroup/providers/Microsoft.Maps/accounts/myMapsAccount",
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"kind": "Gen2",
"location": "eastus",
"tags": {
"test": "true"
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-07-02T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-07-02T01:01:01.1075056Z"
},
"sku": {
"name": "G2",
"tier": "Standard"
},
"properties": {
"uniqueId": "b2e763e6-d6f3-4858-9e2b-7cf8df85c593",
"provisioningState": "Succeeded",
"disableLocalAuth": true,
"cors": {
"corsRules": [
{
"allowedOrigins": [
"http://www.contoso.com",
"http://www.fabrikam.com"
]
}
]
}
}
}
定义
| 名称 | 说明 |
|---|---|
|
Cors |
为映射帐户指定 CORS 规则。 |
|
Cors |
设置 CORS 规则。 请求中最多可以包含五个 CorsRule 元素。 |
|
created |
创建资源的标识的类型。 |
|
customer |
资源的所有客户管理的密钥加密属性。 |
| encryption |
(可选)不建议在资源定义中包含。 仅在可能禁用平台(AKA 基础结构)加密的情况下才需要。 Azure SQL TDE 就是一个示例。 值处于启用和禁用状态。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Identity |
值可以是 systemAssignedIdentity 或 userAssignedIdentity |
|
Infrastructure |
值处于启用和禁用状态。 |
|
Key |
客户管理的密钥设置的所有标识配置,用于定义应用于向 Key Vault 进行身份验证的标识。 |
| kind |
获取或设置 Kind 属性。 |
|
Linked |
链接资源是对 Azure 订阅中部署的资源的引用,请将链接资源 |
|
Managed |
托管服务标识(系统分配和/或用户分配的标识) |
|
Managed |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
|
Maps |
表示对一组 Maps REST API 的访问权限的 Azure 资源。 |
|
Maps |
其他映射帐户属性 |
| name |
SKU 的名称(如 S0)。 |
| Sku |
地图帐户的 SKU。 |
|
system |
与创建和上次修改资源相关的元数据。 |
|
User |
用户分配的标识属性 |
CorsRule
为映射帐户指定 CORS 规则。
| 名称 | 类型 | 说明 |
|---|---|---|
| allowedOrigins |
string[] |
如果存在 CorsRule 元素,则为必需。 将允许通过 CORS 或“*”允许所有域的源域列表 |
CorsRules
设置 CORS 规则。 请求中最多可以包含五个 CorsRule 元素。
| 名称 | 类型 | 说明 |
|---|---|---|
| corsRules |
Cors |
CORS 规则的列表。 请求中最多可以包含五个 CorsRule 元素。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
customerManagedKeyEncryption
资源的所有客户管理的密钥加密属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| keyEncryptionKeyIdentity |
客户管理的密钥设置的所有标识配置,用于定义应用于向 Key Vault 进行身份验证的标识。 |
|
| keyEncryptionKeyUrl |
string |
密钥加密密钥 URL、版本控制或非版本控制。 例如: |
encryption
(可选)不建议在资源定义中包含。 仅在可能禁用平台(AKA 基础结构)加密的情况下才需要。 Azure SQL TDE 就是一个示例。 值处于启用和禁用状态。
| 名称 | 类型 | 说明 |
|---|---|---|
| customerManagedKeyEncryption |
资源的所有客户管理的密钥加密属性。 |
|
| infrastructureEncryption |
值处于启用和禁用状态。 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
IdentityType
值可以是 systemAssignedIdentity 或 userAssignedIdentity
| 值 | 说明 |
|---|---|
| systemAssignedIdentity | |
| userAssignedIdentity | |
| delegatedResourceIdentity |
InfrastructureEncryption
值处于启用和禁用状态。
| 值 | 说明 |
|---|---|
| enabled | |
| disabled |
KeyEncryptionKeyIdentity
客户管理的密钥设置的所有标识配置,用于定义应用于向 Key Vault 进行身份验证的标识。
| 名称 | 类型 | 说明 |
|---|---|---|
| delegatedIdentityClientId |
string (uuid) |
用于访问密钥加密密钥 URL 的委托标识。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<资源组>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 与 identityType systemAssignedIdentity 和 userAssignedIdentity 互斥 - 仅供内部使用。 |
| identityType |
值可以是 systemAssignedIdentity 或 userAssignedIdentity |
|
| userAssignedIdentityResourceId |
string (arm-id) |
用户分配的标识用于访问密钥加密密钥 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<资源组>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 与 identityType systemAssignedIdentity 和 delegatedResourceIdentity 互斥。 |
kind
获取或设置 Kind 属性。
| 值 | 说明 |
|---|---|
| Gen1 | |
| Gen2 |
LinkedResource
链接资源是对 Azure 订阅中部署的资源的引用,请将链接资源 uniqueName 值添加为 Azure Maps 地理空间 REST API作的可选参数。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}”。 |
| uniqueName |
string |
提供的名称,用于唯一标识链接的资源。 |
ManagedServiceIdentity
托管服务标识(系统分配和/或用户分配的标识)
| 名称 | 类型 | 说明 |
|---|---|---|
| principalId |
string (uuid) |
系统分配标识的服务主体 ID。 此属性仅针对系统分配的标识提供。 |
| tenantId |
string (uuid) |
系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。 |
| type |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
|
| userAssignedIdentities |
<string,
User |
User-Assigned 标识 |
ManagedServiceIdentityType
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。
| 值 | 说明 |
|---|---|
| None | |
| SystemAssigned | |
| UserAssigned | |
| SystemAssigned, UserAssigned |
MapsAccount
表示对一组 Maps REST API 的访问权限的 Azure 资源。
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
| identity |
托管服务标识(系统分配和/或用户分配的标识) |
||
| kind | Gen1 |
获取或设置 Kind 属性。 |
|
| location |
string |
资源所在的地理位置 |
|
| name |
string |
资源的名称 |
|
| properties |
映射帐户属性。 |
||
| sku |
此帐户的 SKU。 |
||
| systemData |
与创建和上次修改资源相关的元数据。 |
||
| tags |
object |
资源标记。 |
|
| type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
MapsAccountProperties
其他映射帐户属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| cors |
指定 Blob 服务的 CORS 规则。 请求中最多可以包含五个 CorsRule 元素。 如果请求正文中不包含 CorsRule 元素,将删除所有 CORS 规则,并且将禁用 Blob 服务的 CORS。 |
||
| disableLocalAuth |
boolean |
False |
允许在 Azure Policy 上切换功能禁用 Azure Maps 本地身份验证支持。 这将从任何用法中禁用共享密钥和共享访问签名令牌身份验证。 |
| encryption |
(可选)不建议在资源定义中包含。 仅在可能禁用平台(AKA 基础结构)加密的情况下才需要。 Azure SQL TDE 就是一个示例。 值处于启用和禁用状态。 |
||
| linkedResources |
映射到映射帐户的关联资源的数组。 数组中的链接资源不能单独更新,必须一起更新数组中的所有链接资源。 这些资源可用于 Azure Maps REST API 上的作。 访问由对这些资源的映射帐户托管标识(s)权限控制。 |
||
| provisioningState |
string |
映射帐户资源的预配状态,帐户更新只能在终端状态上执行。 终端状态: |
|
| uniqueId |
string |
地图帐户的唯一标识符 |
name
SKU 的名称(如 S0)。
| 值 | 说明 |
|---|---|
| S0 | |
| S1 | |
| G2 |
Sku
地图帐户的 SKU。
| 名称 | 类型 | 说明 |
|---|---|---|
| name |
SKU 的名称(如 S0)。 |
|
| tier |
string |
获取 SKU 层。 这基于 SKU 名称。 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |
UserAssignedIdentity
用户分配的标识属性
| 名称 | 类型 | 说明 |
|---|---|---|
| clientId |
string (uuid) |
分配的标识的客户端 ID。 |
| principalId |
string (uuid) |
已分配标识的主体 ID。 |