Revision 54fd97f1
Added by Bernhard Suttner 3 months ago
app/controllers/api/v2/compute_resources_controller.rb | ||
---|---|---|
end
|
||
|
||
api :GET, "/compute_resources/:id/available_storage_domains", N_("List storage domains for a compute resource")
|
||
api :GET, "/compute_resources/:id/available_storage_domains/:storage_domain", N_("List attributes for a given storage domain")
|
||
api :GET, "/compute_resources/:id/available_storage_domains/:storage_domain", N_("List attributes for a given storage domain"), deprecated: true
|
||
api :GET, "/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains", N_("List storage domains for a compute resource")
|
||
param :id, :identifier, :required => true
|
||
param :cluster_id, String
|
||
param :storage_domain, String
|
||
param :storage_domain, String, deprecated: true
|
||
def available_storage_domains
|
||
if params[:storage_domain]
|
||
Foreman::Deprecation.api_deprecation_warning("use /compute_resources/:id/storage_domain/:storage_domain_id endpoind instead")
|
||
... | ... | |
end
|
||
|
||
api :GET, "/compute_resources/:id/available_storage_pods", N_("List storage pods for a compute resource")
|
||
api :GET, "/compute_resources/:id/available_storage_pods/:storage_pod", N_("List attributes for a given storage pod")
|
||
api :GET, "/compute_resources/:id/available_storage_pods/:storage_pod", N_("List attributes for a given storage pod"), deprecated: true
|
||
api :GET, "/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods", N_("List storage pods for a compute resource")
|
||
param :id, :identifier, :required => true
|
||
param :cluster_id, String
|
||
param :storage_pod, String
|
||
param :storage_pod, String, deprecated: true
|
||
def available_storage_pods
|
||
if params[:storage_pod]
|
||
Foreman::Deprecation.api_deprecation_warning("use /compute_resources/:id/storage_pod/:storage_pod_id endpoind instead")
|
app/controllers/api/v2/operatingsystems_controller.rb | ||
---|---|---|
process_response @operatingsystem.destroy
|
||
end
|
||
|
||
api :GET, "/operatingsystems/:id/bootfiles/", N_("List boot files for an operating system")
|
||
api :GET, "/operatingsystems/:id/bootfiles/", N_("List boot files for an operating system"), deprecated: true
|
||
param :id, String, :required => true
|
||
param :medium, String
|
||
param :architecture, String
|
||
param :medium, String, :required => true
|
||
param :architecture, String, :required => true
|
||
|
||
def bootfiles
|
||
Foreman::Deprecation.api_deprecation_warning("Bootfiles should be calculated per host")
|
Also available in: Unified diff
Fixes #37274 - Mark API/params as deprecated