Skip to content

Commit

Permalink
Added end point and definition for bulk credentials change
Browse files Browse the repository at this point in the history
  • Loading branch information
alekshs committed Sep 19, 2024
1 parent 0be2b1c commit 8d77e01
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions openapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5004,6 +5004,24 @@ definitions:
pagination_metadata:
$ref: "#/definitions/PaginationMetadata"

ChangeAssetCredentialsRequest:
description: Request body to change the credentials of the given assets
type: object
required:
- access_credentials_uuid
- asset_uuids
properties:
access_credentials_uuid:
description: The uuid of the access credentials
type: string
x-nullable: false
asset_uuids:
description: The list of asset uuids to have their credentials changed
type: array
items:
type: string
x-nullable: false

paths:
/.stats:
get:
Expand Down Expand Up @@ -10710,3 +10728,26 @@ paths:
description: error response
schema:
$ref: "#/definitions/Error"

/assets/change_credentials:
post:
tags:
- assets
description: Changes the access credentials to the given assets
operationId: changeAssetCredentials
parameters:
- name: changeCredentialsRequest
in: body
description: aws access credentials to store for a namespace
schema:
$ref: "#/definitions/ChangeAssetCredentialsRequest"
required: true
responses:
204:
description: Credentials changed successfully
502:
description: Bad Gateway
default:
description: error response
schema:
$ref: "#/definitions/Error"

0 comments on commit 8d77e01

Please sign in to comment.