diff --git a/proto/spaceone/api/identity/v2/api_key.proto b/proto/spaceone/api/identity/v2/api_key.proto index f1a34e82e..84baa2837 100644 --- a/proto/spaceone/api/identity/v2/api_key.proto +++ b/proto/spaceone/api/identity/v2/api_key.proto @@ -99,8 +99,9 @@ message APIKeyInfo { string api_key_id = 1; string api_key = 2; - string name = 3; - State state = 4; + string app_id = 3; + string name = 4; + State state = 5; string domain_id = 21; string user_id = 22; string created_at = 31; diff --git a/proto/spaceone/api/identity/v2/app.proto b/proto/spaceone/api/identity/v2/app.proto index 81b1a518c..df5862845 100644 --- a/proto/spaceone/api/identity/v2/app.proto +++ b/proto/spaceone/api/identity/v2/app.proto @@ -25,7 +25,7 @@ service App { }; } - rpc generate_api_key (AppRequest) returns (AppInfo) { + rpc generate_api_key (GenerateAPIKeyAppRequest) returns (AppInfo) { option (google.api.http) = { post: "/identity/v2/app/generate-api-key" body: "*" @@ -105,6 +105,14 @@ message UpdateAppRequest { string workspace_id = 22; } +message GenerateAPIKeyAppRequest { + string app_id = 1; + string expired_at = 2; + string domain_id = 21; + // +optional + string workspace_id = 22; +} + message AppRequest { string app_id = 1; string domain_id = 21;