public interface ComputeSecurityGroupService extends RestService
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
|
List<? extends SecGroupExtension> list()
List<? extends SecGroupExtension> listServerGroups(String serverId)
serverId
- the server identifierSecGroupExtension get(String securityGroupId)
securityGroupId
- the security group identifierSecGroupExtension create(String name, String description)
name
- the name of the security groupdescription
- the description of the security groupSecGroupExtension update(String securityGroupId, String name, String description)
securityGroupId
- the security group identifiername
- the name of the security groupdescription
- the description of the security groupActionResponse delete(String securityGroupId)
securityGroupId
- the security group identifierSecGroupExtension.Rule createRule(SecGroupExtension.Rule rule)
rule
- the rule to createActionResponse deleteRule(String ruleId)
ruleId
- the rule identifierCopyright © 2017. All rights reserved.