github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/attachinterfaces/urls.go (about)

     1  package attachinterfaces
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func listInterfaceURL(client *gophercloud.ServiceClient, serverID string) string {
     6  	return client.ServiceURL("servers", serverID, "os-interface")
     7  }
     8  
     9  func getInterfaceURL(client *gophercloud.ServiceClient, serverID, portID string) string {
    10  	return client.ServiceURL("servers", serverID, "os-interface", portID)
    11  }
    12  
    13  func createInterfaceURL(client *gophercloud.ServiceClient, serverID string) string {
    14  	return client.ServiceURL("servers", serverID, "os-interface")
    15  }
    16  func deleteInterfaceURL(client *gophercloud.ServiceClient, serverID, portID string) string {
    17  	return client.ServiceURL("servers", serverID, "os-interface", portID)
    18  }