Skip to content

Media

Operations Summary

Method Endpoint Description
GET /api/media/{uuid}/ Get media file

Get media file

Get media file

1
2
3
4
http \
  GET \
  https://api.example.com/api/media/string-value/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.media import media_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = media_retrieve.sync(
    uuid="string-value",
    client=client
)

print(response)
  1. API Source: media_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { mediaRetrieve } from 'waldur-js-client';

try {
  const response = await mediaRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string

200 -