deprecated-oc-catalog/selfapi/docs/StorageApi.md
2023-03-03 14:43:11 +01:00

2.9 KiB

\StorageApi

All URIs are relative to https://localhost:49618/v1

Method HTTP request Description
StorageControllerCreateStorage Post /storage/
StorageControllerGet Get /storage/{ID}
StorageControllerGetMultipleStoragesByIDs Get /storage/multi/{IDs}

StorageControllerCreateStorage

StorageControllerCreateStorage(ctx, body)

submit storage object

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body ModelsStorageNewModel The object content

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageControllerGet

ModelsStorageModel StorageControllerGet(ctx, iD)

find storage by ID

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
iD string the ID you want to get

Return type

ModelsStorageModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StorageControllerGetMultipleStoragesByIDs

[]ModelsComputingModel StorageControllerGetMultipleStoragesByIDs(ctx, iDs)

Return Storage objects if found in the DB. Not found IDs will be ignored

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
iDs **[]string** List of storage IDs

Return type

**[]ModelsComputingModel**

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]