Codota Logo
SecurityGroupClient.authorizeIngressICMPToCIDRs
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now