Services - Create Or Update
创建或更新服务实例的元数据。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}?api-version=2022-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
包含服务实例的资源组的名称。 |
|
resource
|
path | True |
string minLength: 3maxLength: 24 |
服务实例的名称。 |
|
subscription
|
path | True |
string |
订阅标识符。 |
|
api-version
|
query | True |
string |
客户端 API 版本。 |
请求正文
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| kind | True |
服务的类型。 |
|
| location | True |
string |
资源位置。 |
| etag |
string |
与资源关联的 etag,在编辑资源时用于乐观并发。 |
|
| identity |
指示服务是否具有与之关联的托管标识的设置。 |
||
| properties |
服务的常见属性。 |
||
| tags |
object |
资源标记。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已更新 - 接受放置请求并正在更新现有资源;作将以异步方式完成。 |
|
| 201 Created |
创建 - 接受放置请求并创建了一个新资源;作将以异步方式完成。 |
|
| Other Status Codes |
DefaultErrorResponse |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
| Create or Update a service with all parameters |
| Create or Update a service with minimum parameters |
Create or Update a service with all parameters
示例请求
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1?api-version=2022-06-01
{
"location": "westus2",
"tags": {},
"kind": "fhir-R4",
"properties": {
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
},
{
"objectId": "5b307da8-43d4-492b-8b66-b0294ade872f"
}
],
"cosmosDbConfiguration": {
"offerThroughput": 1000,
"keyVaultKeyUri": "https://my-vault.vault.azure.net/keys/my-key"
},
"authenticationConfiguration": {
"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
"audience": "https://azurehealthcareapis.com",
"smartProxyEnabled": true
},
"corsConfiguration": {
"origins": [
"*"
],
"headers": [
"*"
],
"methods": [
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT"
],
"maxAge": 1440,
"allowCredentials": false
},
"exportConfiguration": {
"storageAccountName": "existingStorageAccount"
},
"privateEndpointConnections": [],
"publicNetworkAccess": "Disabled"
},
"identity": {
"type": "SystemAssigned"
}
}
示例响应
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1",
"name": "service1",
"location": "West US 2",
"type": "Microsoft.HealthcareApis/services",
"kind": "fhir-R4",
"etag": "etagvalue",
"tags": {},
"properties": {
"provisioningState": "Creating",
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
},
{
"objectId": "5b307da8-43d4-492b-8b66-b0294ade872f"
}
],
"cosmosDbConfiguration": {
"offerThroughput": 1000,
"keyVaultKeyUri": "https://my-vault.vault.azure.net/keys/my-key"
},
"authenticationConfiguration": {
"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
"audience": "https://azurehealthcareapis.com",
"smartProxyEnabled": true
},
"corsConfiguration": {
"origins": [
"*"
],
"headers": [
"*"
],
"methods": [
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT"
],
"maxAge": 1440,
"allowCredentials": false
},
"exportConfiguration": {
"storageAccountName": "existingStorageAccount"
},
"privateEndpointConnections": [],
"publicNetworkAccess": "Disabled"
},
"identity": {
"principalId": "03fe6ae0-952c-4e4b-954b-cc0364dd252e",
"tenantId": "72f988bf-86f1-41af-91ab-2d8cd011db47",
"type": "SystemAssigned"
}
}
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service1",
"name": "service1",
"location": "West US 2",
"type": "Microsoft.HealthcareApis/services",
"kind": "fhir-R4",
"etag": "etagvalue",
"tags": {},
"properties": {
"provisioningState": "Creating",
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
},
{
"objectId": "5b307da8-43d4-492b-8b66-b0294ade872f"
}
],
"cosmosDbConfiguration": {
"offerThroughput": 1000
},
"authenticationConfiguration": {
"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
"audience": "https://azurehealthcareapis.com",
"smartProxyEnabled": true
},
"corsConfiguration": {
"origins": [
"*"
],
"headers": [
"*"
],
"methods": [
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT"
],
"maxAge": 1440,
"allowCredentials": false
},
"exportConfiguration": {
"storageAccountName": "existingStorageAccount"
},
"privateEndpointConnections": [],
"publicNetworkAccess": "Disabled"
},
"identity": {
"principalId": "03fe6ae0-952c-4e4b-954b-cc0364dd252e",
"tenantId": "72f988bf-86f1-41af-91ab-2d8cd011db47",
"type": "SystemAssigned"
}
}
Create or Update a service with minimum parameters
示例请求
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service2?api-version=2022-06-01
{
"location": "westus2",
"tags": {},
"kind": "fhir-R4",
"properties": {
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
}
]
}
}
示例响应
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service2",
"name": "service2",
"type": "Microsoft.HealthcareApis/services",
"etag": "etagvalue",
"location": "westus2",
"kind": "fhir-R4",
"tags": {},
"properties": {
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
}
],
"cosmosDbConfiguration": {
"offerThroughput": 1000
},
"authenticationConfiguration": {
"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
"audience": "https://azurehealthcareapis.com",
"smartProxyEnabled": false
},
"corsConfiguration": {
"origins": [],
"headers": [],
"methods": [],
"maxAge": null,
"allowCredentials": false
},
"provisioningState": "Creating",
"privateEndpointConnections": [],
"publicNetworkAccess": "Disabled"
}
}
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HealthcareApis/services/service2",
"name": "service2",
"type": "Microsoft.HealthcareApis/services",
"etag": "etagvalue",
"location": "westus2",
"kind": "fhir-R4",
"tags": {},
"properties": {
"accessPolicies": [
{
"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"
}
],
"cosmosDbConfiguration": {
"offerThroughput": 1000,
"keyVaultKeyUri": null
},
"authenticationConfiguration": {
"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
"audience": "https://azurehealthcareapis.com",
"smartProxyEnabled": false
},
"corsConfiguration": {
"origins": [],
"headers": [],
"methods": [],
"maxAge": null,
"allowCredentials": false
},
"provisioningState": "Creating",
"privateEndpointConnections": [],
"publicNetworkAccess": "Disabled"
}
}
定义
| 名称 | 说明 |
|---|---|
|
created |
创建资源的标识的类型。 |
|
Error |
错误详细信息。 |
|
Error |
错误详细信息。 |
| Identity |
指示服务是否具有与之关联的托管标识的设置。 |
| kind |
服务的类型。 |
|
Managed |
指定的标识类型,当前允许 SystemAssigned 和 None。 |
|
Private |
专用终结点资源。 |
|
Private |
专用终结点连接资源。 |
|
Private |
当前预配状态。 |
|
Private |
专用终结点连接状态。 |
|
Private |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
|
provisioning |
预配状态。 |
|
Public |
启用专用终结点时,控制来自公用网络的数据平面流量的权限。 |
|
Service |
访问策略条目。 |
|
Service |
Azure 容器注册表配置信息 |
|
Service |
身份验证配置信息 |
|
Service |
服务实例的 CORS 配置设置。 |
|
Service |
支持服务的 Cosmos DB 数据库的设置。 |
|
Service |
导出作配置信息 |
|
Service |
导入作配置信息 |
|
Service |
打开容器计划 (OCI) 项目。 |
|
Services |
服务的说明。 |
|
Services |
服务实例的属性。 |
|
system |
与创建和上次修改资源相关的元数据。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorDetails
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误详细信息 |
ErrorDetailsInternal
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| message |
string |
错误消息。 |
| target |
string |
特定错误的目标。 |
Identity
指示服务是否具有与之关联的托管标识的设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| principalId |
string |
资源标识的主体 ID。 |
| tenantId |
string |
资源的租户 ID。 |
| type |
指定的标识类型,当前允许 SystemAssigned 和 None。 |
kind
服务的类型。
| 值 | 说明 |
|---|---|
| fhir | |
| fhir-Stu3 | |
| fhir-R4 |
ManagedServiceIdentityType
指定的标识类型,当前允许 SystemAssigned 和 None。
| 值 | 说明 |
|---|---|
| SystemAssigned | |
| None |
PrivateEndpoint
专用终结点资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
专用终结点的 ARM 标识符 |
PrivateEndpointConnection
专用终结点连接资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name |
string |
资源的名称 |
| properties.privateEndpoint |
专用终结点的资源。 |
|
| properties.privateLinkServiceConnectionState |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
|
| properties.provisioningState |
专用终结点连接资源的预配状态。 |
|
| type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
PrivateEndpointConnectionProvisioningState
当前预配状态。
| 值 | 说明 |
|---|---|
| Succeeded | |
| Creating | |
| Deleting | |
| Failed |
PrivateEndpointServiceConnectionStatus
专用终结点连接状态。
| 值 | 说明 |
|---|---|
| Pending | |
| Approved | |
| Rejected |
PrivateLinkServiceConnectionState
有关服务使用者与提供程序之间的连接状态的信息集合。
| 名称 | 类型 | 说明 |
|---|---|---|
| actionsRequired |
string |
一条消息,指示服务提供商上的更改是否需要对使用者进行任何更新。 |
| description |
string |
批准/拒绝连接的原因。 |
| status |
指示连接是否已被服务的所有者批准/拒绝/删除。 |
provisioningState
预配状态。
| 值 | 说明 |
|---|---|
| Deleting | |
| Succeeded | |
| Creating | |
| Accepted | |
| Verifying | |
| Updating | |
| Failed | |
| Canceled | |
| Deprovisioned | |
| Moving | |
| Suspended | |
| Warned | |
| SystemMaintenance |
PublicNetworkAccess
启用专用终结点时,控制来自公用网络的数据平面流量的权限。
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled |
ServiceAccessPolicyEntry
访问策略条目。
| 名称 | 类型 | 说明 |
|---|---|---|
| objectId |
string pattern: ^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$ |
允许访问 FHIR 服务的 Azure AD 对象 ID(用户或应用)。 |
ServiceAcrConfigurationInfo
Azure 容器注册表配置信息
| 名称 | 类型 | 说明 |
|---|---|---|
| loginServers |
string[] |
ACR 登录服务器的列表。 |
| ociArtifacts |
Open Container Initiative (OCI) 项目的列表。 |
ServiceAuthenticationConfigurationInfo
身份验证配置信息
| 名称 | 类型 | 说明 |
|---|---|---|
| audience |
string |
服务的受众 URL |
| authority |
string |
服务的颁发机构 URL |
| smartProxyEnabled |
boolean |
如果已启用 SMART on FHIR 代理 |
ServiceCorsConfigurationInfo
服务实例的 CORS 配置设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| allowCredentials |
boolean |
如果允许通过 CORS 提供凭据。 |
| headers |
string[] |
允许通过 CORS 的标头。 |
| maxAge |
integer minimum: 0maximum: 99999 |
允许通过 CORS 的最大期限。 |
| methods |
string[] |
允许通过 CORS 的方法。 |
| origins |
string[] pattern: ^(?:(?:(?:[hH][tT][tT][pP](?:[sS]|))\:\/\/(?:[a-zA-Z0-9-]+[.]?)+(?:\:[0-9]{1,5})?|[*]))$ |
允许通过 CORS 的源。 |
ServiceCosmosDbConfigurationInfo
支持服务的 Cosmos DB 数据库的设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| keyVaultKeyUri |
string |
支持数据库的客户管理的密钥的 URI。 |
| offerThroughput |
integer minimum: 400 |
备份数据库的预配吞吐量。 |
ServiceExportConfigurationInfo
导出作配置信息
| 名称 | 类型 | 说明 |
|---|---|---|
| storageAccountName |
string |
默认导出存储帐户的名称。 |
ServiceImportConfigurationInfo
导入作配置信息
| 名称 | 类型 | 说明 |
|---|---|---|
| enabled |
boolean |
如果启用导入作。 |
| initialImportMode |
boolean |
如果 FHIR 服务位于 InitialImportMode 中。 |
| integrationDataStore |
string |
默认集成存储帐户的名称。 |
ServiceOciArtifactEntry
打开容器计划 (OCI) 项目。
| 名称 | 类型 | 说明 |
|---|---|---|
| digest |
string |
项目摘要。 |
| imageName |
string |
项目名称。 |
| loginServer |
string |
Azure 容器注册表登录服务器。 |
ServicesDescription
服务的说明。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
string |
与资源关联的 etag,在编辑资源时用于乐观并发。 |
| id |
string |
资源标识符。 |
| identity |
指示服务是否具有与之关联的托管标识的设置。 |
|
| kind |
服务的类型。 |
|
| location |
string |
资源位置。 |
| name |
string pattern: ^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$ |
资源名称。 |
| properties |
服务的常见属性。 |
|
| systemData |
与创建和上次修改资源相关的元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 |
ServicesProperties
服务实例的属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| accessPolicies |
服务实例的访问策略。 |
|
| acrConfiguration |
用于转换服务实例数据作的 Azure 容器注册表设置。 |
|
| authenticationConfiguration |
服务实例的身份验证配置。 |
|
| corsConfiguration |
服务实例的 CORS 配置设置。 |
|
| cosmosDbConfiguration |
支持服务的 Cosmos DB 数据库的设置。 |
|
| exportConfiguration |
服务实例的导出作的设置。 |
|
| importConfiguration |
服务实例的导入作的设置。 |
|
| privateEndpointConnections |
为此资源设置的专用终结点连接列表。 |
|
| provisioningState |
预配状态。 |
|
| publicNetworkAccess |
启用专用终结点时,控制来自公用网络的数据平面流量的权限。 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |