Skip to content

Openstack Marketplace Tenants

Operations Summary

Method Endpoint Description
Core CRUD
GET /api/openstack-marketplace-tenants/ List Openstack Marketplace Tenants
GET /api/openstack-marketplace-tenants/{uuid}/ Retrieve
POST /api/openstack-marketplace-tenants/{uuid}/create_image/ Create image
Other Actions
POST /api/openstack-marketplace-tenants/{uuid}/upload_image_data/{image_id}/ Data

Core CRUD

List Openstack Marketplace Tenants

1
2
3
4
http \
  GET \
  https://api.example.com/api/openstack-marketplace-tenants/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.openstack_marketplace_tenants import openstack_marketplace_tenants_list # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_marketplace_tenants_list.sync(client=client)

for item in response:
    print(item)
  1. API Source: openstack_marketplace_tenants_list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { openstackMarketplaceTenantsList } from 'waldur-js-client';

try {
  const response = await openstackMarketplaceTenantsList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
backend_id string
can_manage boolean Can manage
customer string (uuid)
customer_abbreviation string
customer_name string
customer_native_name string
customer_uuid string (uuid)
description string
external_ip string
name string
name_exact string
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
project string (uuid)
project_name string
project_uuid string (uuid)
service_settings_name string
service_settings_uuid string (uuid)
state array
uuid string (uuid)

200 -

The response body is an array of objects, where each object has the following structure:

Field Type
url string (uri)
uuid string (uuid)
name string

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/openstack-marketplace-tenants/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  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.openstack_marketplace_tenants import openstack_marketplace_tenants_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_marketplace_tenants_retrieve.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

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

try {
  const response = await openstackMarketplaceTenantsRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)

200 -

Field Type
url string (uri)
uuid string (uuid)
name string

Create image

1
2
3
4
5
http \
  POST \
  https://api.example.com/api/openstack-marketplace-tenants/a1b2c3d4-e5f6-7890-abcd-ef1234567890/create_image/ \
  Authorization:"Token YOUR_API_TOKEN" \
  name="my-awesome-openstack-marketplace-tenant"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.image_create_request import ImageCreateRequest # (1)
from waldur_api_client.api.openstack_marketplace_tenants import openstack_marketplace_tenants_create_image # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = ImageCreateRequest(
    name="my-awesome-openstack-marketplace-tenant"
)
response = openstack_marketplace_tenants_create_image.sync(
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client,
    body=body_data
)

print(response)
  1. Model Source: ImageCreateRequest
  2. API Source: openstack_marketplace_tenants_create_image
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import { openstackMarketplaceTenantsCreateImage } from 'waldur-js-client';

try {
  const response = await openstackMarketplaceTenantsCreateImage({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  },
  body: {
    "name": "my-awesome-openstack-marketplace-tenant"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
uuid string (uuid)
Field Type Required
name string
min_ram integer
min_disk integer
disk_format any
container_format any
visibility any

201 -

Field Type
image_id string (uuid)
name string
status string
upload_url string

Other Actions

Data

1
2
3
4
http \
  POST \
  https://api.example.com/api/openstack-marketplace-tenants/a1b2c3d4-e5f6-7890-abcd-ef1234567890/upload_image_data/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.openstack_marketplace_tenants import openstack_marketplace_tenants_upload_image_data # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = openstack_marketplace_tenants_upload_image_data.sync(
    image_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    client=client
)

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

try {
  const response = await openstackMarketplaceTenantsUploadImageData({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "image_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
image_id string (uuid)
uuid string (uuid)

200 -

Field Type
status string
message string