Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bulk change of access credentials #481

Merged
merged 3 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 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
- asset_uuids
properties:
access_credentials:
description: The name or 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,32 @@ paths:
description: error response
schema:
$ref: "#/definitions/Error"

/assets/{namespace}/change_credentials:
parameters:
- name: namespace
in: path
description: The namespace to send the request on behalf of.
type: string
required: true
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"
Loading