blob: 07244f73ddcd06056826d4691a4bb6e3466c9688 [file] [log] [blame]
Jamie Hannaford17d2f872014-11-24 12:20:33 +01001package defsecrules
2
Jamie Hannaford558572f2014-11-24 14:31:57 +01003import (
4 "strconv"
5
6 "github.com/rackspace/gophercloud"
7)
Jamie Hannaford17d2f872014-11-24 12:20:33 +01008
9const rulepath = "os-security-group-default-rules"
10
Jamie Hannaford558572f2014-11-24 14:31:57 +010011func resourceURL(c *gophercloud.ServiceClient, id int) string {
12 return c.ServiceURL(rulepath, strconv.Itoa(id))
Jamie Hannaford17d2f872014-11-24 12:20:33 +010013}
14
15func rootURL(c *gophercloud.ServiceClient) string {
16 return c.ServiceURL(rulepath)
17}