congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SecurityGroupClient.revokeIngressRule
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.provisionr/provisionr-cloudstack

public static void deleteNetworkRules(CloudStackClient cloudStackClient, SecurityGroup securityGroup) {
  for (IngressRule rule : securityGroup.getIngressRules()) {
    cloudStackClient.getSecurityGroupClient().revokeIngressRule(rule.getId());
  }
}
origin: jclouds/legacy-jclouds

@AfterGroups(groups = "live")
@Override
protected void tearDownContext() {
 if (vm != null) {
   assertTrue(jobComplete.apply(client.getVirtualMachineClient().destroyVirtualMachine(vm.getId())));
 }
 if (group != null) {
   for (IngressRule rule : group.getIngressRules())
    assertTrue(jobComplete.apply(client.getSecurityGroupClient().revokeIngressRule(rule.getId())), rule.toString());
   client.getSecurityGroupClient().deleteSecurityGroup(group.getId());
   assertEquals(client.getSecurityGroupClient().getSecurityGroup(group.getId()), null);
 }
 super.tearDownContext();
}
origin: jclouds/legacy-jclouds

@Test
public void testCreateDestroySecurityGroup() {
 try {
   zone = Iterables.find(client.getZoneClient().listZones(), new Predicate<Zone>() {
    @Override
    public boolean apply(Zone arg0) {
      return arg0.isSecurityGroupsEnabled();
    }
   });
   securityGroupsSupported = true;
   for (SecurityGroup securityGroup : client.getSecurityGroupClient().listSecurityGroups(
      ListSecurityGroupsOptions.Builder.named(prefix))) {
    for (IngressRule rule : securityGroup.getIngressRules())
      assertTrue(jobComplete.apply(client.getSecurityGroupClient().revokeIngressRule(rule.getId())), rule.toString());
    client.getSecurityGroupClient().deleteSecurityGroup(securityGroup.getId());
   }
   group = client.getSecurityGroupClient().createSecurityGroup(prefix);
   assertEquals(group.getName(), prefix);
   checkGroup(group);
   try {
    client.getSecurityGroupClient().createSecurityGroup(prefix);
    fail("Expected IllegalStateException");
   } catch (IllegalStateException e) {
   }
 } catch (NoSuchElementException e) {
   e.printStackTrace();
 }
}
org.jclouds.cloudstack.featuresSecurityGroupClientrevokeIngressRule

Javadoc

Deletes a particular ingress rule from this security group

Popular methods of SecurityGroupClient

  • authorizeIngressICMPToCIDRs
    Authorizes a particular ICMP ingress rule for this security group
  • 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
  • getSecurityGroup
    get a specific security group by id

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top 12 Jupyter Notebook extensions
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