Add Create Service Account api (#72)

adds new functionality for creating a service
account for a user, for this, an admin client
is created with the user credentials so that
the service account can be assigned to him.

This also updates to  minio RELEASE.2020-04-28T23-56-56Z
This commit is contained in:
César Nieto
2020-04-29 18:28:28 -07:00
committed by GitHub
parent c32df86c76
commit b85712e29e
20 changed files with 917 additions and 16 deletions

View File

@@ -284,6 +284,28 @@ paths:
tags:
- UserAPI
/service-accounts:
post:
summary: Create Service Account
operationId: CreateServiceAccount
parameters:
- name: body
in: body
required: true
schema:
$ref: '#/definitions/serviceAccount'
responses:
201:
description: A successful response.
schema:
$ref: "#/definitions/serviceAccountCreds"
default:
description: Generic error response.
schema:
$ref: "#/definitions/error"
tags:
- UserAPI
/users:
get:
summary: List Users
@@ -1312,3 +1334,17 @@ definitions:
type: array
items:
type: string
serviceAccount:
type: object
properties:
policy:
type: string
title : "policy to be applied to the Service Account if any"
serviceAccountCreds:
type: object
properties:
accessKey:
type: string
secretKey:
type: string