From 01ada341470f55fd16bdb8c8c2af02d191b699f7 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 12 Oct 2016 16:56:25 +0800 Subject: Remove useless X-ROLE from http header X_ROLE in http header is not needed. It will be removed because in keystonemiddleware/auth_token/AuthProtocol.process_request() request.remove_auth_headers() is called. Some incorrect statements like "ROLE: dmin" bring confusion. Change-Id: Ic074425803b6d643502f87543bc527e69aab4e8e Signed-off-by: Alex Yang --- docs/installationprocedure/multisite.kingbird.installation.rst | 2 +- docs/userguide/multisite.kingbird.usage.rst | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/installationprocedure/multisite.kingbird.installation.rst b/docs/installationprocedure/multisite.kingbird.installation.rst index 11a516a..9abb669 100644 --- a/docs/installationprocedure/multisite.kingbird.installation.rst +++ b/docs/installationprocedure/multisite.kingbird.installation.rst @@ -297,7 +297,7 @@ $admin_project_id to the admin project id in your environment: .. code-block:: bash curl -H "Content-Type: application/json" -H "X-Auth-Token: $token" \ - -H "X_ROLE: admin" -X PUT \ + -X PUT \ http://127.0.0.1:8118/v1.0/$admin_project_id/os-quota-sets/$admin_project_id/sync If the response looks like following: "triggered quota sync for diff --git a/docs/userguide/multisite.kingbird.usage.rst b/docs/userguide/multisite.kingbird.usage.rst index c5bb3eb..4cdab4f 100644 --- a/docs/userguide/multisite.kingbird.usage.rst +++ b/docs/userguide/multisite.kingbird.usage.rst @@ -85,7 +85,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "ROLE: dmin" \ -X PUT \ -d '{"quota_set":{"cores": 10,"ram": 51200, "metadata_items": 100,"key_pairs": 100, "network":20,"security_group": 20,"security_group_rule": 20}}' \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id @@ -95,7 +94,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id 3. A tenant can also get the global limit by himself @@ -110,7 +108,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/defaults 5. Get total usage for a tenant @@ -118,7 +115,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ -X GET \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id/detail @@ -135,7 +131,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ -X PUT \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id/sync @@ -145,7 +140,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ -X DELETE \ -d '{"quota_set": [ "cores", "ram"]}' \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id @@ -155,7 +149,6 @@ Quota Management API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ -X DELETE \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-sets/$tenant_id @@ -168,7 +161,6 @@ Quota Class API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "ROLE: dmin" \ -X PUT \ -d '{"quota_class_set":{"cores": 100, "network":50,"security_group": 50,"security_group_rule": 50}}' \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-class-sets/default @@ -178,7 +170,6 @@ Quota Class API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "X_ROLE: admin" \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-class-sets/default 3. Delete default quota class @@ -186,7 +177,6 @@ Quota Class API curl \ -H "Content-Type: application/json" \ -H "X-Auth-Token: $kb_token" \ - -H "ROLE: dmin" \ -X DELETE \ http://$kb_ip_addr:8118/v1.0/$admin_tenant_id/os-quota-class-sets/default -- cgit 1.2.3-korg