Resource allocation management
Getting a list of offerings
User can fetch offerings and filter them by the following fields:
name
- offering's namename_exact
- offering's exact namecustomer
- organization's URLcustomer_uuid
- organization's UUIDallowed_customer_uuid
- allowed organization's UUIDservice_manager_uuid
- service manager's UUIDattributes
- a set of attributes (key-value pairs) identifying the allocation. Check below for LUMI specific attributes.state
- offering's state (Active
,Draft
,Paused
,Archived
), should beActive
category_uuid
- category's UUIDbillable
- signalizing if an offering is billable or not, should betrue
shared
- signalizing if an offering is public or not, should betrue
type
- offering's type
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|
Creation of a resource allocation
User can create an order providing requested allocation parameters.
project
- project's UUIDoffering
- respectful offering's URLattributes
- specific attributes for the offeringplan
- plan's URL (if offering is billable)limits
- a set of resource limits for an allocation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
If a token belongs to a staff user, the order can be approved automatically. Otherwise, there is additional need for manual approval.
After that, order should be pulled until resource UUID is present (marketplace_resource_uuid
field).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
Order approval and rejection
In order to approve order by consumer, you shall issue POST request against /api/marketplace-orders/{UUID}/approve_by_consumer/
endpoint. Similarly in order to approve order by provider, you shall issue POST request against /api/marketplace-orders/{UUID}/approve_by_provider/
endpoint. Otherwise, you shall issue POST request against /api/marketplace-orders/{UUID}/reject_by_consumer/
or /api/marketplace-orders/{UUID}/reject_by_provider/
endpoint.
Of course, these endpoints are available only if you have service provider or service consumer permission against corresponding offerings.
Modification of a resource allocation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
Modification of resource allocation options
As an RA, you can update options of an allocations. Update happens through a special endpoint on a resource. Check below for LUMI specific attributes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
Termination of a resource allocation
Termination uses a special short-cut action /terminate
and returns UUID of a generated order.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
LUMI Resource Options
LUMI has agreed on the following schema for the resource options. The attributes can be passed during creation of the resource or by updating existing resources.
is_industry
, possible values: true/false; true if the PI or a member of a project is from a company;is_training
, possible values: true/false; true if aimed at training of the users;used_ai_tech
, (AI methods used in the calculations), choices:- "Audio (speech recognition/speech synthesis/etc)",
- "Decision management: Classified and statistical learning methods",
- "Deep Learning",
- "Generative Language Modeling",
- "Machine Learning",
- "Natural Language Processing",
- "Other",
- "Robotic process automation",
- "Virtual agents",
- "Vision (image recognition/image generation/text recognition OCR/etc)"
is_commercial
, possible values: true/false; true if aimed at commercial usage (commercial projects are pay-per-use industrial projects).