Tabnine Logo
SecurityGroupClient.authorizeIngressICMPToCIDRs
Code IndexAdd Tabnine to your IDE (free)

How to use
authorizeIngressICMPToCIDRs
method
in
org.jclouds.cloudstack.features.SecurityGroupClient

Best Java code snippets using org.jclouds.cloudstack.features.SecurityGroupClient.authorizeIngressICMPToCIDRs (Showing top 2 results out of 315)

origin: org.apache.provisionr/provisionr-cloudstack

  public static void applyNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup, Network network) {
    SecurityGroupClient securityGroupClient = cloudStackClient.getSecurityGroupClient();
    for (Rule rule : network.getIngress()) {
      if (rule.getProtocol() == Protocol.ICMP) {
        securityGroupClient.authorizeIngressICMPToCIDRs(securityGroup.getId(), DEFAULT_ICMP_CODE,
          DEFAULT_ICMP_TYPE, ImmutableList.of(rule.getCidr()));
      } else {
        securityGroupClient.authorizeIngressPortsToCIDRs(securityGroup.getId(),
          rule.getProtocol().name(),
          rule.getPorts().lowerEndpoint(),
          rule.getPorts().upperEndpoint(),
          Lists.newArrayList(rule.getCidr()));
      }
    }
  }
}
origin: jclouds/legacy-jclouds

String cidr = getCurrentCIDR();
ImmutableSet<String> cidrs = ImmutableSet.of(cidr);
assertTrue(jobComplete.apply(client.getSecurityGroupClient().authorizeIngressICMPToCIDRs(group.getId(), 0, 8, cidrs)), group.toString());
assertTrue(jobComplete.apply(client.getSecurityGroupClient().authorizeIngressPortsToCIDRs(group.getId(), "TCP", 22,
   22, cidrs)), group.toString());
org.jclouds.cloudstack.featuresSecurityGroupClientauthorizeIngressICMPToCIDRs

Javadoc

Authorizes a particular ICMP ingress rule for this security group

Popular methods of SecurityGroupClient

  • authorizeIngressPortsToCIDRs
    Authorizes a particular TCP or UDP ingress rule for this security group
  • createSecurityGroup
    Creates a security group
  • deleteSecurityGroup
    delete a specific security group by id
  • listSecurityGroups
    Lists security groups
  • revokeIngressRule
    Deletes a particular ingress rule from this security group
  • getSecurityGroup
    get a specific security group by id

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now