Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions platform/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ paths:
$ref: "./paths/infrastructure/external-volumes/external-volumes.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}":
$ref: "./paths/infrastructure/external-volumes/external-volume.yml"
"/v1/infrastructure/external-volumes/sources":
$ref: "./paths/infrastructure/external-volumes/sources.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}/access":
$ref: "./paths/infrastructure/external-volumes/access.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}/tasks":
Expand Down
37 changes: 37 additions & 0 deletions platform/paths/infrastructure/external-volumes/sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
get:
operationId: "getExternalVolumeSources"
summary: List External Volume Sources
description: Requires the `external-volumes-view` capability.
tags:
- External Volumes
responses:
200:
description: Returns supported external volume sources and their capabilities.
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
additionalProperties:
type: object
title: ExternalVolumeSource
required:
- capabilities
- creatable
properties:
capabilities:
type: object
description: Map where keys are attachment types and values are arrays of supported modes.
additionalProperties:
type: array
items:
type: string
creatable:
type: boolean
description: Whether volumes of this source type can be created via the API.
default:
$ref: ../../../../components/responses/errors/DefaultError.yml
2 changes: 1 addition & 1 deletion platform/paths/pipelines/triggerKeys/triggerKey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ patch:
- data
properties:
data:
$ref: ../../../../components/schemas/jobs/JobDescriptor.yml
$ref: ../../../../components/schemas/pipelines/trigger-keys/TriggerKey.yml
default:
$ref: ../../../../components/responses/errors/DefaultError.yml

Expand Down