From 38928a44b595a7be1bf222b18154885195894f3f Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 8 Aug 2014 12:52:58 +0200 Subject: [PATCH] CLOUDSTACK-6323: Change getUser API arg to userapikey By default the getUser API picks apikey arg from HTTP request to return the User object with that api key. We use apikey in the request, so it would return the same user calling the API. This commit uses the USER_API_KEY in the API annotation instead. Signed-off-by: Rohit Yadav (cherry picked from commit 72e06b4d9b40c42d28cc148a331c9c5461a10f6e) Signed-off-by: Rohit Yadav --- .../apache/cloudstack/api/command/admin/user/GetUserCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/org/apache/cloudstack/api/command/admin/user/GetUserCmd.java b/api/src/org/apache/cloudstack/api/command/admin/user/GetUserCmd.java index b2c6734c9e6..d58f6959632 100644 --- a/api/src/org/apache/cloudstack/api/command/admin/user/GetUserCmd.java +++ b/api/src/org/apache/cloudstack/api/command/admin/user/GetUserCmd.java @@ -38,7 +38,7 @@ public class GetUserCmd extends BaseCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @Parameter(name = ApiConstants.API_KEY, type = CommandType.STRING, required = true, description = "API key of the user") + @Parameter(name = ApiConstants.USER_API_KEY, type = CommandType.STRING, required = true, description = "API key of the user") private String apiKey; /////////////////////////////////////////////////////