summaryrefslogtreecommitdiffstats
path: root/docs/userguide/multisite.kingbird.usage.rst
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2016-10-12 16:56:25 +0800
committerAlex Yang <yangyang1@zte.com.cn>2016-10-13 09:46:59 +0800
commit01ada341470f55fd16bdb8c8c2af02d191b699f7 (patch)
tree6dce1942f9baa7d29e3e4af1f1a25e90142986e4 /docs/userguide/multisite.kingbird.usage.rst
parent240b3bea6659af6d339df888435adecb7e853b26 (diff)
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'docs/userguide/multisite.kingbird.usage.rst')
-rw-r--r--docs/userguide/multisite.kingbird.usage.rst10
1 files changed, 0 insertions, 10 deletions
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