diff --git a/api-ref/source/v3/project-tags.inc b/api-ref/source/v3/project-tags.inc index d3645b63a9..2021ec111e 100644 --- a/api-ref/source/v3/project-tags.inc +++ b/api-ref/source/v3/project-tags.inc @@ -73,6 +73,100 @@ Example :language: javascript +Modify tag list for a project +============================= + +.. rest_method:: PUT /v3/projects/{project_id}/tags + +Modifies the tags for a project. Any existing tags not specified will +be deleted. + +Relationship: ``https://docs.openstack.org/api/openstack-identity/3/rel/projects`` + +Request +------- + +Parameters +~~~~~~~~~~ + +.. rest_parameters:: parameters.yaml + + - project_id: project_id_path + - tags: response_body_project_tags_required + +Example +~~~~~~~ + +.. literalinclude:: ./samples/admin/project-tags-update-request.json + :language: javascript + +Response +-------- + +Parameters +~~~~~~~~~~ + +.. rest_parameters:: parameters.yaml + + - tags: response_body_project_tags_required + +Status Codes +~~~~~~~~~~~~ + +.. rest_status_code:: success status.yaml + + - 200 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 403 + - 404 + +Example +~~~~~~~ + +.. literalinclude:: ./samples/admin/project-tags-update-response.json + :language: javascript + + +Remove all tags from a project +============================== + +.. rest_method:: DELETE /v3/projects/{project_id}/tags + +Remove all tags from a given project. + +Relationship: ``https://docs.openstack.org/api/openstack-identity/3/rel/projects`` + +Request +------- + +Parameters +~~~~~~~~~~ + +.. rest_parameters:: parameters.yaml + + - project_id: project_id_path + +Response +-------- + +Status Codes +~~~~~~~~~~~~ + +.. rest_status_code:: success status.yaml + + - 204 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 403 + + Check if project contains tag ============================= @@ -152,64 +246,6 @@ Status Codes - 404 -Modify tag list for a project -============================= - -.. rest_method:: PUT /v3/projects/{project_id}/tags - -Modifies the tags for a project. Any existing tags not specified will -be deleted. - -Relationship: ``https://docs.openstack.org/api/openstack-identity/3/rel/projects`` - -Request -------- - -Parameters -~~~~~~~~~~ - -.. rest_parameters:: parameters.yaml - - - project_id: project_id_path - - tags: response_body_project_tags_required - -Example -~~~~~~~ - -.. literalinclude:: ./samples/admin/project-tags-update-request.json - :language: javascript - -Response --------- - -Parameters -~~~~~~~~~~ - -.. rest_parameters:: parameters.yaml - - - tags: response_body_project_tags_required - -Status Codes -~~~~~~~~~~~~ - -.. rest_status_code:: success status.yaml - - - 200 - -.. rest_status_code:: error status.yaml - - - 400 - - 401 - - 403 - - 404 - -Example -~~~~~~~ - -.. literalinclude:: ./samples/admin/project-tags-update-response.json - :language: javascript - - Delete single tag from project ============================== @@ -248,43 +284,6 @@ Status Codes - 404 -Remove all tags from a project -============================== - -.. rest_method:: DELETE /v3/projects/{project_id}/tags - -Remove all tags from a given project. - -Relationship: ``https://docs.openstack.org/api/openstack-identity/3/rel/projects`` - -Request -------- - -Parameters -~~~~~~~~~~ - -.. rest_parameters:: parameters.yaml - - - project_id: project_id_path - -Response --------- - -Status Codes -~~~~~~~~~~~~ - -.. rest_status_code:: success status.yaml - - - 204 - -.. rest_status_code:: error status.yaml - - - 400 - - 401 - - 403 - - 404 - - =============================== Filtering and searching by tags ===============================