你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Network Experiment Profiles - Update

按 NetworkExperimentProfile 名称汇报 NetworkExperimentProfiles

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}?api-version=2019-11-01

URI 参数

名称 必需 类型 说明
profileName
path True

string

与租户和合作伙伴关联的配置文件标识符

Regex pattern: ^[a-zA-Z0-9_\-\(\)\.]*[^\.]$

resourceGroupName
path True

string

Azure 订阅中的资源组的名称。

Regex pattern: ^[a-zA-Z0-9_\-\(\)\.]*[^\.]$

subscriptionId
path True

string

可以唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。

api-version
query True

string

客户端 API 版本。

请求正文

名称 类型 说明
properties.enabledState

state

配置文件的启用状态

tags

object

资源标记。

响应

名称 类型 说明
200 OK

Profile

没问题。 成功的操作

202 Accepted

Profile

已接受。 已接受请求进行处理,操作将以异步方式完成。

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Updates an Experiment

Sample Request

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile?api-version=2019-11-01

{
  "properties": {
    "enabledState": "Enabled"
  },
  "tags": {
    "key1": "value1",
    "key2": "value2"
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
  "name": "MyProfile",
  "type": "Microsoft.Network/NetworkExperimentprofiles",
  "tags": {
    "key1": "value1",
    "key2": "value2"
  },
  "location": "WestUs",
  "properties": {
    "enabledState": "Enabled",
    "resourceState": "Creating"
  }
}
{
  "id": "/subscriptions/subid/resourceGroups/MyResourceGroup/providers/Microsoft.Network/NetworkExperimentProfiles/MyProfile",
  "name": "MyProfile",
  "type": "Microsoft.Network/NetworkExperimentprofiles",
  "tags": {
    "key1": "value1",
    "key2": "value2"
  },
  "location": "WestUs",
  "properties": {
    "enabledState": "Enabled",
    "resourceState": "Creating"
  }
}

定义

名称 说明
ErrorResponse

错误响应指示 Front Door 服务无法处理传入请求。 错误消息中提供了原因。

NetworkExperimentResourceState

定义服务器端资源状态

Profile

定义网络试验配置文件和试验列表

ProfileUpdateModel

定义配置文件的可修改属性

state

试验的状态

ErrorResponse

错误响应指示 Front Door 服务无法处理传入请求。 错误消息中提供了原因。

名称 类型 说明
code

string

错误代码。

message

string

指示操作失败原因的错误消息。

NetworkExperimentResourceState

定义服务器端资源状态

名称 类型 说明
Creating

string

Deleting

string

Disabled

string

Disabling

string

Enabled

string

Enabling

string

Profile

定义网络试验配置文件和试验列表

名称 类型 说明
etag

string

获取一个唯一的只读字符串,该字符串在资源更新时会更改。

id

string

资源 ID。

location

string

资源位置。

name

string

配置文件的名称

properties.enabledState

state

试验的状态

properties.resourceState

NetworkExperimentResourceState

资源状态。

tags

object

资源标记。

type

string

资源类型。

ProfileUpdateModel

定义配置文件的可修改属性

名称 类型 说明
properties.enabledState

state

配置文件的启用状态

tags

object

资源标记。

state

试验的状态

名称 类型 说明
Disabled

string

Enabled

string