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

az networkfabric interface

Note

This reference is part of the managednetworkfabric extension for the Azure CLI (version 2.70.0 or higher). 该扩展将在首次运行 az networkfabric interface 命令时自动安装。 Learn more about extensions.

管理网络接口资源。

命令

名称 说明 类型 Status
az networkfabric interface list

列出提供资源组中的所有网络接口。

Extension GA
az networkfabric interface show

显示提供的网络接口资源的详细信息。

Extension GA
az networkfabric interface update

更新网络接口资源的某些属性。

Extension GA
az networkfabric interface update-admin-state

更新网络接口的管理员状态。

Extension GA
az networkfabric interface wait

将 CLI 置于等待状态,直到满足条件。

Extension GA

az networkfabric interface list

列出提供资源组中的所有网络接口。

az networkfabric interface list --device --network-device-name
                                --resource-group
                                [--max-items]
                                [--next-token]

示例

列出资源组的网络接口

az networkfabric interface list -g "example-rg" --network-device-name "example-device"

必需参数

--device --network-device-name

网络设备的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

属性
Parameter group: Pagination Arguments
--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

属性
Parameter group: Pagination Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az networkfabric interface show

显示提供的网络接口资源的详细信息。

az networkfabric interface show [--device --network-device-name]
                                [--ids]
                                [--resource-group]
                                [--resource-name]
                                [--subscription]

示例

显示网络接口

az networkfabric interface show -g "example-rg" --network-device-name "example-device" --resource-name "example-interface"

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--device --network-device-name

网络设备的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--resource-name

网络接口的名称。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az networkfabric interface update

更新网络接口资源的某些属性。

az networkfabric interface update [--additional-description]
                                  [--annotation]
                                  [--device --network-device-name]
                                  [--ids]
                                  [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                  [--resource-group]
                                  [--resource-name]
                                  [--subscription]

示例

更新网络接口

az networkfabric interface update -g "example-rg" --network-device-name "example-device" --resource-name "example-interface" --additional-description "additional description"

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--additional-description

接口的其他说明。

属性
Parameter group: Properties Arguments
--annotation

切换配置说明。

属性
Parameter group: Properties Arguments
--device --network-device-name

网络设备的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--no-wait

不等待长时间运行的操作完成。

属性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--resource-name

网络接口的名称。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az networkfabric interface update-admin-state

更新网络接口的管理员状态。

az networkfabric interface update-admin-state [--device --network-device-name]
                                              [--ids]
                                              [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                              [--resource-group]
                                              [--resource-ids]
                                              [--resource-name]
                                              [--state {Disable, Enable, UnderMaintenance}]
                                              [--subscription]

示例

更新网络接口的管理员状态

az networkfabric interface update-admin-state -g "example-rg" --network-device-name "example-device" --resource-name "example-interface" --state "Enable"

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--device --network-device-name

网络设备的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--no-wait

不等待长时间运行的操作完成。

属性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--resource-ids

网络结构或网络机架资源 ID。支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

属性
Parameter group: Body Arguments
--resource-name

网络接口的名称。

属性
Parameter group: Resource Id Arguments
--state

Administrative state.

属性
Parameter group: Body Arguments
接受的值: Disable, Enable, UnderMaintenance
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az networkfabric interface wait

将 CLI 置于等待状态,直到满足条件。

az networkfabric interface wait [--created]
                                [--custom]
                                [--deleted]
                                [--device --network-device-name]
                                [--exists]
                                [--ids]
                                [--interval]
                                [--resource-group]
                                [--resource-name]
                                [--subscription]
                                [--timeout]
                                [--updated]

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--created

等待在“Succeeded”中使用“provisioningState”创建。

属性
Parameter group: Wait Condition Arguments
默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

属性
Parameter group: Wait Condition Arguments
--deleted

等到删除为止。

属性
Parameter group: Wait Condition Arguments
默认值: False
--device --network-device-name

网络设备的名称。

属性
Parameter group: Resource Id Arguments
--exists

等待资源存在。

属性
Parameter group: Wait Condition Arguments
默认值: False
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--interval

轮询间隔(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 30
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--resource-name

网络接口的名称。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--timeout

最大等待(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
Parameter group: Wait Condition Arguments
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False