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, invokeActionWithResponsedelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends SecGroupExtension> list()
list in interface ComputeSecurityGroupServicepublic List<? extends SecGroupExtension> listServerGroups(String serverId)
listServerGroups in interface ComputeSecurityGroupServiceserverId - the server identifierpublic SecGroupExtension get(String securityGroupId)
get in interface ComputeSecurityGroupServicesecurityGroupId - the security group identifierpublic ActionResponse delete(String securityGroupId)
delete in interface ComputeSecurityGroupServicesecurityGroupId - the security group identifierpublic SecGroupExtension create(String name, String description)
create in interface ComputeSecurityGroupServicename - the name of the security groupdescription - the description of the security grouppublic SecGroupExtension update(String securityGroupId, String name, String description)
update in interface ComputeSecurityGroupServicesecurityGroupId - 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 ComputeSecurityGroupServicerule - the rule to createpublic ActionResponse deleteRule(String ruleId)
deleteRule in interface ComputeSecurityGroupServiceruleId - the rule identifierCopyright © 2017. All rights reserved.