Skip to content

Marketplace Offering Permissions

Operations Summary

Method Endpoint Description
GET /api/marketplace-offering-permissions/ List Marketplace Offering Permissions
GET /api/marketplace-offering-permissions/{id}/ Retrieve

List Marketplace Offering Permissions

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-offering-permissions/ \
  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.marketplace_offering_permissions import marketplace_offering_permissions_list # (1)

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

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

try {
  const response = await marketplaceOfferingPermissionsList({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
created string (date-time) Created after
customer string (uuid)
full_name string User full name contains
modified string (date-time) Modified after
native_name string
o array Ordering

offering string (uuid)
page integer A page number within the paginated result set.
page_size integer Number of results to return per page.
role_name string Role name contains
role_uuid string (uuid) Role UUID
scope_name string Scope name
scope_type string Scope type
scope_uuid string Scope UUID
user string (uuid)
user_slug string User slug contains
user_url string
username string

200 -

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

Field Type Description
url string (uri)
pk integer
created string (date-time)
expiration_time string (date-time)
created_by string (uri)
offering string (uri)
offering_uuid string (uuid)
offering_slug string
offering_name string
role string (uri)
role_name string
user string (uri)
user_full_name string
user_native_name string
user_username string Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
user_uuid string (uuid)
user_email string (email)

Retrieve

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-offering-permissions/123/ \
  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.marketplace_offering_permissions import marketplace_offering_permissions_retrieve # (1)

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

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

try {
  const response = await marketplaceOfferingPermissionsRetrieve({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "id": 123
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required Description
id integer A unique integer value identifying this user role.

200 -

Field Type Description
url string (uri)
pk integer
created string (date-time)
expiration_time string (date-time)
created_by string (uri)
offering string (uri)
offering_uuid string (uuid)
offering_slug string
offering_name string
role string (uri)
role_name string
user string (uri)
user_full_name string
user_native_name string
user_username string Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
user_uuid string (uuid)
user_email string (email)