All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstack4j.api.networking.SecurityGroupService Maven / Gradle / Ivy

package org.openstack4j.api.networking;

import java.util.List;

import org.openstack4j.common.RestService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.network.SecurityGroup;


/**
 * Provides Neutron-based Security Group services.
 *
 * @author Nathan Anderson
 */
public interface SecurityGroupService extends RestService {

  /**
   * Get list of security groups accessible by the current tenant
   *
   * @return the list
   */
  List list();
  
  /**
   * Gets the Security Group by id.
   *
   * @param id the id
   * @return the security group
   */
  SecurityGroup get(String id);
  
  /**
   * Deletes SecurityGroup by id.
   *
   * @param id SecurityGroup id
   */
  ActionResponse delete(String id);
  
  /**
   * Creates a SecurityGroup.
   *
   * @param securityGroup the security group
   * @return the security group
   */
  SecurityGroup create(SecurityGroup securityGroup);
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy