public class SecurityGroupServiceImpl extends BaseNetworkingServices implements SecurityGroupService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
SecurityGroupServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
create(SecurityGroup securityGroup)
Creates a SecurityGroup.
|
ActionResponse |
delete(String groupId)
Deletes SecurityGroup by id.
|
SecurityGroup |
get(String id)
Gets the Security Group by id.
|
List<? extends SecurityGroup> |
list()
Get list of security groups accessible by the current tenant
|
List<? extends SecurityGroup> |
list(Map<String,String> filteringParams)
Get list of security groups accessible by the current tenant
|
SecurityGroup |
update(String securityGroupId,
SecurityGroupUpdate securityGroupUpdate)
Updates a SecurityGroup associated by the specified
securityGroupId |
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public SecurityGroup get(String id)
get
in interface SecurityGroupService
id
- the idpublic ActionResponse delete(String groupId)
delete
in interface SecurityGroupService
groupId
- SecurityGroup idpublic SecurityGroup create(SecurityGroup securityGroup)
create
in interface SecurityGroupService
securityGroup
- the security grouppublic SecurityGroup update(String securityGroupId, SecurityGroupUpdate securityGroupUpdate)
securityGroupId
update
in interface SecurityGroupService
securityGroupId
- the security group identifiersecurityGroupUpdate
- the security group options to update (see Builders.securityGroupUpdate()
public List<? extends SecurityGroup> list()
list
in interface SecurityGroupService
public List<? extends SecurityGroup> list(Map<String,String> filteringParams)
list
in interface SecurityGroupService
filteringParams
- map (name, value) of filtering parametersCopyright © 2017. All rights reserved.