keystone.catalog package¶
Subpackages¶
Submodules¶
keystone.catalog.controllers module¶
-
class
keystone.catalog.controllers.Endpoint(*args, **kwargs)[source]¶
-
class
keystone.catalog.controllers.EndpointFilterV3Controller[source]¶ Bases:
keystone.common.controller.V3Controller-
add_endpoint_to_project(request, *args, **kwargs)[source]¶ Establish an association between an endpoint and a project.
-
check_endpoint_in_project(request, *args, **kwargs)[source]¶ Verify endpoint is currently associated with given project.
-
list_endpoints_for_project(request, *args, **kwargs)[source]¶ List all endpoints currently associated with a given project.
-
-
class
keystone.catalog.controllers.EndpointGroupV3Controller[source]¶ Bases:
keystone.common.controller.V3Controller-
VALID_FILTER_KEYS= [‘service_id’, ‘region_id’, ‘interface’]¶
-
classmethod
base_url(context, path=None)[source]¶ Construct a path and pass it to V3Controller.base_url method.
-
collection_name= ‘endpoint_groups’¶
-
create_endpoint_group(request, *args, **kwargs)[source]¶ Create an Endpoint Group with the associated filters.
-
get_endpoint_group(request, *args, **kwargs)[source]¶ Retrieve the endpoint group associated with the id if exists.
-
list_endpoint_groups_for_project(request, *args, **kwargs)[source]¶ List all endpoint groups associated with a given project.
-
list_endpoints_associated_with_endpoint_group(request, *args, **kwargs)[source]¶ List all the endpoints filtered by a specific endpoint group.
-
list_projects_associated_with_endpoint_group(request, *args, **kwargs)[source]¶ List all projects associated with endpoint group.
-
member_name= ‘endpoint_group’¶
-
-
class
keystone.catalog.controllers.EndpointV3[source]¶ Bases:
keystone.common.controller.V3Controller-
collection_name= ‘endpoints’¶
-
member_name= ‘endpoint’¶
-
-
class
keystone.catalog.controllers.ProjectEndpointGroupV3Controller[source]¶ Bases:
keystone.common.controller.V3Controller-
add_endpoint_group_to_project(request, *args, **kwargs)[source]¶ Create an association between an endpoint group and project.
-
collection_name= ‘project_endpoint_groups’¶
-
get_endpoint_group_in_project(request, *args, **kwargs)[source]¶ Retrieve the endpoint group associated with the id if exists.
-
member_name= ‘project_endpoint_group’¶
-
-
class
keystone.catalog.controllers.RegionV3(*args, **kwargs)[source]¶ Bases:
keystone.common.controller.V3Controller-
collection_name= ‘regions’¶
-
create_region_with_id(request, region_id, region)[source]¶ Create a region with a user-specified ID.
This method is unprotected because it depends on
self.create_regionto enforce policy.
-
member_name= ‘region’¶
-
-
class
keystone.catalog.controllers.ServiceV3[source]¶ Bases:
keystone.common.controller.V3Controller-
collection_name= ‘services’¶
-
member_name= ‘service’¶
-
keystone.catalog.core module¶
Main entry point into the Catalog service.
-
class
keystone.catalog.core.Manager(*args, **kwargs)[source]¶ Bases:
keystone.common.manager.ManagerDefault pivot point for the Catalog backend.
See
keystone.common.manager.Managerfor more details on how this dynamically calls the backend.-
driver_namespace= ‘keystone.catalog’¶
-
keystone.catalog.routers module¶
-
class
keystone.catalog.routers.Routers[source]¶ Bases:
keystone.common.wsgi.RoutersBaseAPI for the keystone catalog.
The API Endpoint Filter looks like:
PUT /OS-EP-FILTER/projects/{project_id}/endpoints/{endpoint_id} GET /OS-EP-FILTER/projects/{project_id}/endpoints/{endpoint_id} HEAD /OS-EP-FILTER/projects/{project_id}/endpoints/{endpoint_id} DELETE /OS-EP-FILTER/projects/{project_id}/endpoints/{endpoint_id} GET /OS-EP-FILTER/endpoints/{endpoint_id}/projects GET /OS-EP-FILTER/projects/{project_id}/endpoints GET /OS-EP-FILTER/projects/{project_id}/endpoint_groups GET /OS-EP-FILTER/endpoint_groups POST /OS-EP-FILTER/endpoint_groups GET /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} HEAD /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} PATCH /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} DELETE /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} GET /OS-EP-FILTER/endpoint_groups/{endpoint_group_id}/projects GET /OS-EP-FILTER/endpoint_groups/{endpoint_group_id}/endpoints PUT /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/ {project_id} GET /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/ {project_id} HEAD /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/ {project_id} DELETE /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/ {project_id}
-
PATH_ENDPOINT_GROUPS= ‘/endpoint_groups/{endpoint_group_id}’¶
-
PATH_ENDPOINT_GROUP_PROJECTS= ‘/endpoint_groups/{endpoint_group_id}/projects/{project_id}’¶
-
PATH_PREFIX= ‘/OS-EP-FILTER’¶
-
PATH_PROJECT_ENDPOINT= ‘/projects/{project_id}/endpoints/{endpoint_id}’¶
-