Service Provider Onboarding
This page describes onboarding steps for a service provider via Waldur REST API.
Slurm Agent Integration
The following steps are specific for SLURM plugin in Waldur.
Creation of SLURM Offering in Waldur
This section describes creation of SLURM offering in Waldur, which is managed by Waldur Site Agent.
Example request
1 2 3 |
|
Body:
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 |
|
Example response
Status code: 201
Body:
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 |
|
Activation of the SLURM Offering
After creation, the offering is in Draft
state meaning the service provider can edit it, but it is hidden from Wadlur marketplace.
In order to publish it, the service provider should activate the offering the way described below.
Example request
1 2 3 |
|
Note: This endpoint doesn't require any body.
After sending this request, the offering becomes activated, its state switched to Active
and users of the marketplace can order resources.
Example response
Status code: 201
Body: empty
Creation of a service account user
For further management of the offering, Waldur Site Agent need a service account with access to the offering. This section describes how to create such a user.
Example request
1 2 3 |
|
Body:
1 2 3 4 5 6 7 8 9 10 |
|
Example response
Status: 201
Body:
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 |
|
Assigning service provider permissions to the user
After user creation, you need to grant them permissions for offering management.
Waldur uses OFFERING.MANAGER
role for this.
Example request
1 2 3 |
|
Body:
1 2 3 4 |
|
Example response
Status code: 201
Body: empty
Service Account Token Retrieval
As a staff user, you can fetch any other user's token. For this, use token
endpoint on a selected user.
Example request
1 2 |
|
Example response
Status code: 200
Body:
1 2 3 4 5 6 7 8 9 |
|
Service Account Token Refresh
As a staff user, you can also manually refresh any other user's token.
For this, use refresh_token
endpoint on a selected user.
Example request
1 2 3 |
|
Body: not required
Example response
Status code: 201
Body:
1 2 3 4 5 6 7 8 9 |
|