> +                  "*",
> +                  NetworkSecurityRuleProperties.Access.Allow,
> +                  4094,
> +                  NetworkSecurityRuleProperties.Direction.Inbound));
> +      return rule;
> +   }
> +
> +   public void createNetworkSecurityRule() throws InterruptedException {
> +      NetworkSecurityRule rule = createRule();
> +
> +      
> server.enqueue(jsonResponse("/networksecurityrulecreate.json").setResponseCode(200));
> +      final NetworkSecurityRuleApi ruleApi = 
> api.getNetworkSecurityRuleApi(resourcegroup, DEFAULT_NSG_NAME);
> +
> +      String path = 
> String.format("/subscriptions/%s/resourcegroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s/securityRules/%s?%s",
>  subscriptionid, resourcegroup, DEFAULT_NSG_NAME, rule.name(), apiVersion);
> +      NetworkSecurityRule result = ruleApi.createOrUpdate(rule.name(), 
> rule.properties());
> +      assertSent(server, "PUT", path);

done

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/280/files/7ae85f1027f814b7d751eae6d421a1bad4693417#r66004122

Reply via email to