azure - 使用 Java 在 Azure 中创建 NSG 规则
问题描述
我正在尝试使用他们的 API 在 Microsoft Azure 中创建 NSG 规则,有谁知道这是否可以创建规则?
NetworkSecurityGroup.Update update = networkSecurityGroup.update();
update.defineRule(name)
.allowInbound()
.fromAddresses("")
.fromPortRanges()
.toAddresses("")
.toPortRanges("")
.withProtocol(SecurityRuleProtocol.UDP)
.withPriority(ruleRepresentation.getPriority())
.attach();
解决方案
推荐阅读
- laravel - 如何在使用 Storage 的 ftp 服务器中使用 Image::make Laravel 解析
- java - 如何将带有数字和字母的字符串分成数字?
- android - 验证电子邮件后,isEmailVerified 第一次调用返回 false,第二次调用返回 true
- php - 如何使用codeigniter显示自动更新(无需刷新)的数据库表数据?
- android - 如何将所有者 AES 密钥添加到 AndroidKeyStore?
- javascript - 离子主页空白
- javascript - 在 reactJS 中初始化 swiper
- parameters - 当 Json 正文包含括号和斜杠时,Jmeter 更改 POST 请求
- java - Java中的线程-N个数字的总和
- pyspark - 如何在 Zeppelin notebook 和 pyspark 中导入 Delta Lake 模块?