public class ComputeSecurityGroupServiceImpl extends BaseComputeServices implements ComputeSecurityGroupService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ComputeSecurityGroupServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SecGroupExtension |
create(String name,
String description)
Creates a new Security Group
|
SecGroupExtension.Rule |
createRule(SecGroupExtension.Rule rule)
Creates a new Security Group Rule
|
ActionResponse |
delete(String securityGroupId)
Deletes the specified Security Group
|
ActionResponse |
deleteRule(String ruleId)
Deletes a Security Group Rule
|
SecGroupExtension |
get(String securityGroupId)
Gets the specified Security Group
|
List<? extends SecGroupExtension> |
list()
List all the Security Groups
|
List<? extends SecGroupExtension> |
listServerGroups(String serverId)
Lists the Security Groups for the specified server
|
SecGroupExtension |
update(String securityGroupId,
String name,
String description)
Updates the Name and Description for a Security Group
|
invokeAction, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends SecGroupExtension> list()
list
in interface ComputeSecurityGroupService
public List<? extends SecGroupExtension> listServerGroups(String serverId)
listServerGroups
in interface ComputeSecurityGroupService
serverId
- the server identifierpublic SecGroupExtension get(String securityGroupId)
get
in interface ComputeSecurityGroupService
securityGroupId
- the security group identifierpublic ActionResponse delete(String securityGroupId)
delete
in interface ComputeSecurityGroupService
securityGroupId
- the security group identifierpublic SecGroupExtension create(String name, String description)
create
in interface ComputeSecurityGroupService
name
- the name of the security groupdescription
- the description of the security grouppublic SecGroupExtension update(String securityGroupId, String name, String description)
update
in interface ComputeSecurityGroupService
securityGroupId
- the security group identifiername
- the name of the security groupdescription
- the description of the security grouppublic SecGroupExtension.Rule createRule(SecGroupExtension.Rule rule)
createRule
in interface ComputeSecurityGroupService
rule
- the rule to createpublic ActionResponse deleteRule(String ruleId)
deleteRule
in interface ComputeSecurityGroupService
ruleId
- the rule identifierCopyright © 2017. All rights reserved.