github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/attachinterfaces/urls.go (about) 1 package attachinterfaces 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func listInterfaceURL(client *golangsdk.ServiceClient, serverID string) string { 6 return client.ServiceURL("servers", serverID, "os-interface") 7 } 8 9 func getInterfaceURL(client *golangsdk.ServiceClient, serverID, portID string) string { 10 return client.ServiceURL("servers", serverID, "os-interface", portID) 11 } 12 13 func createInterfaceURL(client *golangsdk.ServiceClient, serverID string) string { 14 return client.ServiceURL("servers", serverID, "os-interface") 15 } 16 func deleteInterfaceURL(client *golangsdk.ServiceClient, serverID, portID string) string { 17 return client.ServiceURL("servers", serverID, "os-interface", portID) 18 }