ListPayloads
Lists payloads for a specified project ID and allocation ID.
Authorizations:
path Parameters
project_id required | string ID of the project to use. |
allocation_id required | string ID of the allocation to use. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "results": [
- {
- "id": "string",
- "cluster_id": "string",
- "allocation_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "address": "string",
- "ports": [
- {
- "name": "string",
- "port": 0
}
], - "last_reserved": "2019-08-24T14:15:22Z",
- "started": "2019-08-24T14:15:22Z"
}, - "created": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}
GetPayload
Retrieves a single payload with a specified ID.
Authorizations:
path Parameters
project_id required | string ID of the project to use. |
allocation_id required | string ID of the allocation to use. |
payload_id required | string ID of the payload to use. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "result": {
- "id": "string",
- "cluster_id": "string",
- "allocation_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "address": "string",
- "ports": [
- {
- "name": "string",
- "port": 0
}
], - "last_reserved": "2019-08-24T14:15:22Z",
- "started": "2019-08-24T14:15:22Z"
}, - "created": "2019-08-24T14:15:22Z",
- "metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
}
DeletePayload
Deletes a single payload for a specified project, allocation, and payload ID. Note: It can take some time to delete a payload. During the deletion process you can list and query a payload, but you can't reserve it.
Authorizations:
path Parameters
project_id required | string ID of the project to use. |
allocation_id required | string ID of the allocation to use. |
payload_id required | string ID of the payload to use. |
query Parameters
force_delete | boolean Deletes a payload with "reserved" status. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
SetPayloadAnnotation sets an annotation on a single payload.
Set an annotation on the payload's metadata.
Authorizations:
path Parameters
project_id required | string project_id is the ID of the project containing the Allocation. |
allocation_id required | string allocation_id is the ID of the Allocation running the Payload. |
payload_id required | string payload_id is the ID of the Payload. |
Request Body schema: application/json
key required | string key is the key of the annotation. An existing key will overwrite the corresponding annotation, a new key will create a new annotation. A valid annotation key:
|
value required | string value is the new value of the annotation. Can have arbitrary data. Can be used to e.g. pass custom data to a matchmaker. |
Responses
Request samples
- Payload
{- "key": "string",
- "value": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
SetPayloadLabel sets a label on a single payload.
Set a label on the payload's metadata.
Authorizations:
path Parameters
project_id required | string project_id is the ID of the project containing the Allocation. |
allocation_id required | string allocation_id is the ID of the Allocation running the Payload. |
payload_id required | string payload_id is the ID of the Payload. |
Request Body schema: application/json
key required | string key is the key of the label. An existing key will overwrite the corresponding label, a new key will create a new label. A valid label key:
|
value required | string value is the new value of the label. A valid label value:
|
Responses
Request samples
- Payload
{- "key": "string",
- "value": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
ListAllocations
Lists allocations for a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project to list allocations in. |
query Parameters
limit | integer <int32> Maximum number of results to return, in the range 1-1000. Default is 1000. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "results": [
- {
- "id": "string",
- "name": "string",
- "project_id": "string",
- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "payloads_total": 0,
- "payloads_reserved": 0
}, - "created": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "delete": true,
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "created_by": "string",
- "modified_by": "string",
- "enabled": true
}
]
}
CreateAllocation
Create an allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project in which to create the allocation. |
Request Body schema: application/json
required | object (v0AllocationSpec) |
name | string Allocation name. |
object or null (v0AllocationMetadata) |
Responses
Request samples
- Payload
{- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "result": {
- "id": "string",
- "name": "string",
- "project_id": "string",
- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "payloads_total": 0,
- "payloads_reserved": 0
}, - "created": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "delete": true,
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "created_by": "string",
- "modified_by": "string",
- "enabled": true
}
}
GetAllocation
Retrieves a single allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project the allocation belongs to. |
allocation_id required | string ID of the allocation to retrieve. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "result": {
- "id": "string",
- "name": "string",
- "project_id": "string",
- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "payloads_total": 0,
- "payloads_reserved": 0
}, - "created": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "delete": true,
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "created_by": "string",
- "modified_by": "string",
- "enabled": true
}
}
UpdateAllocation
Updates a single allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project the allocation belongs to. |
allocation_id required | string ID of the allocation to update. |
Request Body schema: application/json
required | object (v0AllocationSpec) |
name required | string Name of the allocation. |
object or null (v0AllocationMetadata) |
Responses
Request samples
- Payload
{- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "result": {
- "id": "string",
- "name": "string",
- "project_id": "string",
- "spec": {
- "cluster_id": "string",
- "payload_spec": {
- "image": "string",
- "command": "string",
- "args": [
- "string"
], - "ports": [
- {
- "name": "string",
- "container_port": 0,
- "port_policy": "DYNAMIC",
- "protocol": "UDP"
}
], - "resources": {
- "cpu": "string",
- "memory": "string"
}, - "environment_variables": [
- {
- "name": "string",
- "value": "string"
}
], - "ddos_protection": "DISABLED"
}, - "buffer_size": "string",
- "min_payloads": 0,
- "max_payloads": 0,
- "expiry_time": "2019-08-24T14:15:22Z"
}, - "status": {
- "state": "Unknown",
- "details": "string",
- "payloads_total": 0,
- "payloads_reserved": 0
}, - "created": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "delete": true,
- "metadata": {
- "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "created_by": "string",
- "modified_by": "string",
- "enabled": true
}
}
DeleteAllocation
Deletes a single allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project the allocation belongs to. |
allocation_id required | string ID of the allocation to delete. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
SetAllocationEnabled
Enable or disable a single allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project the allocation belongs to. |
allocation_id required | string ID of the allocation to update. |
Request Body schema: application/json
enabled required | boolean (Should be set to true to enable and false to disable) |
Responses
Request samples
- Payload
{- "enabled": true
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
UpdateAllocationImage
Updates the image of a single allocation in a specified project.
Authorizations:
path Parameters
project_id required | string ID of the project the allocation belongs to. |
allocation_id required | string ID of the allocation to update. |
Request Body schema: application/json
image required | string Image of the allocation. |
Responses
Request samples
- Payload
{- "image": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
ListArtefacts
Authorizations:
path Parameters
project_id required | string project_id - the project to which the artefacts belong to |
allocation_id required | string allocation_id - the allocation to which the artefacts belong to |
query Parameters
page_size | integer <int32> page_size - the maximum number of results to be returned by the server (max: 1000, default: 1000) |
page_token | string page_token - used to request a specific page of the list results. |
payload_id | string payload_id - use to filter the results to only those artefacts belonging to a specific payload. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "items": [
- {
- "file_path": "string",
- "project_id": "string",
- "allocation_id": "string",
- "payload_id": "string",
- "size": "string",
- "presigned_url": "string"
}
], - "next_page_token": "string"
}
GetArtefact
Authorizations:
path Parameters
project_id required | string project_id - the project to which the artefact belongs to |
allocation_id required | string allocation_id - the allocation to which the artefact belongs to |
payload_id required | string payload_id - the payload to which the artefacts belong to |
query Parameters
file_path | string file_path - the filePath of the artefact |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "result": {
- "file_path": "string",
- "project_id": "string",
- "allocation_id": "string",
- "payload_id": "string",
- "size": "string",
- "presigned_url": "string"
}
}
DeleteReservation
Deletes a single payload reservation from a specified project and allocation.
Authorizations:
path Parameters
project_id required | string ID of the project to use. |
allocation_id required | string ID of the allocation to use. |
payload_id required | string ID of the payload to use. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{ }
CreateReservation
Reserves a payload in a specified project and allocation.
Authorizations:
path Parameters
project_id required | string ID of the project to use. |
allocation_id required | string ID of the allocation to use. |
Request Body schema: application/json
object (v0PayloadMetadata) | |
Array of objects (v0PayloadSelector) selectors is an ordered list of payload selectors used to prioritise/filter which payloads can satisfy the reservation. Each selector matches specific payloads that can be reserved, based on e.g. labels on the payload's metadata. The selectors will be tried in order, if one selector doesn't match any payloads the next selector in the list will be used. If none of the selectors match any payloads, an error is returned. If empty, all Ready payloads in the allocation are considered. |
Responses
Request samples
- Payload
{- "payload_metadata": {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}
}, - "selectors": [
- {
- "match_labels": {
- "property1": "string",
- "property2": "string"
}, - "payload_state": "Unknown"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 409
- 412
- 422
- 429
- 500
- default
{- "payload_id": "string",
- "payload_address": "string",
- "payload_ports": [
- {
- "name": "string",
- "port": 0
}
]
}