az network traffic-manager endpoint
管理Azure 流量管理器终结点。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az network traffic-manager endpoint create |
创建流量管理器终结点。 |
Core | GA |
az network traffic-manager endpoint delete |
删除流量管理器终结点。 |
Core | GA |
az network traffic-manager endpoint list |
列出流量管理器终结点。 |
Core | GA |
az network traffic-manager endpoint show |
获取流量管理器终结点的详细信息。 |
Core | GA |
az network traffic-manager endpoint show-geographic-hierarchy |
获取地理流量路由方法使用的默认地理层次结构。 |
Core | GA |
az network traffic-manager endpoint update |
更新流量管理器终结点。 |
Core | GA |
az network traffic-manager endpoint create
创建流量管理器终结点。
az network traffic-manager endpoint create --name
--profile-name
--resource-group
--type {azureEndpoints, externalEndpoints, nestedEndpoints}
[--always-serve {Disabled, Enabled}]
[--custom-headers]
[--endpoint-location]
[--endpoint-monitor-status]
[--endpoint-status {Disabled, Enabled}]
[--geo-mapping]
[--min-child-endpoints]
[--min-child-ipv4]
[--min-child-ipv6]
[--priority]
[--subnets]
[--target]
[--target-resource-id]
[--weight]
示例
为性能配置文件创建一个终结点,以指向 Azure Web 应用终结点。
az network traffic-manager endpoint create -g MyResourceGroup --profile-name MyTmProfile \
-n MyEndpoint --type azureEndpoints --target-resource-id $MyWebApp1Id --endpoint-status enabled
必需参数
Endpoint name.
父配置文件的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
Endpoint type.
属性 | 值 |
---|---|
接受的值: | azureEndpoints, externalEndpoints, nestedEndpoints |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
如果启用了 Always Serve,将禁用终结点运行状况探测,并且终结点将包含在流量路由方法中。
属性 | 值 |
---|---|
接受的值: | Disabled, Enabled |
键=VALUE 格式的自定义标头的空格分隔列表。
使用“性能”路由方法时,外部或嵌套终结点的位置。
终结点的监视状态。
终结点的状态。 如果启用终结点,则会探测终结点运行状况,并将其包含在流量路由方法中。
属性 | 值 |
---|---|
接受的值: | Disabled, Enabled |
使用“地理”路由方法时映射到此终结点的国家/地区代码的空间分隔列表。
属性 | 值 |
---|---|
值来源: | az network traffic-manager endpoint show-geographic-hierarchy |
子配置文件中必须可用的最小终结点数,才能将父配置文件视为可用。 仅适用于类型为“NestedEndpoints”的终结点。
子配置文件中必须可用的最小 IPv4(DNS 记录类型 A)终结点,以便将父配置文件视为可用。 仅适用于“NestedEndpoints”类型的终结点。
子配置文件中必须可用的最小 IPv6(DNS 记录类型 AAAA)终结点,以便将父配置文件视为可用。 仅适用于“NestedEndpoints”类型的终结点。
使用“优先级”流量路由方法时终结点的优先级。 值范围从 1 到 1000,值越低,表示优先级越高。
子网 CIDR 前缀(10.0.0.0/24)或子网范围(10.0.0.0-11.0.0.0)的空间分隔列表。
终结点的完全限定 DNS 名称。
终结点的 Azure 资源 URI。 不适用于“ExternalEndpoints”类型的终结点。
使用“加权”流量路由方法时终结点的权重。 值范围为 1 到 1000。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network traffic-manager endpoint delete
删除流量管理器终结点。
az network traffic-manager endpoint delete [--ids]
[--name]
[--profile-name]
[--resource-group]
[--subscription]
[--type {AzureEndpoints, ExternalEndpoints, NestedEndpoints}]
示例
删除流量管理器终结点。
az network traffic-manager endpoint delete -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
删除流量管理器终结点。 (autogenerated)
az network traffic-manager endpoint delete --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription --type azureEndpoints
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Endpoint name.
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
父配置文件的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Endpoint type.
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
接受的值: | AzureEndpoints, ExternalEndpoints, NestedEndpoints |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network traffic-manager endpoint list
列出流量管理器终结点。
az network traffic-manager endpoint list --profile-name
--resource-group
[--type {azureEndpoints, externalEndpoints, nestedEndpoints}]
示例
列出流量管理器终结点。
az network traffic-manager endpoint list -g MyResourceGroup --profile-name MyTmProfile
必需参数
父配置文件的名称。
资源组的名称。 可以使用 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.
Endpoint type.
属性 | 值 |
---|---|
接受的值: | azureEndpoints, externalEndpoints, nestedEndpoints |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network traffic-manager endpoint show
获取流量管理器终结点的详细信息。
az network traffic-manager endpoint show [--ids]
[--name]
[--profile-name]
[--resource-group]
[--subscription]
[--type {AzureEndpoints, ExternalEndpoints, NestedEndpoints}]
示例
获取流量管理器终结点的详细信息。
az network traffic-manager endpoint show -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Endpoint name.
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
父配置文件的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Endpoint type. 允许的值:azureEndpoints、externalEndpoints、nestedEndpoints。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
接受的值: | AzureEndpoints, ExternalEndpoints, NestedEndpoints |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network traffic-manager endpoint show-geographic-hierarchy
获取地理流量路由方法使用的默认地理层次结构。
az network traffic-manager endpoint show-geographic-hierarchy
示例
获取地理流量路由方法使用的默认地理层次结构。
az network traffic-manager endpoint show-geographic-hierarchy
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network traffic-manager endpoint update
更新流量管理器终结点。
az network traffic-manager endpoint update [--always-serve {Disabled, Enabled}]
[--custom-headers]
[--endpoint-location]
[--endpoint-monitor-status]
[--endpoint-status {Disabled, Enabled}]
[--geo-mapping]
[--ids]
[--min-child-endpoints]
[--min-child-ipv4]
[--min-child-ipv6]
[--name]
[--priority]
[--profile-name]
[--resource-group]
[--subnets]
[--subscription]
[--target]
[--target-resource-id]
[--type {azureEndpoints, externalEndpoints, nestedEndpoints}]
[--weight]
示例
更新流量管理器终结点以更改其权重。
az network traffic-manager endpoint update -g MyResourceGroup --profile-name MyTmProfile \ -n MyEndpoint --weight 20 --type azureEndpoints
更新流量管理器终结点。 (autogenerated)
az network traffic-manager endpoint update --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --target webserver.mysite.com --type azureEndpoints
更新流量管理器终结点。 (autogenerated)
az network traffic-manager endpoint update --endpoint-status Enabled --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --type azureEndpoints
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
如果启用了 Always Serve,将禁用终结点运行状况探测,并且终结点将包含在流量路由方法中。
属性 | 值 |
---|---|
接受的值: | Disabled, Enabled |
键=VALUE 格式的自定义标头的空格分隔列表。
使用“性能”路由方法时,外部或嵌套终结点的位置。
终结点的监视状态。
终结点的状态。 如果启用终结点,则会探测终结点运行状况,并将其包含在流量路由方法中。
属性 | 值 |
---|---|
接受的值: | Disabled, Enabled |
使用“地理”路由方法时映射到此终结点的国家/地区代码的空间分隔列表。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
子配置文件中必须可用的最小终结点数,才能将父配置文件视为可用。 仅适用于类型为“NestedEndpoints”的终结点。
子配置文件中必须可用的最小 IPv4(DNS 记录类型 A)终结点,以便将父配置文件视为可用。 仅适用于“NestedEndpoints”类型的终结点。
子配置文件中必须可用的最小 IPv6(DNS 记录类型 AAAA)终结点,以便将父配置文件视为可用。 仅适用于“NestedEndpoints”类型的终结点。
Endpoint name.
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
使用“优先级”流量路由方法时终结点的优先级。 值范围从 1 到 1000,值越低,表示优先级越高。
父配置文件的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
子网 CIDR 前缀(10.0.0.0/24)或子网范围(10.0.0.0-11.0.0.0)的空间分隔列表。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
终结点的完全限定 DNS 名称。
终结点的 Azure 资源 URI。 不适用于“ExternalEndpoints”类型的终结点。
Endpoint type.
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
接受的值: | azureEndpoints, externalEndpoints, nestedEndpoints |
使用“加权”流量路由方法时终结点的权重。 值范围为 1 到 1000。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |