Marketplace Provider Resource Projects
Operations Summary
Core CRUD
List Marketplace Provider Resource Projects
Retrieve
Update
HTTPie Python TypeScript Path Parameters Request Body (required) Responses
http \
PUT \
https://api.example.com/api/marketplace-provider-resource-projects/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
resource = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
name = "my-awesome-marketplace-provider-resource-project"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.resource_project_request import ResourceProjectRequest # (1)
from waldur_api_client.api.marketplace_provider_resource_projects import marketplace_provider_resource_projects_update # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = ResourceProjectRequest (
resource = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
name = "my-awesome-marketplace-provider-resource-project"
)
response = marketplace_provider_resource_projects_update . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: ResourceProjectRequest
API Source: marketplace_provider_resource_projects_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 import { marketplaceProviderResourceProjectsUpdate } from 'waldur-js-client' ;
try {
const response = await marketplaceProviderResourceProjectsUpdate ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body : {
"resource" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"name" : "my-awesome-marketplace-provider-resource-project"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
Description
resource
string (uuid)
✓
name
string
✓
description
string
limits
object (free-form)
Dictionary mapping component types to quota values. Same format as Resource.limits.
200 -
Field
Type
Description
uuid
string (uuid)
resource
string (uuid)
name
string
description
string
backend_id
string
state
string
error_message
string
limits
object (free-form)
Dictionary mapping component types to quota values. Same format as Resource.limits.
current_usages
object (free-form)
Dictionary mapping component types to current usage amounts. Populated by backend synchronization.
resource_uuid
string (uuid)
resource_name
string
created
string (date-time)
modified
string (date-time)
is_removed
boolean
removed_date
string (date-time)
removed_by
integer
removed_by_username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
termination_metadata
object (free-form)
Partial Update
Permissions & Users
List users and their roles in a scope
Retrieves a list of users who have a role within a specific scope (e.g., a project or an organization). The list can be filtered by user details or role.
Grant a role to a user
Assigns a specific role to a user within the current scope. An optional expiration time for the role can be set.
HTTPie Python TypeScript Path Parameters Request Body (required) Responses
http \
POST \
https://api.example.com/api/marketplace-provider-resource-projects/a1b2c3d4-e5f6-7890-abcd-ef1234567890/add_user/ \
Authorization:"Token YOUR_API_TOKEN" \
role = "string-value" \
user = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.user_role_create_request import UserRoleCreateRequest # (1)
from waldur_api_client.api.marketplace_provider_resource_projects import marketplace_provider_resource_projects_add_user # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = UserRoleCreateRequest (
role = "string-value" ,
user = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
)
response = marketplace_provider_resource_projects_add_user . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: UserRoleCreateRequest
API Source: marketplace_provider_resource_projects_add_user
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 import { marketplaceProviderResourceProjectsAddUser } from 'waldur-js-client' ;
try {
const response = await marketplaceProviderResourceProjectsAddUser ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body : {
"role" : "string-value" ,
"user" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
role
string
✓
user
string (uuid)
✓
expiration_time
string (date-time)
201 -
Field
Type
expiration_time
string (date-time)
400 - Validation error, for example when trying to add a user to a terminated project.
Revoke a role from a user
Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
Update a user's role expiration
Updates the expiration time for a user's existing role in the current scope. This is useful for extending or shortening the duration of a permission. To make a role permanent, set expiration_time to null.
Other Actions
Set backend id
Set state erred
Set state ok