blob: a9313f47eff04f5cb90fc7ccbcdd9cefa9891fa3 [file] [log] [blame]
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package client
const dsPath = "/deliveryservices"
func deliveryServicesEp() string {
return apiBase + dsPath + ".json"
}
func deliveryServicesByServerEp(id string) string {
return apiBase + "/servers/" + id + dsPath
}
func deliveryServiceBaseEp(id string) string {
return apiBase + dsPath + "/" + id
}
func deliveryServiceEp(id string) string {
return deliveryServiceBaseEp(id) + ".json"
}
func deliveryServiceStateEp(id string) string {
return deliveryServiceBaseEp(id) + "/state.json"
}
func deliveryServiceHealthEp(id string) string {
return deliveryServiceBaseEp(id) + "/health.json"
}
func deliveryServiceCapacityEp(id string) string {
return deliveryServiceBaseEp(id) + "/capacity.json"
}
func deliveryServiceRoutingEp(id string) string {
return deliveryServiceBaseEp(id) + "/routing.json"
}
func deliveryServiceServerEp(page, limit string) string {
return apiBase + "/deliveryserviceserver.json?page=" + page + "&limit=" + limit
}
func deliveryServiceRegexesEp() string {
return apiBase + "/deliveryservices_regexes.json"
}
func deliveryServiceSSLKeysByIDEp(id string) string {
return apiBase + dsPath + "/xmlId/" + id + "/sslkeys.json"
}
func deliveryServiceSSLKeysByHostnameEp(hostname string) string {
return apiBase + dsPath + "/hostname/" + hostname + "/sslkeys.json"
}
func deliveryServicesByXMLID(XMLID string) string {
return apiBase + dsPath + "?xmlId=" + XMLID
}