params = request.params.copy()
params["marker"] = identifier
prefix = self._update_link_prefix(request.application_url,
- FLAGS.osapi_compute_link_prefix)
+ FLAGS.osapi_volume_base_URL)
url = os.path.join(prefix,
request.environ["cinder.context"].project_id,
self._collection_name)
def _get_href_link(self, request, identifier):
"""Return an href string pointing to this object."""
prefix = self._update_link_prefix(request.application_url,
- FLAGS.osapi_compute_link_prefix)
+ FLAGS.osapi_volume_base_URL)
return os.path.join(prefix,
request.environ["cinder.context"].project_id,
self._collection_name,
"""Create a URL that refers to a specific resource."""
base_url = remove_version_from_href(request.application_url)
base_url = self._update_link_prefix(base_url,
- FLAGS.osapi_compute_link_prefix)
+ FLAGS.osapi_volume_base_URL)
return os.path.join(base_url,
request.environ["cinder.context"].project_id,
self._collection_name,
'cinder.api.contrib.standard_extensions',
],
help='osapi volume extension to load'),
- cfg.StrOpt('osapi_compute_link_prefix',
+ cfg.StrOpt('osapi_volume_base_URL',
default=None,
help='Base URL that will be presented to users in links '
- 'to the OpenStack Compute API'),
+ 'to the OpenStack Volume API',
+ deprecated_name='osapi_compute_link_prefix'),
cfg.IntOpt('osapi_max_limit',
default=1000,
help='the maximum number of items returned in a single '
# osapi_volume_extension=cinder.api.openstack.volume.contrib.standard_extensions
#### (MultiStrOpt) osapi volume extension to load
-# osapi_compute_link_prefix=<None>
+# osapi_volume_base_URL=<None>
#### (StrOpt) Base URL that will be presented to users in links to the
-#### OpenStack Compute API
+#### OpenStack Volume API
# osapi_max_limit=1000
#### (IntOpt) the maximum number of items returned in a single response