你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Network Connections - Update
部分更新网络连接
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}?api-version=2024-02-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
network
|
path | True |
string |
可应用于池的网络连接的名称。 正则表达式模式: |
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
location |
string |
资源所在的地理位置 |
properties.domainName |
string |
Active Directory 域名 |
properties.domainPassword |
string |
用于加入域的帐户的密码 |
properties.domainUsername |
string |
Active Directory 帐户的用户名 (有权在 Active Directory 中创建计算机对象的用户或服务帐户) 。 必需格式: admin@contoso.com。 |
properties.organizationUnit |
string |
Active Directory 域组织单位 (OU) |
properties.subnetId |
string |
要附加到虚拟机的子网 |
tags |
object |
资源标记。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
202 Accepted |
已接受。 操作将以异步方式完成。 标头 Location: string |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
NetworkConnections_Update
示例请求
PATCH https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkConnections/uswest3network?api-version=2024-02-01
{
"properties": {
"domainPassword": "New Password value for user"
}
}
示例响应
{
"id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/networkconnections/uswest3network",
"name": "uswest3network",
"type": "Microsoft.DevCenter/networkconnections",
"properties": {
"domainJoinType": "HybridAzureADJoin",
"domainName": "mydomaincontroller.local",
"domainUsername": "testuser@mydomaincontroller.local",
"networkingResourceGroupName": "NetworkInterfaces",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default",
"provisioningState": "Succeeded"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-11-18T18:00:36.993Z",
"lastModifiedBy": "user1",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-11-18T18:30:36.993Z"
},
"location": "centralus"
}
Azure-AsyncOperation: https://management.azure.com/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01
Location: https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2024-02-01
定义
名称 | 说明 |
---|---|
created |
创建资源的标识类型。 |
Domain |
Active Directory 联接类型 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Health |
运行状况检查状态值 |
Network |
与网络相关的设置 |
Network |
部分更新的网络连接属性。 不会更改更新请求中未提供的属性。 |
Provisioning |
资源的预配状态。 |
system |
与资源的创建和上次修改相关的元数据。 |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DomainJoinType
Active Directory 联接类型
名称 | 类型 | 说明 |
---|---|---|
AzureADJoin |
string |
|
HybridAzureADJoin |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
HealthCheckStatus
运行状况检查状态值
名称 | 类型 | 说明 |
---|---|---|
Failed |
string |
|
Passed |
string |
|
Pending |
string |
|
Running |
string |
|
Unknown |
string |
|
Warning |
string |
NetworkConnection
与网络相关的设置
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
资源所在的地理位置 |
name |
string |
资源的名称 |
properties.domainJoinType |
AAD 联接类型。 |
|
properties.domainName |
string |
Active Directory 域名 |
properties.domainPassword |
string |
用于加入域的帐户的密码 |
properties.domainUsername |
string |
Active Directory 帐户的用户名 (有权在 Active Directory 中创建计算机对象的用户或服务帐户) 。 必需格式: admin@contoso.com。 |
properties.healthCheckStatus |
网络连接的总体运行状况。 运行状况检查在创建、更新时运行,并定期运行以验证网络连接。 |
|
properties.networkingResourceGroupName |
string |
要在其中放置 NIC 的资源组的名称。 |
properties.organizationUnit |
string |
Active Directory 域组织单位 (OU) |
properties.provisioningState |
资源的预配状态。 |
|
properties.subnetId |
string |
要附加到虚拟机的子网 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
tags |
object |
资源标记。 |
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
NetworkConnectionUpdate
部分更新的网络连接属性。 不会更改更新请求中未提供的属性。
名称 | 类型 | 说明 |
---|---|---|
location |
string |
资源所在的地理位置 |
properties.domainName |
string |
Active Directory 域名 |
properties.domainPassword |
string |
用于加入域的帐户的密码 |
properties.domainUsername |
string |
Active Directory 帐户的用户名 (有权在 Active Directory 中创建计算机对象的用户或服务帐户) 。 必需格式: admin@contoso.com。 |
properties.organizationUnit |
string |
Active Directory 域组织单位 (OU) |
properties.subnetId |
string |
要附加到虚拟机的子网 |
tags |
object |
资源标记。 |
ProvisioningState
资源的预配状态。
名称 | 类型 | 说明 |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Created |
string |
|
Creating |
string |
|
Deleted |
string |
|
Deleting |
string |
|
Failed |
string |
|
MovingResources |
string |
|
NotSpecified |
string |
|
RolloutInProgress |
string |
|
Running |
string |
|
StorageProvisioningFailed |
string |
|
Succeeded |
string |
|
TransientFailure |
string |
|
Updated |
string |
|
Updating |
string |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |