Marketplace Resource Api Keys
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/marketplace-resource-api-keys/ |
List Marketplace Resource Api Keys |
| GET | /api/marketplace-resource-api-keys/{uuid}/ |
Retrieve |
| Other Actions | ||
| GET | /api/marketplace-resource-api-keys/{uuid}/reveal/ |
Reveal an API key |
| POST | /api/marketplace-resource-api-keys/report_created/ |
Report a freshly-applied API key |
| POST | /api/marketplace-resource-api-keys/{uuid}/rotate/ |
Rotate an API key |
| POST | /api/marketplace-resource-api-keys/{uuid}/set_erred/ |
Mark an API key as erred |
| POST | /api/marketplace-resource-api-keys/{uuid}/set_key/ |
Report a rotated API key value |
Core CRUD
List Marketplace Resource Api Keys
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 | |
- Model Source:
ResourceApiKeyState - API Source:
marketplace_resource_api_keys_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
modified_before |
string (date-time) | Modified before |
offering_uuid |
string (uuid) | Offering UUID |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
resource_uuid |
string (uuid) | Resource UUID |
state |
array | API key state |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_resource_api_keys_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |
Other Actions
Reveal an API key
Returns the decrypted key value. Available to users with resource access (except minimal-visibility viewers). Audit-logged.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_resource_api_keys_reveal_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |
api_key |
string |
Report a freshly-applied API key
Used by the site agent after it generated and applied a key to the backend. Stores the value encrypted and marks the key OK.
1 2 3 4 5 6 7 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
ResourceApiKeyReportCreatedRequest - API Source:
marketplace_resource_api_keys_report_created
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
| Field | Type | Required |
|---|---|---|
resource |
string (uuid) | ✓ |
client_id |
string | ✓ |
api_key |
string | ✓ |
201 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |
Rotate an API key
Asks the site agent to replace this key's value at the backend. The other keys are untouched (zero downtime).
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_resource_api_keys_rotate
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
202 -
| Field | Type |
|---|---|
status |
string |
Mark an API key as erred
Used by the site agent to report that applying the key failed. Stores the error message for the UI.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
ResourceApiKeySetErredRequest - API Source:
marketplace_resource_api_keys_set_erred
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
error_message |
string | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |
Report a rotated API key value
Used by the site agent after it applied a rotated key. Replaces the stored value and marks the key OK.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
ResourceApiKeySetKeyRequest - API Source:
marketplace_resource_api_keys_set_key
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
api_key |
string | ✓ |
client_id |
string |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
resource_uuid |
string (uuid) |
resource_backend_id |
string |
client_id |
string |
state |
string |
modified |
string (date-time) |
error_message |
string |